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

Kevin Walsh kevin at cursor.biz
Tue Oct 14 15:00:33 EDT 2003


Jürgen R. Plasser [plasser at hexagon.at] wrote:
> 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?
>
Here's some code to get you started:

    <form action="[process-target]" method="POST">
        <input type="hidden" name="mv_session_id" value="[data session id]">
        <input type="hidden" name="mv_todo" value="refresh">
        <input type="hidden" name="mv_order_item" value="[item-code]">
        <input type="text" name="mv_order_quantity" value="1" size="3">
        <input type="submit" value="[L]Add to cart[/L]">
    </form>

--
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/




More information about the interchange-users mailing list