Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    79
    Plugin Contributions
    0

    Default Add description to shopping cart

    My store uses short descriptions and I'd like to include them in the shopping cart. I added this:
    Code:
    <?php echo zen_products_lookup($product, 'products_description'); ?>
    to tpl_shopping_cart_default.php but it's pulling up the description for the first product in the database for ALL products.

    What am I missing?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add description to shopping cart

    is $product actually the products_id? Or is it using something else?

    Do you really want products_description or do you have another field where the short product description is stored?
    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!]
    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
    May 2007
    Posts
    79
    Plugin Contributions
    0

    Default Re: Add description to shopping cart

    I have to admit I'm clueless here. I'm not sure what to use - I've tried $product and $product['id'] with same results each time.

    I do want to pull products_description because all the descriptions are very short anyway -- there's no need to create a special field for short descriptions.

    It is pulling the right description -- but for the wrong product. It displays the description from the first product in the database for each product in the shopping cart.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Add description to shopping cart

    If I add this around line 86 under the clear both ...
    PHP Code:
    <br class="clearBoth" />
    <?php echo zen_products_lookup($product['id'], 'products_description'); ?>
    I get the description displayed ...

    You will need to tidy this up some ...
    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!]
    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!

  5. #5
    Join Date
    May 2007
    Posts
    79
    Plugin Contributions
    0

    Default Re: Add description to shopping cart

    Thanks, I tried that and it's still returning the same description for everything in the shopping cart. For some reason it's stuck on product_id 1 and returns that description for everything.

  6. #6
    Join Date
    May 2007
    Posts
    79
    Plugin Contributions
    0

    Default Re: Add description to shopping cart

    I tried changing from products_description to other fields, like products_price, and so far every field works correctly except products_description. I know descriptions are stored in a separate table. Could that be the problem?

 

 

Similar Threads

  1. How to show product description in shopping cart?
    By gaurav10feb in forum Basic Configuration
    Replies: 21
    Last Post: 21 Jul 2010, 03:50 AM
  2. Replies: 1
    Last Post: 10 Sep 2009, 09:14 PM
  3. Add product description to the shopping cart?
    By pharry in forum General Questions
    Replies: 2
    Last Post: 19 Jul 2009, 05:04 PM
  4. Navigation description for Shopping Cart users
    By juniper in forum General Questions
    Replies: 1
    Last Post: 1 Feb 2009, 05:24 PM
  5. Adding description to shopping cart contents list
    By FreshP in forum General Questions
    Replies: 14
    Last Post: 15 Dec 2007, 07:39 AM

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