[Skip to main content](#vessel-content)

#   Delete/Cancel button

##

- **[petersch](/forum/user/30695-petersch "View petersch's Profile")**
- [![petersch's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30695-petersch "View petersch's Profile") Topic Author
- [ Offline](/forum/user/30695-petersch)

Less More

- Posts: 28
- Thank you received: 0
-
-

12 years 5 months ago [\#158514](#158514) by [petersch](/forum/user/30695-petersch "View petersch's Profile")  *[Delete/Cancel button](/forum/27-checkout/868715-delete-cancel-button#158514 "hi,  where can I change the url it directs the customer when all products are deleted at the checkout. (can't find it in views)  And can I create a cancel button that has the same function like the delete button at the checkout (I want the customer to cancel the order in both ways)")* was created by *[petersch](/forum/user/30695-petersch "View petersch's Profile")*

hi,

where can I change the url it directs the customer when all products are deleted at the checkout. (can't find it in views)

And can I create a cancel button that has the same function like the delete button at the checkout (I want the customer to cancel the order in both ways)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODcxNS1kZWxldGUtY2FuY2VsLWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#158524](#158524) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Delete/Cancel button](/forum/27-checkout/868715-delete-cancel-button#158524 "hi,  where can I change the url it directs the customer when all products are deleted at the checkout. (can't find it in views)  And can I create a cancel button that has the same function like the delete button at the checkout (I want the customer to cancel the order in both ways)")*

Hi,

1. You can find the option "URL where you will be redirected when the cart is empty" in Configuration &gt; Main &gt; Cart.
2. It will require custom code in the view "checkout / step" to add this button where you want. And more custom code to remove all the items from the cart.

The following user(s) said Thank You: [petersch](/forum/user/30695-petersch "View petersch's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODcxNS1kZWxldGUtY2FuY2VsLWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[magicwords](/forum/user/33185-magicwords "View magicwords's Profile")**
- [![magicwords's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/33185-magicwords "View magicwords's Profile")
- [ Offline](/forum/user/33185-magicwords)

Less More

- Posts: 66
- Thank you received: 0
-
-
-
- [](http://www.magicwebconsultants.com)
-

12 years 3 months ago [\#167726](#167726) by [magicwords](/forum/user/33185-magicwords "View magicwords's Profile")  Replied by *[magicwords](/forum/user/33185-magicwords "View magicwords's Profile")* on topic *[Delete/Cancel button](/forum/27-checkout/868715-delete-cancel-button#167726 "hi,  where can I change the url it directs the customer when all products are deleted at the checkout. (can't find it in views)  And can I create a cancel button that has the same function like the delete button at the checkout (I want the customer to cancel the order in both ways)")*

Hey I have similar query.

Can I also add the radio button to select the same product again? instead of going to the product page back to add the product?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODcxNS1kZWxldGUtY2FuY2VsLWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 3 months ago [\#167753](#167753) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Delete/Cancel button](/forum/27-checkout/868715-delete-cancel-button#167753 "hi,  where can I change the url it directs the customer when all products are deleted at the checkout. (can't find it in views)  And can I create a cancel button that has the same function like the delete button at the checkout (I want the customer to cancel the order in both ways)")*

Hi,

I am sorry but I don't understand your request.
Please clarify it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODcxNS1kZWxldGUtY2FuY2VsLWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[magicwords](/forum/user/33185-magicwords "View magicwords's Profile")**
- [![magicwords's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/33185-magicwords "View magicwords's Profile")
- [ Offline](/forum/user/33185-magicwords)

Less More

- Posts: 66
- Thank you received: 0
-
-
-
- [](http://www.magicwebconsultants.com)
-

12 years 3 months ago [\#167814](#167814) by [magicwords](/forum/user/33185-magicwords "View magicwords's Profile")  Replied by *[magicwords](/forum/user/33185-magicwords "View magicwords's Profile")* on topic *[Delete/Cancel button](/forum/27-checkout/868715-delete-cancel-button#167814 "hi,  where can I change the url it directs the customer when all products are deleted at the checkout. (can't find it in views)  And can I create a cancel button that has the same function like the delete button at the checkout (I want the customer to cancel the order in both ways)")*

Ok. I am sorry my concern was not more clear.

See, when a user adds a product to the cart then we see the same in a cart module (i.e. the summary of the products added in the cart). So when a user wants to go ahead and click for payment he can make the payment through credit card etc. Now what I WANT to develop the solution here, that is 'by mistake' **when the user clicks on the 'delete' button or Cancel button on the 'x'** instead of the continue to payment button, the default functionality takes to the main page. I don't want this to happen, I want the customer to stay on the same latest product page from where he has added the product to the cart.

To summarize, I want to enable the undo action with the help of radio button or any similar button .

I hope my concern is more clear.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODcxNS1kZWxldGUtY2FuY2VsLWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 3 months ago [\#167829](#167829) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delete/Cancel button](/forum/27-checkout/868715-delete-cancel-button#167829 "hi,  where can I change the url it directs the customer when all products are deleted at the checkout. (can't find it in views)  And can I create a cancel button that has the same function like the delete button at the checkout (I want the customer to cancel the order in both ways)")*

Hi,

If you delete all the products from the cart, the system will direct you to the URL that you configured in the "URL where to redirect when cart is empty" option of the configuration. If you want that URL to be dynamic there is no option and you'll have to modify the code of HikaShop or develop a plugin to catch the onBeforeCartUpdate/onAfterCartUpdate triggers in order to do what you want in that case.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODcxNS1kZWxldGUtY2FuY2VsLWJ1dHRvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.062 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
