Catalog Tree Problem on V19.x

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
User avatar
Metalics
Posts: 65
Joined: 13 Jul 2015, 23:59

Catalog Tree Problem on V19.x

Post by Metalics » 01 Oct 2019, 13:34

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

User avatar
Metalics
Posts: 65
Joined: 13 Jul 2015, 23:59

Re: Catalog Tree Problem on V19.x

Post by Metalics » 01 Oct 2019, 17:16

Another problem:
Counts plugin working expected for attribute counts, but it doesnt work for category counts; it displays only counts of the current category.

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

Re: Catalog Tree Problem on V19.x

Post by aimeos » 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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Catalog Tree Problem on V19.x

Post by aimeos » 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?
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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
Metalics
Posts: 65
Joined: 13 Jul 2015, 23:59

Re: Catalog Tree Problem on V19.x

Post by Metalics » 02 Oct 2019, 21:20

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.

User avatar
Metalics
Posts: 65
Joined: 13 Jul 2015, 23:59

Re: Catalog Tree Problem on V19.x

Post by Metalics » 02 Oct 2019, 21:27

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.

User avatar
Metalics
Posts: 65
Joined: 13 Jul 2015, 23:59

Re: Catalog Tree Problem on V19.x

Post by Metalics » 02 Oct 2019, 22:05

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.

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

Re: Catalog Tree Problem on V19.x

Post by aimeos » 03 Oct 2019, 07:55

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Catalog Tree Problem on V19.x

Post by aimeos » 03 Oct 2019, 08:04

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?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply