![]() |
Get OrderNumber in ProductCart API |
Post Reply ![]() |
Author | |
meanddreams ![]() Newbie ![]() Joined: 31-July-2012 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 06-August-2012 at 8:31am |
Hi,
I'm using ProductCart API to fetch new orders and their details. GetOrderDetails method takes "OrderId" parameter however I found that it's the actual Primary key value of the database. Response given by this method doesn't have actual Order# (which can be used in product cart admin section to search an order). Can anybody tell me how to get actual Order# (not OrderId)? Thanks, Viresh |
|
![]() |
|
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
Hi Viresh,
In ProductCart you have the option to start your order numbers at a number greater than the primary key enumeration in the database. If a value is set for this, it's added to the value of the order id in the db to create the apparent Order Id displayed in the application. The value for this is stored in the /includes/settings.asp page as the value for the constant "scPre". It would be nicer if there were a comment in the code here, but if you open /pc/orderCompleteTracking.asp you'll notice the following at the top:
Here, pOID is the raw id of the order in the database and scPre is the number added to it to derive the apparent Order ID displayed in the application.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |