Shipping Calculation based on Order $ amount

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
xarga
Posts: 43
Joined: 16 Dec 2019, 22:54

Shipping Calculation based on Order $ amount

Post by xarga » 31 Mar 2020, 07:39

I set up a new shipping service with the following simple objective

Orders over $50 will ship free
Orders Under $50 will be charged $10 shipping

I have
Provider : Standard, Reduction

reduction.basket-value-max : 100000
reduction.basket-value-min : 50
reduction.percent : 100
reduction.product-costs : no

Prices:

Tax Rate % : 0.00
Actual Current Price : 0.00
Subtracted Rebate Amount : 0.00
Shipping/Payment Cost : 10.00

Minimum Qty : 1

However, regardless of whether the cart value is over or under $50, instead of a line showing Shipping Cost I just get a line under the total showing:

Included rebates $ 10.00 (That is not deducted from the total.)

Any idea what I'm doing wrong here? I'm new to Aimeos and one would think such a simple shipping calculation wouldn't be that complicated.

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

Re: Shipping Calculation based on Order $ amount

Post by aimeos » 01 Apr 2020, 07:25

The calculation is correct and exactly what you want. The value of the free shipping ($10) is added to the amount of rebates granted, which is also perfectly valid. If you don't want to show that value, you should hide it via CSS.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

xarga
Posts: 43
Joined: 16 Dec 2019, 22:54

Re: Shipping Calculation based on Order $ amount

Post by xarga » 01 Apr 2020, 23:28

Still wasn't working (shipping value not shown for amounts under $50) and I identified the problem was caused by how I had incorrectly entered the reduction values as shown below:

reduction.basket-value-max : 100000
reduction.basket-value-min : 50

Once I corrected this to the following values everything seems to work great. Thanks for your help.

reduction.basket-value-max : {"USD":"100000"}
reduction.basket-value-min : {"USD":"50"}
:D

Post Reply