[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] daily special offer rotation


Jon Jensen <suppressed> 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
 _/ _/    _/          _/ _/     _/    _/  _/_/    suppressed
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.