Results 1 to 8 of 8
  1. #1

    Default Adding top category name to shopping cart

    Hi Guys,

    What would be the code to add the top category name next to the name of the product on the shopping cart?

    Really I would be wanting to add the breadcrumb of each product under the product title on the shopping cart.

    Many thanks,
    Daniel

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Adding top category name to shopping cart

    Really I would be wanting to add the breadcrumb of each product under the product title on the shopping cart.
    I see this as your breadcrumb
    Home > Replacement Kitchen Doors > High Gloss > High Gloss White

    Maybe a more exact explanation of what and where you want this??
    Zen-Venom Get Bitten

  3. #3

    Default Re: Adding top category name to shopping cart

    Yep, So as well as using the website for people to purchase on, we also use the website to do quotations on. For example if someone wants a quotation for a full kitchen. We will add everything they want to the basket and we have a quotation page that we print out. The problem we are having is that the products are the same in some categories and on the quotation page we cannot tell what category they are from, So I would like to put the breadcrumb of the product in the shopping cart on the shopping cart page. I have attached an image to hopefully make a little more sense!

    Before
    Click image for larger version. 

Name:	BEFORE.PNG 
Views:	46 
Size:	18.3 KB 
ID:	16395
    After
    Click image for larger version. 

Name:	AFTER.PNG 
Views:	52 
Size:	21.3 KB 
ID:	16394

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Adding top category name to shopping cart

    The problem we are having is that the products are the same in some categories and on the quotation page we cannot tell what category they are from
    Have you thought of assigning a unique "Model Number" to each product??
    This is builtin already
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Adding top category name to shopping cart

    In the case of linked product (which sounds like might be present on this site) the information immediately available while on the shopping cart does not include the category from which the product was chosen but instead the master category can be determined. From there the "path" to the product could be presented, but it again if a linked product then the category "tree" presented would not necessarily be the same as from where it was selected.

    To obtain the information from where it was selected would require additional data capture at the time of adding the item to the cart.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6

    Default Re: Adding top category name to shopping cart

    They not linked products, as they are pretty much the same products in different ranges, they all just have different prices depending on the range so I couldn't use linked products. I could use the product code in the shopping cart but the codes do not make much sense to our customers whereas If I could include the breadcrumb then this would make sense to anyone reading the quotation.

    Daniel

  7. #7

    Default Re: Adding top category name to shopping cart

    I have been trying to add loads of different things to see if I can find what might make it work. I feel like it should be very simple but I havent gotten anywhere so far? Any ideas guys?

  8. #8
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Adding top category name to shopping cart

    On the page in question, need to be able to access the products_id for the product for the following to "work":
    Code:
    echo zen_output_generated_category_path(zen_get_products_category_id($products_id)‎);
    Such that the $products_id above is replaced by whatever represents the actual products_id for the "row".

    On the shopping cart page: $product['id'] is the $products_id.
    Last edited by mc12345678; 11 Jun 2016 at 05:13 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 Adding category to shopping cart
    By DannyVarley in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Jul 2013, 02:17 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. Get Top Level Category Name
    By kidsstuff in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 29 Oct 2010, 07:36 PM

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