Delete/Cancel button

  • Posts: 28
  • Thank you received: 0
11 years 2 weeks ago #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)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 weeks ago #158524

Hi,

1. You can find the option "URL where you will be redirected when the cart is empty" in Configuration > Main > 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

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 0
10 years 10 months ago #167726

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 or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
10 years 10 months ago #167753

Hi,

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

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 0
10 years 10 months ago #167814

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 or Create an account to join the conversation.

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
10 years 10 months ago #167829

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 or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum