[ic] Shopping Cart Items

Joshua Eckert interchange-users@icdevgroup.org
Mon Jun 17 14:06:02 2002


On Monday 17 June 2002 11:37 am, you wrote:
> At 10:13 AM 06/17/2002 -0500, you wrote:
> >I am running into a bit of a stumbling block with adjusting my shopping
> > cart. I can delete the top item on the list (quantity name: quantity0)
> > but any other doesn't get deleted until the move up the item list to the
> > top.  I looked throught the archives but I didn't find any references to
> > this.  Here is the code is use in a nutshell.
> >
> ><FORM action="[process]" method=post>
> >            <input type=hidden name=mv_session_id value="[data session
> > id]"> <input type=hidden name=mv_doit value=refresh>
> >            <input type=hidden name=mv_checkout value="ord/checkout">
> >            <input type=hidden name=mv_nextpage value="ord/basket">
> >
> >            <input type=checkbox name="[quantity-name]"
> >               onclick="this.form.action='[process-target]',
> >
> >               this.form.submit()" value=0> Remove
> ></FORM>
> >
> >Of course there is more to this code but here is the meat and pototoes, if
> >any one can give me a hand or point me in the right direction I would be
> > very gratefull.
>
> That bit looks right, so something in the larger code picture is amiss.
> Have you modified your cart? Does this remove checkbox come before or after
> the Qty input in the code order?
>
> - Ed L.
>
>
> ===============================================================
> Increase profits from your Interchange store...
> http://www.newmediaems.com/cgi-bin/nm/software_fus.html
> ===============================================================
> New Media E.M.S.               Software Solutions for Business
> 463 Main St., Suite D          eCommerce | Consulting | Hosting
> Placerville, CA  95667         edl@newmediaems.com
> (530) 622-9421                 http://www.newmediaems.com
> (866) 519-4680 Toll-Free       (530) 622-9426 Fax
> ===============================================================
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users

Here is the whole component so there is a better under standing of where I am 
screwing up.  Still without " yet, thanx for noticing Tobias.

<!----------------Cart Display-------------------------->
[comment]
ui_component: cart_display
ui_component_type: content
ui_component_group: info
ui_component_label: Smaller cart for display in content area

[/comment]
<FORM action="[process]" method="post">
 <input type=hidden name=mv_session_id value="[data session id]">
           <input type="hidden" name="mv_doit" value="refresh">
           <input type=hidden name=mv_checkout value="ord/checkout">
           <input type=hidden name=mv_nextpage value="ord/basket">
<!-- BEGIN COMPONENT [control component cart_display] -->
[if items]
<center>
  <table width="95%" border="0" cellspacing="0" cellpadding="0">
                <TR class="contentbar2" VALIGN=TOP>
                        <td align=center class="contentbar2">Action</td>
                        <td class="contentbar2">
                          SKU
                        </td>
                        <td class="contentbar2">
                          Description
                        </td>
                        <td class="contentbar2">
                          Quantity
                        </td>
                        <td class="contentbar2">
                          Price
                        </td>
                        <td class="contentbar2">
                          Extension
                        </td>
                </TR>
        <TBODY>
[item-list]

<tr class="contentbar1">
        <td align=center valign=top>

           <input type=checkbox name="[quantity-name]"
              onclick="this.form.action='[process-target]', 
this.form.submit()" value=0> Remove

        </TD>
        <td valign=top>[item-sku]</TD>
        <td valign=top>[page [item-sku]][item-data products 
description]</A></TD>

        [if-item-modifier gift_cert]
        <TD ALIGN=CENTER><small>Amount of gift:</small></TD>
        <TD ALIGN=CENTER>[item-quantity]</TD>
        <TD ALIGN=right>
                        [item-subtotal]
        </TD>
        [else]
        <TD ALIGN=CENTER>[item-quantity]</TD>
        <TD ALIGN=right>
                        [item-price]
        </TD>
        <TD ALIGN=right>
                        [item-subtotal]
        </TD>
[/else]
[/if-item-modifier]
</TR>
<tr>
<td width=100% colspan=10>
</tr>
[/item-list]
</TBODY>
</table>
</FORM>
</center>
[/if]

<!-------------------- End Cart Display ----------------------->