Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #1303894

    With help from you guys, I moved the coupon apply code down to the top of the Order section using this code:

    ccs style:
    #order_review > p.form-row.form-row-first, #order_review > p.form-row.form-row-last, .woocommerce-form-coupon-toggle + p {
    display: none; }

    remove_action( ‘woocommerce_before_checkout_form’, ‘woocommerce_checkout_coupon_form’, 10 );
    add_action( ‘woocommerce_checkout_order_review’, ‘woocommerce_checkout_coupon_form’, 5 );

    function ava_custom_script_mod() {
    if ( wp_script_is( ‘avia-default’, ‘registered’ ) ) {
    wp_add_inline_script( ‘avia-default’, ‘
    (function($) {
    $(“.showcoupon”).on(“click”, function() {
    $(“#order_review > p.form-row.form-row-first, #order_review > p.form-row.form-row-last, .woocommerce-form-coupon-toggle + p”).toggle();
    add_action( ‘wp_enqueue_scripts’, ‘ava_custom_script_mod’, 9999);

    However, now when I input a coupon code it drops down to the credit card section and gives me an error:
    Error image

    Also, Entering the coupon code on the cart page does work.
    Can you please help me resolve this issue. Thanks in advance.

    • This topic was modified 1 week, 2 days ago by  advteksol.

    You can use coupon code:



    Thank you for the inquiry.

    We are able to properly checkout using Stripe’s default credit card number, which is use for testing. Please check the screenshot below.


    Best regards,


    The credit card processing works fine, it’s the coupon code that doesn’t allow the credit card option to work (or applies the discount)..



    Thank you for the clarification.

    We tried to check the issue again, applied the coupon code but we cannot use Stripe’s test card anymore because it is already in live mode. Do you have a staging site where we can still use the test cards?

    Best regards,

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.