I was originally using a custom theme for our Magento CE 22.214.171.124 however we decided to switch to use the default theme/pages for the checkout process. However I noticed that the discount code input box is not visible on the one page checkout?
I added the below code to the payment.phtml page. However our issue is when a user types in a coupon code and clicks apply they are redirected to the view cart page where they are presented with the success message.
I am wondering how to make it so that the user will not be re-directed to the view cart page and instead stay on the checkout page to have the discount code applied.