Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Incorrect breadcrumbs

Incorrect breadcrumbs

Views: 1,878

Results 1 to 14 of 14
10 Apr 2013, 4:36 PM
#1
vaishali avatar

vaishali

New Zenner

Join Date:
Nov 2011
Location:
London, United Kingdom
Posts:
13
Plugin Contributions:
0

Incorrect breadcrumbs

Hi,

I am using Zen cart V1.3.9 and i am new to zen cart.

My product category page displays all products in grid layout (12 products per page). When I have more than 12 products for that category rest of the products will display on next page. Whenever i am clicking page 2 or next link category title changes to last product appears on previous page. Also that product name appears in breadcrumbs.

Please refer to attached image.

Thanks in advance.

Attachment 12332

10 Apr 2013, 5:11 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Incorrect breadcrumbs

Please provide a link to the site.

11 Apr 2013, 1:20 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,809
Plugin Contributions:
15

Re: Incorrect breadcrumbs

electronics_black appears to be a "store bought" template and they very seldom work well with actual application in Zen Cart.

Also, it may be a result of the the extra </form> that shows up at the bottom of the products page. Don't know if this is a cause of the template or the add-on.

11 Apr 2013, 1:58 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Incorrect breadcrumbs

Your Previous/Next page numbers appears to be including the products_id of the last Product on the list ... you need to not include that and then it will not show in the breadcrumb ...

11 Apr 2013, 2:05 PM
#6
vaishali avatar

vaishali

New Zenner

Join Date:
Nov 2011
Location:
London, United Kingdom
Posts:
13
Plugin Contributions:
0

Re: Incorrect breadcrumbs

Ajeh:

Your Previous/Next page numbers appears to be including the products_id of the last Product on the list ... you need to not include that and then it will not show in the breadcrumb ...

Can you please give me more explanation on how to remove Products_id from Previous/Next page links.

11 Apr 2013, 2:15 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Incorrect breadcrumbs

Not sure off the top of my head as I do not have the code that you are using to make that Previous/Next incorrectly ... er, umm ... with the products_id tagged on it ... :lookaroun

11 Apr 2013, 2:43 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Incorrect breadcrumbs

I notice that your top categories have products directly in the category, as well as subcategories. This is known to cause errors; I don't know all the kinds of errors it could cause, but I would correct this and see if your breadcrumb etc. display improves.

11 Apr 2013, 3:05 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Incorrect breadcrumbs

Did it work that way since you first installed the template, or was there a point after that when it started misbehaving? Did you copy/link all of your products into the top categories as it appears? Or are you using a mod to show all products in top cats? If so, which one (there are several versions)? Identify all mods you installed, or particular ones you know to be installed, that relate to the product listing page.

12 Apr 2013, 10:51 AM
#10
vaishali avatar

vaishali

New Zenner

Join Date:
Nov 2011
Location:
London, United Kingdom
Posts:
13
Plugin Contributions:
0

Re: Incorrect breadcrumbs

gjh42:

Did it work that way since you first installed the template, or was there a point after that when it started misbehaving? Did you copy/link all of your products into the top categories as it appears? Or are you using a mod to show all products in top cats? If so, which one (there are several versions)? Identify all mods you installed, or particular ones you know to be installed, that relate to the product listing page.

Hi,

It was working fine when we installed template then we hired a developer to do some customisation. He has probably done some customisation on category page to display the products in grid form. However the developer is no longer with us. I can PM with the relevant code if you can tell me what files you want me to grab the code from. Hopefully that gives an idea to you about customisation and where we can fix the problem.

Many thanks,
Vaishali

12 Apr 2013, 4:44 PM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: Incorrect breadcrumbs

Did you copy/link all of your products into the top categories as it appears? Or are you using a mod to show all products in top cats?
This will affect the advice we can give.

The relevant code outputting the product/category name is likely to be in /includes/templates/your_template/templates/tpl_index_product_list.php. Post the first 40 lines or so of that file (in PHP tags - icon in textbox heading) so we can see what they have done that is nonstandard.

19 Apr 2013, 10:37 AM
#12
vaishali avatar

vaishali

New Zenner

Join Date:
Nov 2011
Location:
London, United Kingdom
Posts:
13
Plugin Contributions:
0

Re: Incorrect breadcrumbs

gjh42:

Did you copy/link all of your products into the top categories as it appears? Or are you using a mod to show all products in top cats?
This will affect the advice we can give.

The relevant code outputting the product/category name is likely to be in /includes/templates/your_template/templates/tpl_index_product_list.php. Post the first 40 lines or so of that file (in PHP tags - icon in textbox heading) so we can see what they have done that is nonstandard.

I did check for the file tpl_index_product_list.php and i found out the developer had renamed files which are not executed (tpl_index_product_list.php_old). I also renamed the back to the original name tpl_index_product_list.php to see what would happen when the page is loaded. Unfortunately we have the same problem. So my guess is that the developer copy the code from this file to another file which i think you are trying to say "copy/link all of your products into the top categories". So would you happen to know the name of the file that would most likely run the code.

19 Apr 2013, 2:33 PM
#13
gjh42 avatar

gjh42

Black Belt

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

Re: Incorrect breadcrumbs

"copy/link all of your products into the top categories" refers to an admin process. In Catalog > Categories/Products, you can copy a product to another category, either by linking the original (usually the best method) or by duplicating it (when it becomes a new product in the database with the same name and description).

19 Apr 2013, 2:38 PM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: Incorrect breadcrumbs

You can compare the custom files you have with stock versions from a freshly downloaded fileset (same ZC version as your store) using something like Winmerge. This will show which files have been altered and where/how.