Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default [Done v1.6.0] Loose Breadcrumbs after clicking customers also purchased links

    Never noticed this before, and have tried on various different sites of different versions and all seem to have the same thing happen.

    When i'm viewing a product and below is the customers also purchased links for other products, when I click on one (lets say Product1) when you arrive to the page the breadcrumb trail is lost.. ?

    is this done purposly?

    So for exmaple when I visit Product1 after clicking the link from also purched box the breadcrumb on the page is:

    Home>Product1

    instead of being

    Home>ACategory>Product1

    looking at the url generated it adds the param

    &cPath=

    without a category ID. remove it and the breadcrumbs are correct. Is this done on purpose? maybe something to do with linked products??

    I'm sure it makes absolutly no difference what so ever, apart from if a user is a breadcrumb user, but just curious..

    Ta,

    Phil
    Phil Rogers
    A problem shared is a problem solved.

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

    Default Re: Loose Breadcrumbs after clicking customers also purchased links

    You can fix this by changing the code in:

    from:
    Code:
        while (!$also_purchased_products->EOF) {
          $also_purchased_products->fields['products_name'] = zen_get_products_name($also_purchased_products->fields['products_id']);
          $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsAlsoPurch"' . ' ' . 'style="width:' . $col_width . '%;"',
          'text' => (($also_purchased_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . $also_purchased_products->fields['products_name'] . '</a>');
    
          $col ++;
    to read:
    Code:
        while (!$also_purchased_products->EOF) {
          $also_purchased_products->fields['products_name'] = zen_get_products_name($also_purchased_products->fields['products_id']);
          $also_master_categories_id = zen_get_products_category_id($also_purchased_products->fields['products_id']);
          $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsAlsoPurch"' . ' ' . 'style="width:' . $col_width . '%;"',
          'text' => (($also_purchased_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id($also_purchased_products->fields['products_id'])) . '&products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . $also_purchased_products->fields['products_name'] . '</a>');
    
          $col ++;
    NOTE: This has been moved to the Bug Reports for further review
    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
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Loose Breadcrumbs after clicking customers also purchased links

    Cheers Ajeh, was pretty happy how to fix, was more wondering if there was a reason behind it? Or is it a bug?
    Phil Rogers
    A problem shared is a problem solved.

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

    Default Re: Loose Breadcrumbs after clicking customers also purchased links

    More an over sight than a bug but we will look into it further ...
    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!

  5. #5
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Loose Breadcrumbs after clicking customers also purchased links

    Ok I'll keep an eye on this post for a formal response.

    Thanks
    Phil Rogers
    A problem shared is a problem solved.

 

 

Similar Threads

  1. v150 'Customers also purchased' layout
    By Limitless in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 15 Sep 2012, 07:47 PM
  2. Replies: 13
    Last Post: 23 Mar 2010, 02:29 PM
  3. Customers who purchased this, also purchased this, CSS issue
    By stlnyc in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Jul 2009, 11:12 PM
  4. Customers also purchased
    By ckosloff in forum Customization from the Admin
    Replies: 4
    Last Post: 13 Jun 2009, 01:33 AM
  5. [Done v1.3.8] Also Purchased Products Columns per Row
    By The Spirit in forum Bug Reports
    Replies: 4
    Last Post: 8 Jan 2007, 10:48 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