Page 1 of 1
shipping costs depending on basket weight
Posted: 11 Aug 2017, 15:12
by pheeb
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
Re: shipping costs depending on basket weight
Posted: 11 Aug 2017, 17:16
by aimeos
Seems like the same issue as here:
help-f15/shipping-costs-disappear-from- ... t1058.html
Can you exchange the positions of the Autofill and ServicesUpdate basket plug-ins? (ServicesUpdate: 0, Autofill: 1)
Re: shipping costs depending on basket weight
Posted: 16 Aug 2017, 07:37
by pheeb
I have exchanged the the positions but the problem still exists.
Re: shipping costs depending on basket weight
Posted: 16 Aug 2017, 08:07
by aimeos
Can you post a screenshot of your plugin list and their configuration?
Re: shipping costs depending on basket weight
Posted: 16 Aug 2017, 08:55
by pheeb
Here I have the service configuration:
and here is the plugin configuration:
Re: shipping costs depending on basket weight
Posted: 16 Aug 2017, 09:41
by aimeos
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/b ... te.php#L43
Re: shipping costs depending on basket weight
Posted: 16 Aug 2017, 11:19
by pheeb
I've added the line, but still the same problem
here's the code:
Re: shipping costs depending on basket weight
Posted: 16 Aug 2017, 13:55
by aimeos
Re: shipping costs depending on basket weight
Posted: 16 Aug 2017, 14:01
by pheeb
It worked now!
I've added the 'editproduct.after()' function and maybe the cache didn't get the change.
thank you very much
Re: shipping costs depending on basket weight
Posted: 17 Aug 2017, 10:02
by aimeos
Does only the ServicesUpdate plugin or also the Autofill plugin need to register for this event?