[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Problem ordering items
Hi!
If I order an item from flypage, my cart recognizes that I took it once, is
the button pressed again the item wold be added to my cart to, but in a new
row (that is not okay for me). If I use
mv_separate_items VALUE="1"
the second item is added to the first rows item (then there are 2 items of
xxxxxx in cart)
This is okay for items without modifiers like color, size or so on, but if
these modifiers are used all items were added to one row and so I could not
order a blue and a red one. This works only with
mv_separate_items VALUE="0"
What I need is:
--When an I order an item it appears in one row as often as buy is pressed
--If an item has a modifier like color (blue, red) it should add the item
(text+red) into a new row as often -as pressed and the same for blue.
here is the code of my flypage:
****************************************************************************
*************************
<HTML><!--flypage-->
[tag flag build][/tag]
<HEAD><TITLE>[LOC][item-description][/LOC]</TITLE></HEAD>
[body 1 __mv_backfix__]
[include pages/top.html]
<CENTER>
<TABLE BORDER=0 WIDTH=500>
<TR>
<H2><p align="center">[item-description]</P></H2>
<TR>[if-field display]
<set align="center"><IMG SRC="[item_field display]">
[/if-field]</TR>
<TR>
<TD VALIGN=TOP><I>[item-field comment]</I><BR>
[if-field related]
<BR>[L]Related products[/L]
[loop arg="[item-field related]"]
[if !ordered [item-code]]
<li>[page [loop-code]] [loop-description][/page]
[/if]
[/loop]</TR><BR>
[/if-field]
</TD>
<TD ALIGN=RIGHT VALIGN=top WIDTH=200>
[L]Price[/L]: [item-price 1]<BR>
[if scratch mv_locale eq "de_DE"] [euro][item-price 1
noformat][/euro][/if]
<FORM ACTION="[process-target]" TARGET=nav METHOD=POST>
<INPUT TYPE=hidden NAME=mv_todo VALUE=refresh>
<INPUT TYPE=hidden NAME=mv_order_item VALUE="[item-code]">
<INPUT TYPE=hidden NAME=mv_separate_items VALUE="1">
[item-accessories size][item-accessories color]<BR> </TD>
</TR>
</TABLE>
<INPUT TYPE=image BORDER=0 SRC="ordernow.gif" VALUE="[LOC](ORDER
NOW)[/LOC]"></br>
<SET ALIGN="CENTER">[L]into the basket[/L]
</FORM>
[if-field price]
<INPUT TYPE=hidden NAME=mv_order_item VALUE="[discount-price]">
[/if-field]
</CENTER> </BODY> </HTML>
****************************************************************************
**************
Ciao
Marco Goebenich
*********************************************
* Linux is like an indian tent: *
* no gates, no windows, and a Apache inside!*
*********************************************