PDA

View Full Version : Help need on Removing All Items From Basket in click


pruthvikb
04-03-06, 01:12 PM
Hi,

I want to remove all items from shopping basket.
I have written follwing code.

<form method="post" action="&mvt:global:sessionurl;" ID="Form3">
<input type="hidden" name="Screen" value="BASK" ID="Hidden9">
<input type="hidden" name="Action" value="RPRD" ID="Hidden10">
<input type="hidden" name="Store_Code" value="&mvte:global:Store_Code;" ID="Hidden11">

<mvt:foreach iterator="item" array="basket:items">
<input type="hidden" name="Basket_Line" value="&mvte:item:line_id;" ID="Hidden12">
</mvt:foreach>

<mvt:item name="fonts" param="body_font">
<mvt:item name="buttons" param="Remove" />
</mvt:item>

</form>

While executin this code, it is removing first item from Basket_Line, it is not taking remaing items.

Please help me on this issue

Thank You
Kumar

ILoveHostasaurus
04-03-06, 04:40 PM
I don't know if there would be a way to remove all items from the basket as they are all treated independently and normally you'd have a seperate remove button for each line item. The remove form action can only take one product code in as the product to operate on.

latu
04-03-06, 05:20 PM
This would require a module and a modification to the BASK page template. A fairly simple System module would take care of this - and a button or link in the template that called the modules custom action.

pruthvikb
04-07-06, 08:09 AM
Hi,

Can we get this module?

Kumar

jason - jmh web services
04-07-06, 10:16 AM
Hi,

Can we get this module?

Kumar
ADS has the continue shopping pro (http://www.jmhonline.net/miva-modules/continue+shopping+v5) module which will do this and more.

Jason