Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Link the subcategory to their respective product listing in shopping cart page

    Hi guys, hope im on the right thread, just want to ask how am I going to link the subcategory to their respective product listing on product listing


    managed to get the category name by following this thread

    http://www.zen-cart.com/forum/showth...=108556&page=2


    but now, I want to link it to their product listing.

    eg.
    I have a product in cart,

    item_name
    subcategory_name

    the subcategory_name should be clickable and when I click on that, it should lead me to subcategory_name product listing


    can anyone help me or guide me on this?

    Thanks in advance

    Cheers
    Leen

  2. #2
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Link the subcategory to their respective product listing in shopping cart page

    Hi there still having trouble doing this. I already searched for weeks and now im tired


    it is now linking to the product listing but it displays the icons(for the categories) that is on homepage and it gets the product name not the category name. here is the code that I used

    PHP Code:
    <a href="<?php echo str_replace("product_info""index",$product['linkProductsName']); ?>"><font size="-2" color="#898787"><span id="cartProdTitle"><?php echo zen_get_categories_name(zen_products_lookup($product['id'], 'master_categories_id'));
    ?></span></a>

    here is the link to the site im concerned with

    https://spares.cncmachinery.com.au/i...=shopping_cart

    add a product to cart then click the gray text under the product name..that is what i am pertaining to


    and this is what i want it to look like


    https://spares.cncmachinery.com.au/i...e=products_all


    as you can see, the gray text there under the product name leads to the product listing of that category.I managed to get that by using this code but it doesnt work for the shopping cart

    PHP Code:
    <a hrefindex.php?main_page=index&cPath="'.  zen_href_link(zen_get_info_page($products_all->fields['product_id']),  'cPath=' 

    .zen_get_generated_category_path_rev(
    $products_all->fields['master_categories_id'])

    .  
    $productsInCategory[$products_all->fields['category_id']] . '&linkProductsName=' . $products_all->fields['product_id']) .  '"

    Please shed some light to me..
    Any help from you guys is greatly appreciated.

  3. #3
    Join Date
    Aug 2011
    Posts
    64
    Plugin Contributions
    0

    Default Re: Link the subcategory to their respective product listing in shopping cart page

    anyone please? Im desperate for help

 

 

Similar Threads

  1. How to link Product listing on shopping cart?
    By lala rock in forum General Questions
    Replies: 9
    Last Post: 13 Dec 2011, 03:15 AM
  2. Replies: 0
    Last Post: 10 Oct 2011, 12:39 AM
  3. Skip subcategory link and list all subcategory products as product listing
    By ellivir in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Aug 2010, 05:06 PM
  4. Adding the Shopping Cart Contents Directly On The Product Listing Page
    By watzursn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Sep 2008, 12:18 AM
  5. Replies: 22
    Last Post: 28 Nov 2007, 05:44 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