Accessing order details on order confirmation page |
Post Reply |
Author | |
johnb12
Newbie Joined: 22-June-2016 Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 22-June-2016 at 11:09am |
Hi,
We are implementing an analytics tool that requires us to embed order details into their JS code on the final confirmation page. I've seen the orderCompleteTracking page, but we need access to more order variables such as: - SKU - Quantity bought - Price of product - Currency Anyone have any idea how we could access that information on this page ? Thanks!
|
|
ProductCart
Admin Group ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
So to clarify - you are looking for each specific variable name used by ProductCart? If so, we can add this to our list of improvements for the existing Help Desk articles since it would likely benefit other merchants as well. In the meantime, you can find the common variables in the Order-related variables section on this page:
You can also find a list of ALL the variables used by a shopping cart session on the following page: https://productcart.desk.com/customer/en/portal/articles/1600477-how-shopping-cart-content-is-stored Please let us know if you aren't able to correlate all of the variables you want for your analytics tool, and we can try to squeeze in time to update the Help Desk article with the specific names. |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
We did this in the past when we created a "google trusted store" integration. My recollection is that we altered ordercompletetracking.asp, and queried/read the productsordered table to output the line item details to the page.
Let me know if you need a hand.
|
|
Matt
Moderator Group Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
|
@johnb12 -
We have several integrations that already do this. I suggest you copy what is already there, but modify it for your analytic platform. Here are some files submit product details after the order: - inc-Cashback.asp - inc-GoogleAnalytics.asp - inc-GTSOrderConfirm.asp You can do a "save as" to change the name and then include your custom file within "orderComplete.asp". Or you can copy the relevant bits into "orderCompleteTracking.asp" (which is already included). This type of project is something that our development team can accomplish quickly if you would like developer assistance. |
|
johnb12
Newbie Joined: 22-June-2016 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi all,
Thanks for your responses. After looking at the source of some of the files Matt mentioned, I'm a bit confused as to the approach here: 1. Why are files (inc-GoogleAnalytics.asp) making further calls to the DB to get this information if it is already available using the variables specified here https://productcart.desk.com/customer/en/portal/articles/1600477-how-shopping-cart-content-is-stored ? 2. The orderCompleteTracking.asp does not seem to get included - including random text/HTML here does not show up on the orderComplete page. 3. I have tried looping through the pcCartArray with the code included on https://productcart.desk.com/customer/en/portal/articles/1600477-how-shopping-cart-content-is-stored but I don't see anything being written to the page. Can someone show me a quick code snippet of what I would need to add on orderCompleteTracking.asp or orderComplete.asp to print the SKU's of all products that have just been bought ? That would be a huge help Thanks
|
|
johnb12
Newbie Joined: 22-June-2016 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Anyone ?
|
|
Matt
Moderator Group Joined: 20-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
|
Hi John, |
|
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 |