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.
13 năm cách đây
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)

?
12 năm cách đây
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.
12 năm cách đây
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...

:)
12 năm cách đây
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.
12 năm cách đây
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! :)
7 năm cách đây
How can I achive the same result with a plugin?
7 năm cách đây
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 :)
7 năm cách đây
Yes this helped for this case.
3 năm cách đây
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.