[ic] flypage with order and put-in-basket buttons, form action problem

Jürgen R. Plasser plasser at hexagon.at
Tue Oct 14 13:14:28 EDT 2003


Hello,

I have modified flypage.html for one reason: Customers should be able to 
order an item directly (next page is the basket) or just like in the search 
result to put a number of items into the basket without changing the page 
view.
Looking at the source of results_buylist there I find this form construct:

<FORM ACTION="[area nothing]" METHOD=POST>
  <input type=hidden name=mv_session_id value="[data session id]">
  <INPUT TYPE=hidden NAME=mv_action VALUE=refresh>
  <INPUT TYPE=hidden NAME=mv_separate_items VALUE=0>
  <INPUT TYPE=hidden NAME=mv_click VALUE=munge_quantity>

I don't know what area nothing means and I haven't found very much by 
googling 'round. But it works ;-)
So, my intention was to use the same code in the flypage.

<FORM ACTION="[area nothing]" METHOD=POST>
  <INPUT TYPE=hidden  NAME="mv_order_item"  VALUE="[item-code]">
  <input type=hidden name=mv_session_id value="[data session id]">
  <INPUT TYPE=hidden NAME=mv_action VALUE=refresh>
  <INPUT TYPE=hidden NAME=mv_separate_items VALUE=0>
  <INPUT TYPE=hidden NAME=mv_click VALUE=munge_quantity>
...
fields:
<input type=hidden name="mv_oi[item-increment]" value="">
[L]Quantity[/L]: <input type=text name=mv_order_quantity size=2 value="1">

"put-in-basket-button" (should stay on flypage.html, the same item):
<input type=image src="__THEME_IMG_DIR__warenkorb.gif" 
onClick="this.form.mv_oi[item-increment].value='[item-code]'" border=0>

Order-Button (leads to ord/basket.html)
[order [item-code]]<img src="__THEME_IMG_DIR__buynow.gif" 
ALT="[item-description]" BORDER="0">[/order]
</FORM>

When I click the "put-in-basket-button" I get an URL like this:
"/scan/fi=products/st=db/co=yes/sf=prod_group/_img/_img/foowhite.gif.html"

How can I solve this better?


-- 
 __  DI Jürgen R. Plasser   * *** ***** ****** *********  plasser at hexagon.at
/  \ HEXAGON EDV-Dienstleistungen |  A-4221 Steyregg | Weissenwolffstraße 14
\__/ www.hexagon.at | info at hexagon.at | Internet | ASP | Security | Software






More information about the interchange-users mailing list