shipping costs depending on basket weight

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)
pheeb
Posts: 10
Joined: 19 May 2017, 16:21
Location: Chur
Contact:

shipping costs depending on basket weight

Post 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

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

Re: shipping costs depending on basket weight

Post by aimeos » 11 Aug 2017, 17:16

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

pheeb
Posts: 10
Joined: 19 May 2017, 16:21
Location: Chur
Contact:

Re: shipping costs depending on basket weight

Post by pheeb » 16 Aug 2017, 07:37

I have exchanged the the positions but the problem still exists. :cry:

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

Re: shipping costs depending on basket weight

Post by aimeos » 16 Aug 2017, 08:07

Can you post a screenshot of your plugin list and their configuration?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

pheeb
Posts: 10
Joined: 19 May 2017, 16:21
Location: Chur
Contact:

Re: shipping costs depending on basket weight

Post by pheeb » 16 Aug 2017, 08:55

Here I have the service configuration:

Image


and here is the plugin configuration:

Image

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

Re: shipping costs depending on basket weight

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

pheeb
Posts: 10
Joined: 19 May 2017, 16:21
Location: Chur
Contact:

Re: shipping costs depending on basket weight

Post by pheeb » 16 Aug 2017, 11:19

I've added the line, but still the same problem :cry:

here's the code:

Image

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

Re: shipping costs depending on basket weight

Post by aimeos » 16 Aug 2017, 13:55

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

pheeb
Posts: 10
Joined: 19 May 2017, 16:21
Location: Chur
Contact:

Re: shipping costs depending on basket weight

Post by pheeb » 16 Aug 2017, 14:01

It worked now!

I've added the 'editproduct.after()' function and maybe the cache didn't get the change.

thank you very much :D

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

Re: shipping costs depending on basket weight

Post by aimeos » 17 Aug 2017, 10:02

Does only the ServicesUpdate plugin or also the Autofill plugin need to register for this event?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply