CompactCodeEU / FixProductBreadcrumbs

This is a Fix for Magento 2.2.4 and 2.2.5 where the Product Breadcrumbs are generated with JS normally and contain unwanted text.
GNU General Public License v3.0
32 stars 13 forks source link

Wrong Position Category ID #5

Open Pratovecchio opened 5 years ago

Pratovecchio commented 5 years ago

Example: If the main category has ID 9 and the subcategory ID 6, appears in the product: Home -> Subcategory -> Main Category -> Product Name

The exact position of the breadcrumb instead must be: Home-> Main Category -> Subcategory -> Product Name

How to solve this problem?

bradleyr1 commented 5 years ago

Just to verify, same issue here.. subcat should be just before product. Otherwise thanks, nice job.

screen shot 2018-10-03 at 10 45 21
CompactCodeEU commented 5 years ago

Can you provide me a link where i can check this?

CompactCodeEU commented 5 years ago

Tried in on several installs but i always get the correct order image

Weird

CompactCodeEU commented 5 years ago

Can you check your "anchor" settings of the categories and give me a backend screenshot of the categories?

Pratovecchio commented 5 years ago

This is the site: https://www.materassionline.it/ The category is "Materassi". When I go into the subcategory and then into the product, the breadcrumb change the order. The category "Materassi" is anchor.

CompactCodeEU commented 5 years ago

We will try to reproduce this bug. More information will be available next week with a potential fix. Our apologies for this inconvenience.

maciejslawik commented 4 years ago

I know this issue is kinda old, but I came across it in a project for one of my clients.

The issue occurs when the parent category has a higher entity_id than it child - then the child is loaded first and is displayed first in breadcrumbs.

maciejslawik commented 4 years ago

Related PR: https://github.com/CompactCodeEU/FixProductBreadcrumbs/pull/9