[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Q on variables and shipping
I have a questions on code from 'web_store.setup.frames.javascript'...
# The first pipe-delimited fields correspond to the
# sc_order_form_shipping_related_fields.
I first took this line to mean plural fields 'pipe-delimited fields',
then I read on down the file and read all this over again and I then
thought it was a mis-type and was actually talking about the first
field only.
So I re-wrote the line as...
......
# The first of the pipe-delimited fields correspond to the
# sc_order_form_shipping_related_fields.
Even with this small (nit picky) change, I still don't understand
the reference to the 'sc_order_form_shipping_related_fields'.
I also added more comments on the structure of the @sc_shipping_logic
array.
# Breakdown:
# field 1: shipping type - i.e. UPS
# field 2: total price - order amount shipping relates to
# field 3: total quantity - quantity shipping relates to
# field 4: total measurement - how much (volume) shipping relates
to
# field 5: shipping cost/percentage - Hard value / percentage of total
cost
@sc_shipping_logic = ("ups||1-10||5", # UPS 1 to 10 items, $5.00 charge
"ups||11-||10", # UPS 11 or more items, $10.00
charge
"fedex||1-10||20", # FedEX 1 to 10 items, $20.00
charge
"fedex||11-||30", # FedEX 11 or more items, $30.00
charge
"USmail||1-||5%", # US Mail, 1 or more items, 5% of
total charge
"Pidgeon|15|||10"); # Pidgeon, $15 order, $10.00
charge
After reading the comments on the discount option, I created this...
# Discount logic is the same as shipping logic except
# that whatever value is calculated for the discount will
# be subtracted rather than added to the grand total.
#
# Breakdown:
# field 1: discount type - ???
# field 2: total price of item order - ???
# field 3: total quantity - at what quantity does discount
apply
# field 4: total measurement - at what measurement does discount
apply
# field 5: discount ampount - Hard value or percentage
@sc_discount_logic = ("|1-||1"); # no type, 1 or more, $1.00 discount
As you can see, I don't think I understand this very well.
I wish to express my appriciation for the complexity and
sohpistication of this code and the help from this forum.
Walter