Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Location
    Orange County
    Posts
    55
    Plugin Contributions
    0

    Default 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.
    Last edited by FluffyTheCat; 9 Apr 2008 at 07:34 PM.

  2. #2
    Join Date
    Jun 2007
    Location
    Orange County
    Posts
    55
    Plugin Contributions
    0

    Default Re: Use ProductID in Checkout Success

    Pretty Please!


 

 

Similar Threads

  1. Replies: 6
    Last Post: 11 Jan 2013, 12:51 PM
  2. Adding ProductID to the Admin orders page
    By jammin320 in forum General Questions
    Replies: 4
    Last Post: 4 Jun 2007, 10:56 PM
  3. checkout success
    By divekathster in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Apr 2007, 03:48 PM
  4. Checkout :: Success
    By parsek in forum General Questions
    Replies: 3
    Last Post: 14 Jul 2006, 04:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg