ai-customergroups - Price missing

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!
Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

ai-customergroups - Price missing

Post by Moritz » 21 Nov 2022, 09:23

We use your ai-customergroups extension 2022.10.2.
When we add a new product with a price, the mshop_price.cgroups column is NULL (instead of 0) and no price is displayed in the frontend.

mshop_price.png
mshop_price.png (12.99 KiB) Viewed 14520 times
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

nos3
Posts: 89
Joined: 01 Sep 2015, 13:26

Re: ai-customergroups - Price missing

Post by nos3 » 21 Nov 2022, 12:33

Did you configure the extension according to the ./vendor/aimeoscom/ai-customergroups/README.md file?

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: ai-customergroups - Price missing

Post by Moritz » 21 Nov 2022, 12:45

I think so. This is in my template on the root page.

cgroup_config.PNG
cgroup_config.PNG (29.85 KiB) Viewed 14504 times
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: ai-customergroups - Price missing

Post by Moritz » 25 Nov 2022, 08:53

A group is never saved for a price item.
Do I make a mistake in the configuration?
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: ai-customergroups - Price missing

Post by aimeos » 25 Nov 2022, 13:36

There was an optimization in the Aimeos core for saving items in all managers only if they or their dependent items have been modified. However, it turned out now that it doesn't work for dependent items of dependent items like

Code: Select all

product -> list item (price) -> price -> list item (customer/group)
If only the list item for the customer/group item and the price item itself is marked as modified, the product item and the list item for the price is not. Therefore, those items aren't updated because it was expected that saving the product items also updates all dependent items along the dependency graph.

We've reverted the change back now. It's currently available in aimeos/aimeos-core:dev-master and aimeos/aimeos-core:2022.10.x-dev and a new release will be tagged soon.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: ai-customergroups - Price missing

Post by Moritz » 25 Nov 2022, 13:45

Thank you very much for the fix!

Can you explain, how I create a prerelease by myself?
I don't use the composer mode.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

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

Re: ai-customergroups - Price missing

Post by aimeos » 25 Nov 2022, 14:21

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: ai-customergroups - Price missing

Post by Moritz » 28 Nov 2022, 10:07

With this version everything is saved correct i think.
Thank you very much!
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: ai-customergroups - Price missing

Post by Moritz » 08 Dec 2022, 12:35

I have the same trouble again.
Changes on existing price items are recognized and saved correcly (v22.10.4-pre2).
But when I add a new price item it is only showed in the backend.
In the frontend nothing is visible.
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

Moritz
Advanced
Posts: 153
Joined: 07 Nov 2018, 14:05

Re: ai-customergroups - Price missing

Post by Moritz » 08 Dec 2022, 14:28

The same problem when I save an attribute (which has a price item) to a product and want to receive the attribute price in the frontend.

Code: Select all

$attr->getRefItems('price', null, 'default')->toArray()
It doesn't work for new saved items and I get an empty array...
Ubuntu 22.04.01
PHP 7.4.30
Typo3 v11.5.21 LTS
Aimeos web shop 22.10.4-pre3

Post Reply