URL changes if I include a menu item for category list

Phoca Cart - complex e-commerce extension
gestor
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Feb 2023, 16:07

URL changes if I include a menu item for category list

Post by gestor »

Hi,

So I've created a menu item that list categories. (Categories View (Category list layout - default view)) and call it SPECIAL DEALS;
In the option tab of this menu item i choose to display only 2 categories;
These two categories are restricted to registered users;
Users belong to different customer groups;

When a user is in the shop the and it is not logged, the URL is ../cms/index.php/en/shop;
But when user is logged, starting to browse categories, the URL changes to ../cms/index.php/en/special-deals/1-baby-food;

And going back categories it will display only the 2 initial categories that i've created, but not all categories, since the URL now is ../cms/index.php/en/special-deals/;

If i disable the menu item then the URL is back to 'normal' /cms/index.php/en/shop;

Am i doing some kind of conflict?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: URL changes if I include a menu item for category list

Post by Jan »

Hi, yes, it is recommended to use only one menu link for items which are in tree (categories -> category -> product) so there is only one format of menu link.

In case you have e.g. menu link to categories (which is recommended) and you need to create other menu link e.g. to one product - it is better istead of creating menu link to product just navigate in frontend from categories to category to product - copy the link from URL bar and create menu link as type "System Link - URL" and paste there the fixed URL:

Image

In this case, there wil be no two different menu links with two different menu link format.

Jan
If you find Phoca extensions useful, please support the project
gestor
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Feb 2023, 16:07

Re: URL changes if I include a menu item for category list

Post by gestor »

Thanks Jan.

Using your great tips i found out a way to workout a solution:

- Instead of listing categories with a menu item i choose to list - Category View (Product list layout), so it does not interfere with the structure;

- I created just one category called SPECIAL DEALS with sub categories PROMO1 and PROMO2;

Done!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: URL changes if I include a menu item for category list

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply