0

Currently I have a working Coupon code section on the last step of my onepage checkout, but whenever entering a code, it reverts back to the cart page and applies the code.. but if its something like free shipping.. it will show the free shipping on the cart page, but then you are going through the checkout again and having to select a shipping option, thus removing the free shipping effect again.

I imagine the code that is bringing it back to the cart page is

<form id="discount-coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post">

Namely, the 'checkout/cart/couponPost' action.

Is there anyway possible for the user to get to the review step, enter the code, and just possibly refresh that specific step? Thanks!

0

If you change it to

<form id="discount-coupon-form" action="<?php echo $this->getUrl('checkout/onepage/coupon/') ?>" method="post">

does it work?

1
  • Thanks for commenting! That actually sent it back to the homepage. That could have something to do with any 404 page is directed to the homepage, but as far as staying on the checkout/last step, it didn't work unfortunately.
    – ne0nlight
    Jun 5 '15 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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