- Posts: 28
- Thank you received: 0
Delete/Cancel button
12 years 5 months ago #158514
by petersch
Delete/Cancel button was created by petersch
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)
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.
12 years 5 months ago #158524
by Xavier
Replied by Xavier on topic Delete/Cancel button
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.
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.
12 years 3 months ago #167726
by magicwords
Replied by magicwords on topic Delete/Cancel button
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?
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.
12 years 3 months ago #167753
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Delete/Cancel button
Hi,
I am sorry but I don't understand your request.
Please clarify it.
Regards,
I am sorry but I don't understand your request.
Please clarify it.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
12 years 3 months ago #167814
by magicwords
Replied by magicwords on topic Delete/Cancel button
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.
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.
12 years 3 months ago #167829
by nicolas
Replied by nicolas on topic Delete/Cancel button
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.
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.071 seconds