[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Setting PriceField on the fly


Grant wrote:
Hello, I'm trying to set PriceField on a page like this:

[perl no_return="1"]
    $Config->{PriceField} = 'other_price';
[/perl]

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';


Bye
	Racke


--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

_______________________________________________
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.