[ic] Question about price adjustment on entry.html - order desk entry
Akash Shah
ic_user at hotmail.com
Sat Mar 12 01:45:48 EST 2005
Hi,
IC 5.2.0 - Foundation based catalog
I'm using the dealer field in userdb to denote wholesale type of users. I
want to use the admin order entry UI to order entries for them. Here is the
code I added to my entry.html
===================
[if value customer_id]
[tmp is_dealer][data table="userdb" column="dealer" key="[value
customer_id]"][/tmp]
[if scratch is_dealer]
This user is a dealer with dealer pricing
[perl]
$Config->{CommonAdjust} = ':wholesale, pricing:q10,q25:, ;:sale_price,
;:price, ;$, ==:options';
$Config->{NonTaxableField} = 'nontaxable';
return;
[/perl]
[else]
This user is a retail customer
[perl]
$Config->{CommonAdjust} = 'pricing:q10,q25:, ;:sale_price, ;:price, ;$,
==:options';
$Config->{NonTaxableField} = '';
return;
[/perl]
[/else]
[/if]
[/if]
===================
It displays pricing information correctly on the page, but when the order is
placed, it uses the default CommonAdjust string to calculate pricing
information. Any ideas on how do I fix that ?
Thanks.
-Akash
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
More information about the interchange-users
mailing list