Page 1 of 1

Catalog Tree Problem on V19.x

Posted: 01 Oct 2019, 13:34
by Metalics
Hello,
I want to let you know catalog filter tree problem after upgrading to Aimeos V19.x
When you click on a catagory link in catalog tree, path must be:
www.example.com/EN/products-and-services/f/1/Home/
But in Aimeos 19.x, the path is always:
www.example.com/EN/f/1/Home/

In this example, "products-and-services" is product listing page path. So, although you set Catalog List Page in "Catalog tree" plugin option, it has to effect on Aimeos V19.x (I tested, that problem doesn't occur with Aimeos V18.x)


On the other hand, i can not import categories via scheduler. I tried everything but always receiving the error below:
Execution of task "Aimeos Alışveriş gelişmiş işdüzenleyici (aimeos)" failed with the following message: Invalid catalog lines in "/..../....../public_html/fileadmin": 1/1

My Scheduler TypoScript setting:
plugin.tx_aimeos.settings.controller.jobs.catalog.import.csv.location = /..../....../public_html/fileadmin
plugin.tx_aimeos.settings.controller.jobs.catalog.import.csv.skip-lines = 1
plugin.tx_aimeos.settings.controller.jobs.catalog.import.csv.mapping {
item {
0 = catalog.code
1 = catalog.status
2 = catalog.parent
3 = catalog.label
}
}

Lines in CSV
Line1: item code,"item status","item parent","item label"
Line2: firsat-urunleri,"1","1","Firsat-Urunleri"

Can you please let me know if i miss something about importing categories

Re: Catalog Tree Problem on V19.x

Posted: 01 Oct 2019, 17:16
by Metalics
Another problem:
Counts plugin working expected for attribute counts, but it doesnt work for category counts; it displays only counts of the current category.

Re: Catalog Tree Problem on V19.x

Posted: 02 Oct 2019, 15:47
by aimeos
Metalics wrote: 01 Oct 2019, 17:16 Counts plugin working expected for attribute counts, but it doesnt work for category counts; it displays only counts of the current category.
Thanks for reporting! It's fixed in that commit now:
https://github.com/aimeos/ai-client-htm ... d3400331e9

Re: Catalog Tree Problem on V19.x

Posted: 02 Oct 2019, 15:55
by aimeos
Metalics wrote: 01 Oct 2019, 13:34 When you click on a catagory link in catalog tree, path must be:
www.example.com/EN/products-and-services/f/1/Home/
But in Aimeos 19.x, the path is always:
www.example.com/EN/f/1/Home/

In this example, "products-and-services" is product listing page path. So, although you set Catalog List Page in "Catalog tree" plugin option, it has to effect on Aimeos V19.x (I tested, that problem doesn't occur with Aimeos V18.x)
Which TYPO3 version do you use?
If it's TYPO3 8.7 and RealUrl, can you try to truncate the tx_realurl tables?
Metalics wrote: 01 Oct 2019, 13:34 On the other hand, i can not import categories via scheduler. I tried everything but always receiving the error below:
Execution of task "Aimeos Alışveriş gelişmiş işdüzenleyici (aimeos)" failed with the following message: Invalid catalog lines in "/..../....../public_html/fileadmin": 1/1

Lines in CSV
Line1: item code,"item status","item parent","item label"
Line2: firsat-urunleri,"1","1","Firsat-Urunleri"
Is the category with ID "1" available as parent to reference the new/updated category "firsat-urunleri" to? If you don't have a root category yet, the parent category must be empty.

Re: Catalog Tree Problem on V19.x

Posted: 02 Oct 2019, 21:20
by Metalics
aimeos wrote: 02 Oct 2019, 15:47
Metalics wrote: 01 Oct 2019, 17:16 Counts plugin working expected for attribute counts, but it doesnt work for category counts; it displays only counts of the current category.
Thanks for reporting! It's fixed in that commit now:
https://github.com/aimeos/ai-client-htm ... d3400331e9
Thank you. Problem seems to be solved.

Re: Catalog Tree Problem on V19.x

Posted: 02 Oct 2019, 21:27
by Metalics
aimeos wrote: 02 Oct 2019, 15:55
Metalics wrote: 01 Oct 2019, 13:34 When you click on a catagory link in catalog tree, path must be:
www.example.com/EN/products-and-services/f/1/Home/
But in Aimeos 19.x, the path is always:
www.example.com/EN/f/1/Home/

In this example, "products-and-services" is product listing page path. So, although you set Catalog List Page in "Catalog tree" plugin option, it has to effect on Aimeos V19.x (I tested, that problem doesn't occur with Aimeos V18.x)
Which TYPO3 version do you use?
If it's TYPO3 8.7 and RealUrl, can you try to truncate the tx_realurl tables?
Our Typo3 Version is 9.5.9 and not using RealUrl.
I downgraded to Aimeos V18 in our test website and problem disappeared. You can be sure that the problem is caused by Aimeos V19 and not related to realUrl.
Hint: Sometimes it seems to be fixed. But after clearing cache problem comes back.

Re: Catalog Tree Problem on V19.x

Posted: 02 Oct 2019, 22:05
by Metalics
aimeos wrote: 02 Oct 2019, 15:55
Metalics wrote: 01 Oct 2019, 13:34 On the other hand, i can not import categories via scheduler. I tried everything but always receiving the error below:
Execution of task "Aimeos Alışveriş gelişmiş işdüzenleyici (aimeos)" failed with the following message: Invalid catalog lines in "/..../....../public_html/fileadmin": 1/1

Lines in CSV
Line1: item code,"item status","item parent","item label"
Line2: firsat-urunleri,"1","1","Firsat-Urunleri"
Is the category with ID "1" available as parent to reference the new/updated category "firsat-urunleri" to? If you don't have a root category yet, the parent category must be empty.
I have a root category with ID "1" and trying to create a child category under it. If you use "1" as "parent category" you will receive the error i mentioned above. If you leave "parent category" empty, "firsat-urunleri" is created as a new root category.

Re: Catalog Tree Problem on V19.x

Posted: 03 Oct 2019, 07:55
by aimeos
Metalics wrote: 02 Oct 2019, 22:05 I have a root category with ID "1" and trying to create a child category under it. If you use "1" as "parent category" you will receive the error i mentioned above. If you leave "parent category" empty, "firsat-urunleri" is created as a new root category.
The "parent category" must be the code of the category, not it's ID.

Re: Catalog Tree Problem on V19.x

Posted: 03 Oct 2019, 08:04
by aimeos
Metalics wrote: 02 Oct 2019, 21:27 Our Typo3 Version is 9.5.9 and not using RealUrl.
Can you please post your route configuration?