blockonomics / woocommerce-plugin

Accept bitcoins on your wordpress site, payments go directly into your wallet
25 stars 31 forks source link

Fixing additional script bug on block theme #356

Closed ashthecoder05 closed 1 year ago

ashthecoder05 commented 1 year ago

What happened?

Impact?

All block based themes cannot load the checkout page as it shows a Display Error and has a JS error in the browser console.

Fix?

To fix, instead of using wp_add_inline_script to add the script we need to use wp_footer action by adding the additional script at the bottom of the page.