V20.4.1 update problem

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: V20.4.1 update problem

Post by aimeos » 27 May 2020, 12:51

Metalics wrote: 26 May 2020, 10:24 AG899675, "1", "default", "HPLC Column", "", --------, "Product1", "suggestion", "Product2", "suggestion", "Product3", "suggestion", "Product4", "suggestion", "Product5", "suggestion", "Product6", "suggestion", "Product7", "bought-together", "Product8", "bought-together", "Product9", "bought-together", "Product10", "bought-together", "Product11", "bought-together", "Product12", "bought-together"
Can you please check if column 306 till 329 match the columns in the CSV file (count starts with 0), that "Product1" to "Product12" are product codes like "AG899675" and "Product1" to "Product12" are imported before "AG899675"?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: V20.4.1 update problem

Post by Metalics » 27 May 2020, 14:07

aimeos wrote: 27 May 2020, 12:51 Can you please check if column 306 till 329 match the columns in the CSV file (count starts with 0), that "Product1" to "Product12" are product codes like "AG899675" and "Product1" to "Product12" are imported before "AG899675"?
Yes, i am sure all about these. With same CSV file, i test for "suggestion" and "bought-together" separately. It is working for "suggestion", but not wotking for "bought-together".

Besides, i get another error comes with V20.4.x after CSV product import :

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 1 passed to Aimeos\MShop\Product\Item\Standard::setStatus() must be of the type integer, string given, called in /...../typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mshoplib/src/MShop/Product/Item/Standard.php on line 447 | TypeError thrown in file /...../typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mshoplib/src/MShop/Product/Item/Standard.php in line 150. Requested URL: https://www.mydomain.com/typo3/index.ph ... ecute][]=1

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

Re: V20.4.1 update problem

Post by aimeos » 27 May 2020, 15:38

"bought-together" relations are usually generated by the Aimeos job controller automatically based on the orders. Thus, this product list type isn't updated by default. You can change this configuration to import that type too:
https://aimeos.org/docs/Configuration/C ... /listtypes

Use:

Code: Select all

['default', 'suggestion', 'bought-together']
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: V20.4.1 update problem

Post by aimeos » 27 May 2020, 16:10

Metalics wrote: 26 May 2020, 10:59
aimeos wrote: 23 May 2020, 07:31 we were unable to reproduce the issue of the duplicate counts. Can you add some screenshots from the backend how you've arranged and configured the catalog tree and attribute plugin?
Previously, catalog-filter was a single component so that the code in "header-standard.php" was adding only one count script in header.
Now we have catalog-tree, catalog-attribute and catalog-supplier as separated components, so in header we are having count script for each.
That's the point we could not reproduce because there's already a protection against multiple count links in the code:
1.) https://github.com/aimeos/ai-client-htm ... rd.php#L25
2.) https://github.com/aimeos/ai-client-htm ... #L234-L236
3.) https://github.com/aimeos/ai-client-htm ... d.php#L586

The single catalog/attribute, catalog/supplier and catalog/tree components inherit from the catalog/filter component so they all share the same static variable for protection.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: V20.4.1 update problem

Post by aimeos » 27 May 2020, 16:45

Here's a new pre-release which should fix the problems you've mentioned (besides duplicate counts):
https://aimeos.org/fileadmin/download/a ... 3-pre4.zip
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: V20.4.1 update problem

Post by Metalics » 27 May 2020, 21:31

aimeos wrote: 27 May 2020, 16:45 Here's a new pre-release which should fix the problems you've mentioned (besides duplicate counts):
https://aimeos.org/fileadmin/download/a ... 3-pre4.zip
Thank you, all is working.

@duplicate counts:
I think the duplication is related to cache. When opening the page including catalog-tree, catalog-attribute and catalog-supplier components first time, we have just one count script in header as expected. But if you refresh the page, it adds one more. Refreshing one more time is adding one more. If you clear frontend cache in Typo3 backend, you again have only one... so on...

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

Re: V20.4.1 update problem

Post by aimeos » 28 May 2020, 15:19

We are not able to reproduce that behavior with duplicate counts in a default installation. When you reload or click on a link (incl. category or attribute filter) the page reloads and the counts vanish until the Javascript in the catalog/count component does add them again.

If you have a look into the network tab of the browser console (right click on a text in the page and select "Inspect element"), do you see more than one request for an URL that includes "counts?..." ?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply