4

I have seen many extension on this matter. But I am looking for the clean, easy, close to core solution. Actually I am surprised that Magento/Ebay did not incorporate this simple win in a previous Magento release.

When a client goes directly to checkout (instead of via cart) - they are never confronted with a box to enter a coupon code. We have just launched a national ad - and the below article is true ... it is almost ridiculous how many emails we receive on this matter: "Hi, we would like to buy but cannot find where to enter the coupon code"

http://www.commandc.com/2014/01/29/top-reasons-for-cart-abandonment-2-difficulty-with-promo-codes/

Question: What is the best and most simple manner to add/integrate the coupon box in the steps of checkout.

many thanks in advance

1 Answer 1

3

So the theory: Put the box somehwhere, enter the code, fire AJAX request, code is applied. If you do it BEFORE the review step of the checkout, everything should be fine (totals). If you do it on the review step, you have to reload the review step. Then you have to deal with the JS of the review step.

If you ask me, put the box into the payment step, write an observer listening on pre_dispatch, apply the coupon code and be happy :-)

5
  • Hey i have done this in shipping method step..my coupon code is being used for shipping discount. I am getting the desired result but the issue is "shipping method" step is not getting reloaded so the result is not visible on frontend. Can you suggest something? Commented Jun 12, 2014 at 11:23
  • How do you apply the rule? If you fire an ajax request you have to do it on your own, if you just add the form field and let magento do the rest, everything is finde Commented Jun 12, 2014 at 11:24
  • I am using form field..not the ajax request...i am getting the desired response..but that is not updating in shipping method step..what i am missing?..i can show you..if you want Commented Jun 12, 2014 at 11:32
  • If i refresh the checkout page then everything looks fine..But i dont want to refresh that page Commented Jun 12, 2014 at 11:33
  • i am using this for adding coupon to Magento checkout apptha.com/blog/… only the phtml is added in shipping_method.phtml Commented Jun 12, 2014 at 11:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.