Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    This is done -you should see a banner at the top of checkout for coupons.

    Thread Starter academyadmin

    (@academyadmin)

    I guess there’s something wrong on my end then.
    I can’t see any banner for coupons. Is there a way for me to turn this ON? (via php, hooks, settings.. anything?)
    Thank you!

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Link? It won’t show up if a coupon is already applied.

    Thread Starter academyadmin

    (@academyadmin)

    Nope, no coupon is applied yet.

    Unfortunately this is a public forum and I don’t really want to put a link to the website here, so I’ll say thank you for willing to help, but I think I’m gonna have to find another way to solve this problem.

    If you can think of any way to make this coupon textbox and button appear in the checkout page manually, I’ll be grateful.

    Thank you either way!

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Websites are not exactly private :p try another theme perhaps. Might be to blame.

    Thread Starter academyadmin

    (@academyadmin)

    lol ??
    Well, while websites are not private by nature, when googling your brand brings up support questions you asked on public forums, you suddenly wish they could be ??

    About changing the theme… I wrote the theme on my own, so I guess it’s me to blame. But even if a different theme could solve this issue, it won’t do me any help.

    Is there no php/woo api call to this coupon box so that it would appear there manually?

    Thank you again!

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    If you could change theme and see if it appears that would at least confirm that it’s theme related and we can go from there.

    Thread Starter academyadmin

    (@academyadmin)

    Thanks for bearing with me.
    I changed themes: Twenty Sixteen gave me a blank page, but Hazen worked for me and I COULD see the “have a Coupon?” banner, so it is theme related like you suspected.

    Presumably you have checked the box at Admin page > WooCommerce > Settings > Checkout tab: Coupons – “Enable the use of coupons”.

    If you wrote your own theme, did you customise form-checkout.php? The salient bit here to make sure you have included is:

    do_action( 'woocommerce_before_checkout_form', $checkout );

    wc_template_hooks.php links this action to:

    add_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );

    to show the coupon form.

    To share your website but avoid search results, you could use the form:
    mydomain at c o dot u k to tell us your site. If we can see your site it may give some clues.

    Thread Starter academyadmin

    (@academyadmin)

    Hi,
    Thank you for the answer.
    I didn’t change anything in the original form-checkout.
    I checked and it has do_action( ‘woocommerce_before_checkout_form’, $checkout ); in it on the top part…

    In which version was the “Have a Coupon?” banner in checkout-page introduced?

    Thanks again!

    Please use the latest version of WooCommerce. Now follow the steps

    1. Take a backup of your checkout template.
    2. Now replace the file from any working theme.
    3. If that solves the issue, then you can find out what you did wrong by opening both files side by side.

    Thread Starter academyadmin

    (@academyadmin)

    Thank you all for the replies.
    The issue was that I was using custom code that put the coupon message in hiding using css, so it was there all along and took some time to catch.
    Thanks again for the support! you definitely put me in the right direction.
    Feel free to close this thread, my issue is now resolved.

    Thread Starter academyadmin

    (@academyadmin)

    Marking as Resolved.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Show "coupon box" on checkout page’ is closed to new replies.