[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [mv] Change total weight on checkout page
At 06:09 PM 07/06/2001 -0700, you wrote:
>Hi, I am wanting to reduce the total shipping weight
>on the checkout page if two certain part numbers are
>in the cart at one time, anyone know of an easy way
>to do this? I want to give a discounted shipping rate
>if two items are bundled together.
>
>thanks!
>Shawn
Rather than reducing the weight, there are a couple of ways you can reduce
the total shipping charge, if that will accomplish your goal. Recent
flavors of the 4.7.x branch have the [assign] tag for this purpose. You
can also use the adder in the shipmode attribs hash in IC 4.6 and 4.7
(snippet of list thread follows):
>You can set the adder. The eighth field in a tab-separated line is the options
>field, and it can be a hash reference. (The sixth field is the cost field,
>so there needs to be a tab between that and the options field.) It can contain
>something like:
>
> { adder => '@@TOTAL@@ * .05' }
>
>That will add 5% to the calculated cost.
Thanks, Mike. FWIW to whomever might be listening, you can reference the
scratch variable hash (and no doubt other data structures as well) in the
adder, allowing dynamic control over the adjustment, which is where I was
ultimately headed with this (here's a contrived example):
On some catalog page:
[if something_is_true]
[set shipping_adder]-2[/set]
[else]
[set shipping_adder][/set]
[/else]
[/if]
In shipping.asc:
{ adder => '$Scratch->{shipping_adder}' }
...allows you to conditionally take $2 off of the shipping charges.
- Ed L.
===============================================================
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================
_______________________________________________
Minivend-users mailing list
Minivend-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/minivend-users