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.



