[prev in list] [next in list] [prev in thread] [next in thread] 

List:       interchange-users
Subject:    Re: [ic] daily special offer rotation
From:       Kevin Walsh <kevin () cursor ! biz>
Date:       2008-03-26 1:43:16
Message-ID: 200803260143.25469.kevin () cursor ! biz
[Download RAW message or body]

Jon Jensen <jon@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@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic