Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Posts
    195
    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
    69,402
    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.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2007
    Posts
    195
    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
    69,402
    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.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

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 Display*/
    By broeder in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Apr 2009, 04:16 PM
  3. Shopping Cart wont display after adding product to cart
    By fmf_tactical in forum General Questions
    Replies: 2
    Last Post: 6 Mar 2009, 03:43 AM
  4. 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR