Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lordcase

    (@lordcase)

    Thanks Tom,

    That’s what I thought. Well, probably i’m better off reconstructing the front page with the traditional shortcodes. But if I happen to stumble upon some solution, I’ll be sure to let you know 🙂

    Best,
    KRisz

    Thread Starter lordcase

    (@lordcase)

    Ok so I solved it. Maybe someone else will find this helpful:

    If you use this plugin together with woocommerce-checkout-page-builder then the following error occurs.
    The page builder’s script (frontend/checkout.js that replaces woocommerce’s checkout.js) is looking for the seleced payment_method in an element with the id #order_review.

    However, Payment Based Gateway Fees does not put the payment methods there, so they are not posted via ajax when the update_checkout is triggered. (They are actually posted but just as part of a post_data array and not as payment_method direct child of $_POST.

    By replacing line 80:
    (return wc_checkout_form.$order_review.find( ‘input[name=”payment_method”]:checked’ ).val();)
    with this:
    return $( ‘.woocommerce-checkout input[name=”payment_method”]:checked’ ).val();
    the issue is solved, payment_method is posted and averyone is happy.

    I’m not sure if this is solvable generally from this plugin, probably not. I’ll send the solution to the authors of checkout-page-builder, maybe they will be willing to fix it.

    Thread Starter lordcase

    (@lordcase)

    Yep, it works indeed! Thanks David, I think it would be cool to include it in the plugin so others have an easier time!

    Cool plugin btw, thanks for all the effort!

    Krisz

    Thread Starter lordcase

    (@lordcase)

    Hi Amit,

    Sadly we have made a lot of custom modifications to numerous files so we cannot really update to the latest.

    Come next project, we will use these and get back to you if we find anything strange.

    Thanks for the info,
    Krisz

Viewing 4 replies - 1 through 4 (of 4 total)