[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] On the Fly item
At 10:57 AM 3/30/2002 +0100, you wrote:
>I try to set up an "on the fly item", but I need a description field input
>by customer, the problem is the mv_order_fly variable has 2 fields
>concatenated with the | symbol, and I don't know how to do it.
>
>Thanks
>Salvador
>
>IC 4.8.3
>\
Probably what you need to do is collect the description as a separate form
input, then assemble that with the price in an mv_click (or it may need to
be an mv_check), i.e.:
[seti item_price](set price for item here)[/seti]
<form ...>
<input type=hidden name=mv_todo value=refresh>
<input type=hidden name=mv_order_item value="your_item_code">
<input type=text name=description length=45>
...
<input type=submit name=mv_click value="Add to Cart">
</form>
[set Add to Cart]
[calc]
$CGI->{mv_order_fly} = "description=$CGI->{description}";
$CGI->{mv_order_fly} .= "|price=$Scratch->{item_price}";
return;
[/calc]
[/set]
Not sure if this code will work or not, but that is the basic idea.
- Ed L.
===============================================================
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================