Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / linked products show same category

linked products show same category

Locked

Views: 3,050

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
11 Aug 2007, 9:15 PM
#1
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

linked products show same category

I can link products to multiple categories.

The problem is that selecting a linked product from a category list sends the user to that product page but the 'Category Icon' link at the top of the page shows the category that the master product is in.

So, if I had a product 'Socks' that was in the Clothing category and as a linked product in the Footwear category, then clicking on Socks within Footwear would take me to Clothing -> Socks.
And show a Clothing category link at the top of the page.

That would be confusing for a shopper.

Any suggestions, other than copying Socks to to Footwear, on how to stay within a category heading when showing a linked product page?

thx.

11 Aug 2007, 11:26 PM
#2
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

Re: linked products show same category

This only works because I have
admin > config > product info > Previous Next - Navigation Includes Category Position > set to "1"

and
admin > config > layout settings > define bread crumbs status > set to "0"
and I don't use category images

In tpl_modules_category_icon_display.php
replace the code in the div tags with this:

<div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR) .  '</a>'; ?></div>

In init_add_crumbs.php
comment out:

$breadcrumb->add(HEADER_TITLE_CATALOG, zen_href_link(FILENAME_DEFAULT));

and

$breadcrumb->add($productname->fields['products_name'], zen_href_link(zen_get_info_page($_GET['products_id']), 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));
11 Aug 2007, 11:40 PM
#3
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

Re: linked products show same category

CORRECTION:

I also turned off the link on the breadcrumb, so...

In tpl_modules_category_icon_display.php
replace the code in the div tags with this:

<div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<b>' . $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR) .  '</b>'; ?></div>
12 Aug 2007, 8:52 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: linked products show same category

NOTE: this has been updated in v1.3.8 to maintain the current cPath when browsing categories OR use the master_categories_id when the current cPath cannot be determined ...

This will maintain the flow of where are you durning navigation for the customer from a more logical stand point ...

12 Aug 2007, 11:14 PM
#5
winky3d avatar

winky3d

New Zenner

Join Date:
Jun 2007
Posts:
44
Plugin Contributions:
0

Re: linked products show same category

Good to know... thanks Ajeh.

22 Sep 2007, 7:10 PM
#6
rfrancis1980 avatar

rfrancis1980

New Zenner

Join Date:
Sep 2007
Posts:
2
Plugin Contributions:
0

Re: linked products show same category

I realize that v1.3.8 is not yet out but has the fix already been made in the current code base, are the category files updated already to keep the navigation consistent?

If so what are the files involved and where can I obtain them?

Thank you

Robert Francis

22 Sep 2007, 7:17 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: linked products show same category

We cannot do partial releases there are too many files involved and changes between versions ...

23 Sep 2007, 8:07 AM
#8
rfrancis1980 avatar

rfrancis1980

New Zenner

Join Date:
Sep 2007
Posts:
2
Plugin Contributions:
0

Re: linked products show same category

I'm not asking for a partial release, I am pretty technically savvy, and I was just hoping there was some documentation for the ongoing project that would point to the specific files on Sourceforge.net > Code > SVN (Subversion) so I could obtain the specific modified files.

If there is no project documentation with specifics on the files for me to access I can just peak around in there and download all the latest files and try to make them work.

23 Sep 2007, 2:15 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: linked products show same category

Sorry we have nothing to release until the code is done for the upcoming v1.3.8 ...

We don't release in part or before a release is tested to our satisfaction ...

20 Mar 2008, 4:59 AM
#10
focus360 avatar

focus360

New Zenner

Join Date:
May 2006
Posts:
76
Plugin Contributions:
0

Re: linked products show same category

Are linked product breadcrumbs suppose to be working in 1.3.8a?

As they still dont work for me.

22 Nov 2008, 6:07 PM
#11
tracstev avatar

tracstev

New Zenner

Join Date:
Apr 2008
Posts:
61
Plugin Contributions:
0

Re: linked products show same category

Hi

I have the latest version of zencart installed and can confirm that the linking issues is still apparent. Does anyone know how we can get around the issue with linked products whereby the breadcrumb shows the master category instead of the newly linked one?

Zencart is an excellent product and as a shop owner I feel this could be one of the single most important steps to improve conversion rates as customers will get confused as to where they are in the navigation and just leave the site.

Many Thanks

Tracey
Keep It Personal Personalised Gifts Shop UK

23 Nov 2008, 3:55 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: linked products show same category

Have you an example URL to a products_id where you think this is not working and the categories_id that the products_id is in and which one is the master_categories_id so this can be tested?

I cannot reproduce a problem with a Product in Linked Categories where the Product is not following the rules ...

23 Nov 2008, 3:59 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: linked products show same category

NOTE: the current rules are, if a categories_id is known and the Product exists in that categories_id then that is the path of the breadcrumb ...

If the categories_id cannot be figured out, then the master_categories_id is then used ...

This means if someone is in the Clearance items and clicks on a Product that is in DVDs and Clearance category the Product will follow the Clearance category ... but when in the DVDs Category the Product will follow the DVDs Category ...

So if the Product is randomly grabbed from somewhere and no Category is known at that moment, it will go to the master_categories_id ... in this case, the DVDs ...

23 Nov 2008, 7:03 PM
#14
tracstev avatar

tracstev

New Zenner

Join Date:
Apr 2008
Posts:
61
Plugin Contributions:
0

Re: linked products show same category

Hi

Thanks for the reply, if you follow this link and click on Nickel plated personalised cufflinks the breadcrumbs will show the product in

Home >> Birthday Gifts >> **Gifts For Him **>>

http://www.keepitpersonal.co.uk/wedding-gifts-best-man-usher-pageboy-gifts-c-54_8_42.html

however it should really be:

Home >> Occasions >> Wedding Gifts >> Best Man, Usher, Pageboy Gifts >> **Best Man, Usher, Pageboy Gifts **

Many Thanks!

Tracey

23 Nov 2008, 7:56 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: linked products show same category

When you hover over the products in your linked page, the bar at the bottom shows an (SEO-style) address with no info but the product name and id. Since there is no cPath involved, Zen Cart uses the master category as Ajeh described.

You need to find out why your links are being built this way.

24 Nov 2008, 12:43 PM
#16
tracstev avatar

tracstev

New Zenner

Join Date:
Apr 2008
Posts:
61
Plugin Contributions:
0

Re: linked products show same category

Thanks for replying, I think the default settings for SEO URLS have the Cpath off by default :-(. If I enable this now the urls will all change, some of which rank high in google...drat. I guess I need to weigh up whether to take a hit on user experience and conversions or have a temporary blip on Google.

24 Nov 2008, 1:07 PM
#17
tracstev avatar

tracstev

New Zenner

Join Date:
Apr 2008
Posts:
61
Plugin Contributions:
0

Re: linked products show same category

I have just enable the cpath option in seo urls in another new site I have just bought online and can confirm this fixes the linked product issue i have been experiencing... this appends the ?cpath to the end of all product URLS. Will this effect the google ranking of these pages if i enable the option since the URL is the same except for the addition of the ?cPath=1, i'm guessing it will, however the site I have the issue with is reasonably established in the search.