How to apply custom discount of some percentage like (10%,20%) of cart total once he chose use custom discount button and if he want to remove the custom discount from the cart total in front end how can i proceed.
I want to show same as apply discount code section.in frontend
thanks in advance
Best Answer
etc/sales.xml
Discount.php Model file
checkout_cart_index.xml
checkout_index_index.xml
You can also refer https://github.com/magepal/stackexchange/tree/develop/104112