[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [mv] Change total weight on checkout page
Sadly, we are using Minivend 4.04 and do not have
that option. I think I can write all the code to
determine if the right items are in the cart, but
do you know how to change the total shipping weight
field, or even what the name of this field is?
thanks again
Shawn
On Sat, 07 July 2001, Ed LaFrance wrote:
>
> 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
_______________________________________________
Minivend-users mailing list
Minivend-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/minivend-users