[ic] daily special offer rotation
Kevin Walsh
kevin at cursor.biz
Tue Mar 25 20:43:16 EST 2008
Jon Jensen <jon at endpoint.com> wrote:
> On Tue, 25 Mar 2008, Chris Kershaw wrote:
>
> > You could try adding the price of the specials to the cart from the
> > flypage with:
> >
> > <input type="hidden" name="mv_item_option" value="mv_price">
> > <input type="hidden" name="mv_order_mv_price" value="10.00">
> >
> > Then make sure to change the CommonAdjust in catalog.cfg to look for the
> > price in the cart first. It should look something like this:
> >
> > CommonAdjust $ ;:sale_price, ;:price, ==:options
> >
> > The $ being the price in your cart
>
> Though of course be aware that having any prices specified in HTML means
> that malicious end-users can manipulate prices. That doesn't mean you
> should never consider doing it, but you'd want to be aware of the
> potential for abuse and have a way of preventing it or dealing with it.
>
That's correct. A better solution would be to specify your
offer_rotation.price column at the start of your CommonAdjust,
much like the following:
CommonAdjust <<EOC
offer_rotation:price,
;:sale_price,
;:price,
==:options
EOC
See the following page for more information:
http://www.interchange.rtfm.info/icdocs/Price_maintenance_with_CommonAdjust.html#tablecolumnkey
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list