MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

RE: Shipping _syntax_ proposal (Was Re: UPS Shipping Returns $0.00 (Continue))



It is late, so I thought I would throw my 2 cents in. I think most people
would agree that the shipping.asc file is a little obscure. I like the
direction you are heading Mike. It may seem a trivial change, but I think
it would be much clearer if the criteria was a UserTag like this:

upsg	UPS Ground	weight	0	150	[ups-shipping base=Ground zip=[default zip
12345] handling=1.00]

Rather than the cryptic bunch of positional parameter lists within
parameter lists that they currently are:

upsg	UPS Ground	weight	0	150	u Ground [default zip 90803] 0

And in addition to being clearer, the UserTags could be used as templates
for building customized shipping. I like it.

Christopher Thompson


> -----Original Message-----
> From: owner-minivend-users@minivend.com
>
> ******    message to minivend-users from mikeh@minivend.com     ******
>
> Quoting Kyle Hayes (kyle540@quicknet.net):
> > Here was where I was starting to head (totally unfinished):
> >
> > shipping.cfg:
> >
> > Database	Ground	Ground.csv	CSV
> > Database	Zone	Zone.csv	CSV
> >
> > ...
> > LookUp	UPSGZone	DATABASE	Zone
> > LookUp	UPSGZone	KEY		RANGE [value zip]
> > LookUp	UPSGZone	COLUMN		Ground
> > LookUp	UPSGZone	FAIL		'Unknown zip code
> [value zip]'
> >
> > LookUp	UPSGTarif	DATABASE	Ground
> > LookUp	UPSGTarif	KEY	SUM weight
> > LookUp	UPSGTarif	RANGE_MAX	150
> > LookUp	UPSGTarif	RANGE_MIN	0
> > LookUp	UPSGTarif	COLUMN	LOOKUP UPSGZone
> > LookUp	UPSGTarif	FAIL	'UPS will only ship up to
> 150lbs.  Please contact us for bulk shipping information.'
> > ...
> >
> > Shipping upsg	NAME	UPS Ground
> > Shipping upsg	VALUE	UPSGTarif
>
> I am afraid I don't see where this helps the average user.
> I believe the beauty of the MV scheme is this one:
>
> expert_shipping	Shipping	[my-criteria]	0
> 99999999	f [my-shipping]
>
> Now a usertag can implement anyone's scheme, while the ones that
> many people use, the simple table-based ones, are covered.
>
> Perhaps the focus should be a library of UserTags like:
>
> 	[dhl-shipping weight="@@TOTAL@@"].
>
> As for add-on modules, they can be added at any time:
>
> AddDirective YourLookUp lookups
> GlobalSub  <<EOS
> sub custom_shipping {
> 	use MyShippingModule;
> 	CODE: {
> 	}
> 	return $cost;
> }
> EOS
>
> I encourage implementation of an alternate shipping setup. It doesn't
> need me...I have done my best here. 8-)
>
> --
> Mike Heins                          http://www.minivend.com/  ___
>                                     Internet Robotics        |_ _|____
>                                     131 Willow Lane, Floor 2  | ||  _ \
> It's a little-known fact            Oxford, OH  45056         | || |_) |
> that the Y1K problem caused         <mikeh@minivend.com>     |___|  _ <
> the Dark Ages. -- unknown           513.523.7621 FAX 7501        |_| \_\
> -
> To unsubscribe from the list, DO NOT REPLY to this message.
> Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>



Search for: Match: Format: Sort by: