[ic] ordering an option has me stumped-solved

Scott Andreas interchange-users@icdevgroup.org
Wed Sep 25 13:40:01 2002


> -----Original Message-----
> From: interchange-users-admin@icdevgroup.org
> [mailto:interchange-users-admin@icdevgroup.org]On Behalf Of Scott
> Andreas
> Sent: Monday, September 23, 2002 4:53 PM
> To: Interchange Users
> Subject: [ic] ordering an option has me stumped
>
>
> He is my code. Th option ( from options db ) does not want to be
> placed into
> the cart for some reason and I've been racking my brain on this proble
>
> As you can see the first row contains the primary data and the
> loop contains
> the options data
>
> It works if I use the standard [options] tag but it doesn't if I bread out
> from it
>
> Any help would be greateful
>
> No info in the error.log file
>
>
>
> <TBODY><form action="[process-target]" method="post">
>                <input type="hidden" name="mv_todo" value="refresh">
>                <input type="hidden" name="mv_order_item"
> value="[item-code]">
>                   [set color][item-alternate
> 2]#CCCCCC[else]#CCCC99[/else][/item-alternate][/set]
>                   <tr bgcolor="[scratch color]">
>                     <td vAlign="top" align="center"><input type=checkbox
> name="mv_sku" value="[item-code]"></td>
>                     <td vAlign="top" align="center"><input size="3"
> name="mv_order_quantity" value=" "></td>
>                     <td vAlign="top" align=center><font face="Verdana,
> Arial, Helvetica, sans-serif" size="1">[if-item-field version][item-field
> version][/if-item-field]&nbsp;[if-item-field platform]-&nbsp;[item-field
> platform][/if-item-field]</font></td>
>                     <td vAlign="top" align=left><font
> face="Verdana, Arial,
> Helvetica, sans-serif" size="1">[item-price]</font></td>
>                   </tr>
> [if-item-data options o_enable]
>        [loop
>                search="
>                       st=db
>                       fi=options
>                       co=1
>                       sf=sku
>                       se=[item-code]
>                       nu=0
>                       tf=price
>                       to=n
>                       rf=code,price,description
>                     "
>         ]
> 	[list]
>                     <tr bgcolor="[scratch color]">
>                       <td vAlign="top" align="center"><input type=checkbox
> name="mv_sku" value="[loop-data options code]"></td>


mv_order_quantity must be separated from the list and placed as a single
input function if using a single "buy" button.

However in order to use this function for each item a "buy" button must
accompany the line item


>                       <td vAlign="top" align="center"><input size="3"
> name="mv_order_quantity" value=" "></td>
>                       <td vAlign="top" align=center><font face="Verdana,
> Arial, Helvetica, sans-serif" size="1">[loop-data options description]
> &nbsp;[if-item-field platform]-&nbsp;[item-field
> platform][/if-item-field]</font></td>
>                       <td vAlign="top" align=left><font face="Verdana,
> Arial, Helvetica, sans-serif" size="1">$[loop-data options
> price]</font></td>
>                     </tr>
> 	[/list]
>        [/loop]
>   [/if-item-data]
>                            </TBODY>
>                   </table>
>                 </td>
>               </tr>
>
>             </table>
> <table>
> <tr>
>             <td><p align="center"><br>
>             <input type="submit" value="Place into Cart!" name="submit">
> </td>
>           </tr>
>
>         </table>
>         </form>
>
> Thanks in Advanced
>
>
> J. Scott Andreas :)
> IS/Programmer/WebDevelopement
> Learning Services, Inc.
> e-mail: sandreas@learningservicesinc.com
> phone: 1-800-877-9378 ext. 146
> fax: (541) 744-2056
>       ---    __o
>      ---   _-\<,_
>       --- (_)/ (_)
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>