[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Modify Price /w out Changing it..?
Hi All,
Can someone explain, in more detail, what needs to be changed in the
UI/pages/admin/entry.html page
I can't seem to make it work. After I hit recalc or place-order it goes back
to the database price.
Should there be more than just:
catalog.cfg:
CommonAdjust $, ;:sale_price, ;:price, ==:options
AND
../UI/pages/admin/entry.html:
<INPUT NAME=mv_searchspec>
</TD>
<TD BGCOLOR=__UI_C_INTBLOCK__ VALIGN=TOP ALIGN=CENTER>
<INPUT TYPE=text NAME="mv_order_quantity" SIZE=3>
</TD>
[set mv_UseModifier]mv_price[/set]
<TD BGCOLOR=__UI_C_INTBLOCK__ VALIGN=TOP ALIGN=RIGHT>
<input name="[modifier-name mv_price]" size=12>
</TD>
<TH BGCOLOR=__UI_C_INTBLOCK__ WIDTH="2"> </TH>
<TD BGCOLOR=__UI_C_INTBLOCK__ VALIGN=TOP ALIGN=RIGHT>
Thx.
Date: Sun, 8 Sep 2002 17:33:49 -0400
From: Mike Heins <mike@perusion.com>
To: interchange-users@icdevgroup.org
Subject: Re: [ic] Modify Price /w out Changing it..?
Reply-To: interchange-users@icdevgroup.org
Quoting Mike Mestnik (cheako911@yahoo.com):
> Hello World!
>
> I've been asked to add a new feature to the Order Entry screen (on the
> admin side only!!) of IC. We need to be able to make Orders with
> arbitrary Prices, due to haggling by our sales reps. I have done some
> digging and found that Vend/Interpolate.pm and
> lib/UI/pages/admin/entry.html will need to be changed. I also wanted
> to add a field, just a bool saying this price was modified, to the
> 'orderline' table so that these can be audited later. Any one see any
> pit falls in my future or give any help?
>
You don't need to edit the database....you can set up a screen which
inputs an mv_price modifier for order entry. That will magically become
the price for that order only, as long as your first CommonAdjust
entry is "$".
So, to look at the default from catalog.cfg:
CommonAdjust :sale_price, ;:price, ;$, ==:options
Make that:
CommonAdjust $, ;:sale_price, ;:price, ==:options
and it will work.
You will need to do
[set mv_UseModifier]mv_price[/set]
to get it to work, along with a text box
<input name="[modifier-name mv_price]" size=12>
in the item list.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.513.523.7621 <mike@perusion.com>
"Laughter is inner jogging." -- Norman Cousins