Questions by URL and breadcrumbs

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
Dinver
Posts: 27
Joined: 26 Oct 2020, 08:42

Questions by URL and breadcrumbs

Post by Dinver » 26 Oct 2020, 10:01

Hi,I installed demo shop aimeos-laravel. there is some questions.

1. URL category without nested tree.
/shop/category
click subcategory
/shop/subcategory
How to get URL (/shop/category/subcategory)?

2. I have not working breadcrumbs.
My local server behave like demo on laravel.demo.aimeos.org. I need so that breadcrumbs construct chain as on laravel.gigacommerce.aimeos.com.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Questions by URL and breadcrumbs

Post by aimeos » 27 Oct 2020, 09:08

Dinver wrote: 26 Oct 2020, 10:01 1. URL category without nested tree.
/shop/category
click subcategory
/shop/subcategory
How to get URL (/shop/category/subcategory)?
It's possible but difficult because "/" is usually a separator for parameters and you have to convince Laravel that only those strings are part of the category name. You also have to make sure that they are always unique and must map them to the existing categories.

The much easier way would be to use "/shop/category-subcategory~123" similar to the existing setup. The category names are only for the user but the "123" is the real category ID. For this, you have to add the parent category names to the generated URLs here:
https://github.com/aimeos/ai-client-htm ... d.php#L122
Dinver wrote: 26 Oct 2020, 10:01 2. I have not working breadcrumbs.
My local server behave like demo on laravel.demo.aimeos.org. I need so that breadcrumbs construct chain as on laravel.gigacommerce.aimeos.com.
The breadcrumbs are automatically generated if you have nested categories and the user clicks on one of them. If no category is selected, only "Your search result" is shown.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Dinver
Posts: 27
Joined: 26 Oct 2020, 08:42

Re: Questions by URL and breadcrumbs

Post by Dinver » 27 Oct 2020, 09:27

aimeos wrote: 27 Oct 2020, 09:08 The breadcrumbs are automatically generated if you have nested categories and the user clicks on one of them. If no category is selected, only "Your search result" is shown.
They not working at click for category on local and on demo site (laravel.demo.aimeos.org).
Image

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Questions by URL and breadcrumbs

Post by aimeos » 28 Oct 2020, 17:06

We've tried to suppress displaying the stage image in the detail view but that change had the consequence of breaking the breadcrumb in the detail view:
https://github.com/aimeos/ai-client-htm ... 15fbaf44bf

Now, we made a different kind of implementation for that.
Can you confirm that it's working for you too if you install

Code: Select all

composer req aimeos/ai-client-html:2020.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Dinver
Posts: 27
Joined: 26 Oct 2020, 08:42

Re: Questions by URL and breadcrumbs

Post by Dinver » 29 Oct 2020, 07:41

aimeos wrote: 28 Oct 2020, 17:06 We've tried to suppress displaying the stage image in the detail view but that change had the consequence of breaking the breadcrumb in the detail view:
https://github.com/aimeos/ai-client-htm ... 15fbaf44bf

Now, we made a different kind of implementation for that.
Can you confirm that it's working for you too if you install

Code: Select all

composer req aimeos/ai-client-html:2020.10.x-dev
Yes, it works now, thanks!

User avatar
Dinver
Posts: 27
Joined: 26 Oct 2020, 08:42

Re: Questions by URL and breadcrumbs

Post by Dinver » 28 Nov 2020, 08:11

Dinver wrote: 29 Oct 2020, 07:41
aimeos wrote: 28 Oct 2020, 17:06 We've tried to suppress displaying the stage image in the detail view but that change had the consequence of breaking the breadcrumb in the detail view:
https://github.com/aimeos/ai-client-htm ... 15fbaf44bf

Now, we made a different kind of implementation for that.
Can you confirm that it's working for you too if you install

Code: Select all

composer req aimeos/ai-client-html:2020.10.x-dev
Yes, it works now, thanks!
Appeared was another problem
1. I go to the page home(/) -> category page -> product page (breadcrumb: home -> category);
2. I returned page home, click product promotion section, breadcrumb save: home -> category. Although in category not of this product.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Questions by URL and breadcrumbs

Post by aimeos » 30 Nov 2020, 13:18

Don't really know what the problem is. Can you describe the steps based on the laravel.demo.aimeos.org site?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Dinver
Posts: 27
Joined: 26 Oct 2020, 08:42

Re: Questions by URL and breadcrumbs

Post by Dinver » 03 Dec 2020, 11:20

aimeos wrote: 30 Nov 2020, 13:18 Don't really know what the problem is. Can you describe the steps based on the laravel.demo.aimeos.org site?
In my understanding, after going to the home page, need to reset breadcrumbs.

Image

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Questions by URL and breadcrumbs

Post by aimeos » 04 Dec 2020, 08:02

The #gigacommerce demo is a bit special and not the latest version.
I think the problem occurs because the new catalog/home component doesn't reset the session parameters for the breadcrumb.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Dinver
Posts: 27
Joined: 26 Oct 2020, 08:42

Re: Questions by URL and breadcrumbs

Post by Dinver » 04 Dec 2020, 09:23

aimeos wrote: 04 Dec 2020, 08:02 The #gigacommerce demo is a bit special and not the latest version.
I think the problem occurs because the new catalog/home component doesn't reset the session parameters for the breadcrumb.
I have version installed 2020.10.x-dev

Post Reply