Akopia Akopia Services

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

[mv] Named Subroutines and Shipping



******    message to minivend-users from Bill Beecham <billb@vrmetro.com>     ******

Howdy all!

I am running minivend 3.14 and FREEBSD

I have a customer (We are a online mall) that sells motorcycle parts.
Some of these are oversized and if they ship via air they need to be
calculated according to UPS formula for oversized. I cut out the formula
and did it by hand entering the adjusted weight in a field called
"dweight".

I have a named subroutine in the catalog.cfg and in shipping I have the
following:
code description criteria min max formula
Ground UPS Ground price 0 25.00 4.49
Ground UPS Ground price 25.01 50.00 4.99
Ground UPS Ground price 50.10 75.00 5.99
Ground UPS Ground price 75.01 98.99 6.99
Ground    UPS Ground price 99.00 999999.00 0

upsblue UPS Blue weight 0 0 0 e Nothing to ship!
upsblue UPS Blue weight 0 150 u upsblue [default zip]
upsblue UPS Blue weight 150 99999999 e Too much weight for UPS. Contact
us.

[if-data products dweight]
upsblue UPS Blue weight 0 0 0 e Nothing to ship!
upsblue UPS Blue weight 0 150 s dimensionalweight; [value dweight]
upsblue UPS Blue weight 150 99999999 e Too much weight for UPS. Contact
us.
[/if-data]

I want to have the subroutine of "dimesnionalweight" take the value of
dweight over the field called "weight". I want to simply return the
value of dweight as the new weight value and let the ups lookup do its
thing. Only, I am thinking I am missing alot of code I need to get this
to work. Can anyone help? There will most likely be several items in the
cart. I have the oversized items flagged with the dweight field. So, if
it is null it is treated like a regular item. But, if it conatins a
value I want to pass that value o the weight field. I do not want to
overwrite the weight field because it has a value also that needs to
stay as it is incase they wanna ship via ground. I just need the dweight
value to be treated as if it were "weight" and let the ups lookup or
something figure out the cost.

Does this mke sense? I certainly hope so. I need help badly before our
cust decides not to have us build and host their site. We would be
willing to pay if we could get a solution to this problem.

Bill Beecham
www.vrmetro.com


-
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: