[ic] CommonAdjust

Jonathan Clark jonc@webmaint.com
Sun, 15 Apr 2001 08:55:59 +0100


>
> A little known fact about CommonAdjust is that you don't have to have
> them all be one, you can maintain multiple ones. Say you have as your
> default:
>
>     PriceField   common_adjust
>     CommonAdjust  pricing:q12,q24,q48,q96: ;:price
>
>     pricing.txt:
>     sku	q12	q24	q48	q96
>     AP-S		0.75	0.50
>
>     products.txt slice:
>     sku	price	common_adjust
>     AP-S	1.00
>
> If item AP-S has nothing in the field common_adjust, it uses the above.
> If another item needs different and custom breaks:
>
>     # Same as above, repeated
>     PriceField   common_adjust
>     CommonAdjust  pricing:q12,q24,q48,q96: ;:price
>
>     price_special.txt:
>     sku	q18	q36	q72
>     OR-S	0.90	0.75	0.50
>
>     products.txt slice:
>     sku	price	common_adjust
>     OR-S	1.00	price_special:q18,q36,q72 ;:price
>
> Now OR-S uses the CommonAdjust string from the database and ignores
> the default one.
>

Splendid, Mike!

Note added to the docs. Incidentally, I found the CommonAdjust
documentation; its on the [price] ictags page. I have added a note to the
CommonAdjust directive page to point people in the right direction.

Jonathan
Webmaint.