Results 1 to 2 of 2
  1. #1
    Join Date
    May 2018
    Posts
    7
    Plugin Contributions
    0

    help question How to get product IDs in the shopping cart in the shipping selection page?

    I am trying to get product IDs in the shopping cart in the shipping selection page editting tpl_checkout_shipping_default.php like the shopping cart page (tpl_shopping_cart_default.php).

    I added the following code in tpl_checkout_shipping_default.php, but I just got "NULL" information.
    I might have to use some session functions? Please tell me how to fix the issue.

    PHP Code:
    <?php
      $productArray
    [$i] = array('attributeHiddenField'=>$attributeHiddenField,
      
    'flagStockCheck'=>$flagStockCheck,
      
    'flagShowFixedQuantity'=>$showFixedQuantity,
      
    'linkProductsImage'=>$linkProductsImage,
      
    'linkProductsName'=>$linkProductsName,
      
    'productsImage'=>$productsImage,
      
    'productsName'=>$productsName,
      
    'showFixedQuantity'=>$showFixedQuantity,
      
    'showFixedQuantityAmount'=>$showFixedQuantityAmount,
      
    'showMinUnits'=>$showMinUnits,
      
    'quantityField'=>$quantityField,
      
    'buttonUpdate'=>$buttonUpdate,
      
    'productsPrice'=>$productsPriceTotal,
      
    'productsPriceEach'=>$productsPriceEach,
      
    'rowClass'=>$rowClass,
      
    'buttonDelete'=>$buttonDelete,
      
    'checkBoxDelete'=>$checkBoxDelete,
      
    'id'=>$products[$i]['id'],
      
    'attributes'=>$attrArray);
    ?>
    <?php var_dump
    ($productArray);  ?>

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Re: How to get product IDs in the shopping cart in the shipping selection page?

    You want to do

    Code:
     $products = $_SESSION['cart']->get_products();
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. How du I get the "model number" to show in the shopping cart??
    By Petlife in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 15 Jul 2011, 05:37 AM
  2. How do I display the shopping cart on the index page?
    By mpsblue in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Apr 2011, 10:26 AM
  3. Replies: 1
    Last Post: 23 Jan 2010, 09:54 PM
  4. Replies: 5
    Last Post: 29 Sep 2009, 01:33 AM
  5. Can't Zen Cart handle +50 product Ids in the shopping cart ?
    By sergiogold in forum General Questions
    Replies: 2
    Last Post: 6 Sep 2007, 06:49 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR