ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Customising Drop Shipping Previous Orders Screen
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Customising Drop Shipping Previous Orders Screen

 Post Reply Post Reply
Author
Message
mattprice View Drop Down
Senior Member
Senior Member


Joined: 03-June-2007
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattprice Quote  Post ReplyReply Direct Link To This Post Topic: Customising Drop Shipping Previous Orders Screen
    Posted: 01-April-2010 at 10:15am
We have drop shippers who are shipping a large number of low value products and I was looking for a way of filtering the sds_ViewPast.asp (Drop shippers previous orders screen) to exclude orders that we have archived in the backend.
 
I can see that sds_ViewPast.asp uses a query to find orders as follows :-
 
query="SELECT DISTINCT orders.idOrder, orders.orderDate, orders.ord_OrderName, orders.OrderStatus, orders.pcOrd_PaymentStatus FROM pcDropShippersSuppliers INNER JOIN (orders INNER JOIN ProductsOrdered ON orders.idorder = ProductsOrdered.idorder) ON (pcDropShippersSuppliers.idproduct=ProductsOrdered.idproduct AND pcDropShippersSuppliers.pcDS_IsDropShipper = " & session("pc_sdsIsDropShipper") & ")  WHERE ProductsOrdered.pcDropShipper_ID=" & session("pc_idsds") & " AND ((orders.orderStatus>2 AND orders.orderStatus<5) OR (orders.orderStatus>6 AND orders.orderStatus<=9) OR (orders.orderStatus=10 OR orders.orderStatus=12)) ORDER BY orders.idOrder DESC;"
 
Can anyone give me any pointers as to how can modify this query so that it does not looks for archived orders ?
 
Many Thanks
Matt
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post Posted: 01-April-2010 at 1:35pm
You need to add the "pcOrd_Archived" field to the query:

pcOrd_Archived = 0 (not archived)
pcOrd_Archived = 1 (archived)

... so: "[...] WHERE orders.pcOrd_Archived=0 AND ProductsOrdered.pcDropShipper_ID= [...]"

Edited by earlyimp - 01-April-2010 at 1:36pm
The ProductCart Team

Home of ProductCart shopping cart software
Back to Top
mattprice View Drop Down
Senior Member
Senior Member


Joined: 03-June-2007
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattprice Quote  Post ReplyReply Direct Link To This Post Posted: 01-April-2010 at 2:20pm
Thats great, works a treat thank you.
 
For anyone interested...  there was another reason for hiding archived orders (other than trying to keep the drop shippers previous order screen tidy).
 
We have our drop shippers on manual notification because there are times when we want to ship the product ourselves instead of asking our supplier to drop ship it.  When we ship ourselves we obviously do not notify the drop shipper.  By archiving the order too after shipment it also does not confuse the drop shipper by showing the order on their previous orders log in screen. 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.043 seconds.