Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Location
    Hull, East Yorkshire, UK
    Posts
    196
    Plugin Contributions
    0

    Default Shopping Cart Display

    Hi Guys

    In tpl_shopping_cart_default.php, where the product name is displayed at

    <?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?>

    I also want to show the product model. I hope that this should be easy enough to do but being a bit of a code novice I just can't figure it out! Any help please?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    67,544
    Plugin Contributions
    6

    Default Re: Shopping Cart Display

    There is a function in the functions_lookups.php that you can pull any field for any products_id that you need:
    Code:
    /*
     * Return any field from products or products_description table
     * Example: zen_products_lookup('3', 'products_date_added');
     */
      function zen_products_lookup($product_id, $what_field = 'products_name', $language = '') {
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.3]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jun 2007
    Location
    Hull, East Yorkshire, UK
    Posts
    196
    Plugin Contributions
    0

    Default Re: Shopping Cart Display

    Took a while with a bit of trial and error but I managed to get there in the end. Thanks for pointing me in the right direction Ajeh

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    67,544
    Plugin Contributions
    6

    Default Re: Shopping Cart Display

    You are most welcome ... thanks for letting us know that you were able to get this working ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.3]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. No Shopping Cart display?
    By SpeedRacer in forum Upgrading from 1.3.x to 1.3.9
    Replies: 8
    Last Post: 1 Mar 2011, 03:05 AM
  2. Shopping Cart - Can't display Tax!
    By guyp in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 16 Apr 2008, 04:40 PM
  3. Replies: 2
    Last Post: 3 Apr 2008, 01:21 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
  •