[ic] CommonAdjust with attribute lookup

Tim Watts interchange-users@lists.akopia.com
Mon May 28 23:41:01 2001


Try

[data table=pricing column=color key=size]

should return proper price if color and size are replaced with proper info


on 5/28/01 5:39 PM, Ben Mirecki at ben@quadrantfive.com wrote:

> Hi,
> 
> I'm stuck with a CommonAdjust problem. I want to be able to create a
> CommonAdjust atom that looks up a value from an arbitrary table, based on
> two item attributes.
> 
> For example, I have a pricing.txt table as follows:
> 
> sku      blue    red    green
> small    9.00    10.00  11.00
> medium   8.75    9.75   10.75
> large    6.00    7.00   8.00
> 
> 
> I also have this...
> 
> UseModifier color, size
> 
> ...defined in my catalog config file. So, I need a CommonAdjust line that
> looks up the item price based on both color and size. Anyone know how this
> is done?
> 
> Thanks a million!
> Ben (another Interchange hacker)
> 
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
> 


Tim Watts
president
Romans1013.net
Internet Hosting
Loaded with features:
FREE shopping cart!
UNLIMITED email!
No Monthly Fees - Just One Low Payment, One Time per Year!
Visit our web site for details:
www.Romans1013.net