[ic] Modify Price /w out Changing it..?

Mike Heins interchange-users@icdevgroup.org
Sun Sep 8 17:35:02 2002


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