> Hello, I'm trying to set PriceField on a page like this:
>
> [perl no_return="1"]
> $Config->{PriceField} = 'other_price';
> [/perl]
My mistake. The above works perfectly. Sorry for any confusion. - Grant
> but it doesn't seem to be working. I'm using this technique to set
> VendURL and SecureURL on the fly and it works perfectly. I do have
> the field "other_price" in my products table. How can I get this to
> work?
You might also need to adjust CommonAdjust.
I have the following code in one of my projects:
if($record->{price_level} =~ /([b-n])/) {
$Scratch->{price_level} = $1;
$Config->{PriceField} = "price_$1";
} else {
$Scratch->{price_level} = 'a';
$Config->{PriceField} = 'price';
}
$Config->{CommonAdjust} = "products:$Config->{PriceField},
[calc-price], ; ==options:pricing:options";
$Config->{PriceField} = 'noprice';
_______________________________________________ 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.