[ic] Shipping based on Price and wheigt

Mike Heins mike at perusion.com
Fri Feb 10 20:42:12 UTC 2012

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 Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.253.4194  <mike at perusion.com>

Life isn't fair, but it's good. -- Regina Brett

More information about the interchange-users mailing list