[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] loop and mv_order_quantity
The value that you try to set in your form is not submitted, since a
"submit" is missing. Instead you submit the order by placing a link.
Only the content of your link is transferred, but not the contents of
your form.
If you add the order part to the form and add the submit, then it should
work.
Chris
Sascha Wüst wrote:
>
> ****** message to minivend-users from Sascha W=?ISO-8859-1?Q?=fcst_?=<swuest@rz-online.de> ******
>
> Hi,
>
> could someone please tell me what I did wrong ( see code snippet)
> Ordering the looped item from the database works fine but unfortunately
> I am unable to change the order quantity. I can select a quantity and
> order the item but in the basket page it always is 1 no matter what I do.
> I have tried everything (even read the manual :-) )
>
> Thanks
> Sascha
>
> -----snip---
> <table border="0">
> [loop search="se=Typ FG/sf=category/st=sql"]
> <tr>
> <td>[loop-field Prodname]
> </td>
> <td>[loop-field price]</td>
> <td><FORM ACTION="[process-target]" METHOD=POST>
> <INPUT TYPE=hidden NAME=mv_todo VALUE=refresh>
> <INPUT TYPE=hidden NAME=mv_order_item VALUE="[loop-code]">
> <select NAME=mv_order_quantity size=5>
> [if-field bestellmenge]
> [loop arg="[loop-field bestellmenge]"]
> <option value="[loop-code]">[loop-code]
> [/loop]
> [else]
> <option value="1" selected>1
> <option value="2">2
> <option value="5">5
> <option value="10">10
> <option value="50">50
> <option value="100">100
> <option value="500">500
> <option value="1000">1000
> <option value="5000">5000
> <option value="10000">10000
> [/else]
> [/if-field]
> </select>
> </td>
> <td><a href="[area order [loop-code]]" CLASS="buybtn"><img src="__IMAG
> E_DIR__/korbtxt.gif" border="0"></td></form>
> <td></td></tr>
> [/loop]
> </table>
> ---snip---
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list