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)
#4489 by pheeb
11 Aug 2017, 15:12
I have various delivery services with different weight configurations (Manual,Weight).

PostPacEconomy_2kg ( weight.min = 0.1 ,weight.max = 2 )
PostPacEconomy_5kg ( weight.min = 2.1 ,weight.max = 5 )
PostPacEconomy_10kg ( weight.min = 5.1 ,weight.max = 10 )

So the shipping costs depends on basket weight. In Aimeos 17.4.1 i had no problem when I changed the amount of an article in the basket. But after an update to 17.7.0 the shipping cost are no longer updated immediately on change only if i add a new article to the basket.

Should i do this differently now?

Regards Patrik
7.6.10, Aimeos 17.7.0 / PHP 5.6.30-0+deb8u1
#4510 by aimeos
16 Aug 2017, 09:41
The problem seems that editing products was done before by deleting and re-adding the product with the changed quantity in the basket. Now there's a specialized "editProducts()" method in the basket for this which sends its own new signal.

Can you please add this line
Code: Select all$p->addListener( $this->getObject(), 'editProduct.after' );

here for a quick test an see if it then works:
https://github.com/aimeos/aimeos-core/blob/master/lib/mshoplib/src/MShop/Plugin/Provider/Order/ServicesUpdate.php#L43