[ic] pricing help needed

Mike Heins mike at perusion.com
Sat Mar 19 12:14:38 EST 2005


Quoting Peter (peter at pajamian.dhs.org):
> On 03/18/05 19:14, Mark Weaver wrote:
> >thank you SO much for your help. That last one got it. Placing the 
> >UseModifier in there I mean. I switched the discount percentages around 
> >and am using the regex grouping to test for specific sku numbers. Its 
> >finally working like a charm. You ROCK!
> >
> >Thanks again.
> >
> >UseModifier prod_group
> >CommonAdjust    :sale_price, ;:price, ;$, ==products,
> >"&($item->{code}=~/^(?:90|94|40)/ ? '-20%' : '-50%')"
> 
> You don't need the UseModifier if you're just checking $item->{code}. 
> You only need it if you want to check somethign else (like prod_group).

UseModifier in and of itself does nothing toward that end, anyway.
You have to use "AutoModifier pricing:price_group", which fetches the value
when the item is ordered.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

Being against torture ought to be sort of a bipartisan thing.
-- Karl Lehenbauer


More information about the interchange-users mailing list