Results 1 to 3 of 3
  1. #1

    Default Adding category to shopping cart

    Hi Everyone,

    I'm looking to add the category of the product next to the name on the shopping cart,

    I imagine you will be changing the includes/templates/yourtemp/templates/tpl_shopping_cart_default.php
    But im not sure what to put.

    Danny

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

    Default Re: Adding category to shopping cart

    You could customize the file:
    /includes/templates/template_default/templates/tpl_shopping_cart_default.php

    using your templates and overrides with the code in RED:
    Code:
    <a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo zen_get_categories_name_from_product($product['id']) . '<br />' . $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
    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

    Default Re: Adding category to shopping cart

    Exactly What I was looking for,

    Thanks!

 

 

Similar Threads

  1. v154 Adding top category name to shopping cart
    By DannyVarley in forum General Questions
    Replies: 7
    Last Post: 11 Jun 2016, 05:08 PM
  2. Adding and linking category name in shopping cart
    By newbie456 in forum General Questions
    Replies: 7
    Last Post: 8 Dec 2012, 09:01 PM
  3. Adding sub category name to the shopping cart?
    By Kamatari in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Nov 2011, 11:38 PM
  4. adding shopping cart image to shopping cart sidebox?
    By RobertG in forum Addon Sideboxes
    Replies: 13
    Last Post: 26 Oct 2011, 06:24 AM
  5. 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

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