Zen Cart Logo
Forums / General Questions / Use ProductID in Checkout Success

Use ProductID in Checkout Success

Locked

Views: 876

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Apr 2008, 6:29 PM
#1
fluffythecat avatar

fluffythecat

New Zenner

Join Date:
Jun 2007
Location:
Orange County
Posts:
55
Plugin Contributions:
0

Use ProductID in Checkout Success

Hello,
I need to pass the products_id to a Post Affiliate Pro script. They have most of the work done for the other part they need. All I need to know is how to pass the product id or product id's that were ordered.

==================================

<?php $dbreq = $db->Execute("select * from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders->fields['orders_id']."' AND class = 'ot_subtotal'"); $totalCost = $dbreq->fields['value']; $orderId = $dbreq->fields['orders_id']; print '<script id="pap_x2s6df8d" src="https://MYSITE.COM/catalog/a/scripts/sale.js" type="text/javascript"></script> <script type="text/javascript"> <!-- var TotalCost="'.$totalCost.'"; var OrderID="'.$orderId.'"; var ProductID=""; var _sc=true; papSale(); --> </script>'; ?>

==================

Thank in advance for any help.

27 Aug 2008, 9:22 PM
#2
fluffythecat avatar

fluffythecat

New Zenner

Join Date:
Jun 2007
Location:
Orange County
Posts:
55
Plugin Contributions:
0

Re: Use ProductID in Checkout Success

Pretty Please!

:sadwalk: