9 Apr 2008, 6:29 PM
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.