[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Shipping depending on quantity and price


Quoting Stefan Hornburg (Racke) (suppressed):
> Hello, Interchange users !
> 
> I got the following specification from one of my customers:
> 
> 1-4 items $8 then $2 a item after that
> 
> That part is pretty easy:
> 
> GNDCOM: UPS Ground
>         crit quantity
>         min  1
>         max  4
>         cost 8
> 
>         crit quantity
>         min 5
>         max 9999999
>         cost f [nitems] * 2
> 
> But additionally orders over $400 should get free shipping. 
> It is possible to express this in the shipping database
> without resort to custom tags ?

This is done in the "mike" demo with the free_or_upsg definition:


free_or_upsg:	UPS Ground
	crit	[subtotal noformat=1]
	min		0
	max		99.99
	cost	>>upsg

	min		99.99
	max		9999999
	cost	0.00
	free	Free!


upsg:	UPS Ground
	crit			weight
	at_least		4
	adder			@@TOTAL@@ * ($Variable->{UPS_ADDER_PCT} || .20)
	ups				1
	zone			450
	PriceDivide		1
	table			Ground
	ui_ship_type	UPSI
	aggregate		1
	surcharge_table Xarea
	default_geo		45056
	residential		1
	min				0
	max				0
	cost			e No shipping needed!

	min				0
	max				1000
	cost			u

	min				150
	max				9999999
	cost			e Too heavy for UPS

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295      <suppressed>

People who want to share their religious views with you
almost never want you to share yours with them. -- Dave Barry
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.