How to add a 'remove' button on shopping cart page?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 13 ans
How would I go about adding a remove button on the shopping cart page.

http://www.just4laptops.co.uk/ShoppingCart.aspx do it (Just add something to the cart)

?
Il y a 12 ans
I'm looking for this too.
Do you mean you want to replace the check box
with a button the user can click to delete the item in the cart?

If anyone has done this please share.
Il y a 12 ans
In Modules\OrderSummary.ascx, line 75... replace the existing checkbox with:

<asp:Button runat="server" Text="Remove" OnCommand="RemoveItem" ID="btnRemove" CommandName="remove" CommandArgument='<%# Eval("ShoppingCartItemId") %>' />

Then add (anywhere inside the class) the following code to Modules\OrderSummary.ascx.cs:

protected void RemoveItem(object sender, CommandEventArgs e)
   {
      this.ShoppingCartService.DeleteShoppingCartItem(Convert.ToInt32(e.CommandArgument), true);
      Response.Redirect(SEOHelper.GetShoppingCartUrl());
   }

You will have to remove any references to the checkbox in the code.

Now you have a remove button...

:)
Il y a 12 ans
thanks Barry, that worked perfectly.

The Checkbox is a good idea, but most shopping carts out there use a delete button,
so I guess the customers will be more used to that.
Il y a 12 ans
MikeMCSD wrote:
thanks Barry, that worked perfectly.

The Checkbox is a good idea, but most shopping carts out there use a delete button,
so I guess the customers will be more used to that.


No problem...

remember to leave the update cart button for the quantity changes! :)
Il y a 7 ans
How can I achive the same result with a plugin?
Il y a 7 ans
FlorianNeiss wrote:
How can I achive the same result with a plugin?


Hi,

You can have a try with our plugins:

* Shoppingcart Remove Button - download link
* Wishlist Remove Button - download link
* Wishlist Add to Cart Button - download link

NOTE - you should install CORE plugin first - download link

Hope this help :)
Il y a 7 ans
Yes this helped for this case.
Il y a 3 ans
Hello, is there any plugin or implementation for version 4.30?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.