Default shipping costs

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)
Spam and unrelated posts will be removed immediately!
createanet
Posts: 72
Joined: 22 Mar 2021, 16:56

Default shipping costs

Post by createanet » 26 Nov 2021, 10:33

Morning,

When a visitor adds items to their basket, the basket summary displays the shipping amount as 0.00.

Im wondering if its possible to set a default delivery service where it can then inherit the price assigned so there is an indicator of the general cost of delivery?

I have explored the possibility of a plugin, and I know I can get the result I am after by overriding the getCostsDelivery in the following class and by checking on the count of delivery services in the users session/basket.

Code: Select all

\Aimeos\Client\Html\Common\Client\Summary\Base
I just wanted to clarify if either of this approaches is good or there is an alternative I am missing perhaps.

Thanks for your time.

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

Re: Default shipping costs

Post by aimeos » 27 Nov 2021, 09:25

The "Autofill" plugin is exactly build for this and you can configure it as you need:
https://aimeos.org/docs/latest/manual/plugins/#autofill
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

createanet
Posts: 72
Joined: 22 Mar 2021, 16:56

Re: Default shipping costs

Post by createanet » 29 Nov 2021, 08:16

Thank you! This does just the job...once I finally worked out my provider was returning false when the plugin checks availability of the service type configured.

Post Reply