[ic] Shipping based on Price and wheigt
Salvador C.
ea3bkz at amsat.org
Sun Feb 12 19:57:26 UTC 2012
Al 10/02/12 21:42, En/na Mike Heins ha escrit:
> Quoting Salvador C. (ea3bkz at amsat.org):
>> I would like to create a new shipping method based on the price and
>> weight, with the following conditions:
>>
>> If total weight is less than X or the total price is higher than Y
>> shipping cost = 0
>
> Use chains. The following is untested, but should work.
>
> free_or_check_weight: UPS Ground
> crit [subtotal noformat=1]
> min 0
> max 99.99
> cost >>free_or_upsg
>
> min 99.99
> max 9999999
> cost 0.00
> free Free!
>
> free_or_upsg: UPS Ground
> crit weight
> min 0
> max 2
> cost 0.00
> free Free!
>
> min 2
> max 9999999
> cost >>upsg
>
> upsg: UPS Ground
> crit weight
> ....
>
Mike,
This is exactly what I was looking for, the example works perfectly,
thanks.
regards
Salvador
More information about the interchange-users
mailing list