google / material-design-lite

Material Design Components in HTML/CSS/JS
https://getmdl.io
Apache License 2.0
32.28k stars 5.03k forks source link

How to re initialize paypal in woocommerce #5262

Open tomasmd opened 5 years ago

tomasmd commented 5 years ago

I installed WooCommerce PayPal Checkout Gateway for my test site but I'm having trouble rendering the pay now buttons.

It turns out that my theme for some reason attempts to wrap all the content of the page inside one of its own containers after the site has finished loading. this means that in recreating that content, payPal is not re initialized and so It's lost. You can actually see the button dissapear.

I made a ticket about it but couldn't follow up with a solution. Jon suggested trying to re initialize it from the new wrapper but I have no idea how to do that.

Does anyone know what I can do to re initialize the paypal buttons?

Thanks!

rickbeacham commented 5 years ago

Works for me.

ItsmePNP commented 3 years ago

Seems you have solved the problem, Can you tell how? I'm having same problem. But It has nothing to do with material-design-lite.

CatherineColin commented 3 years ago

I have also the same problem. Sometimes it works and sometimes not. It works less in mobile. I have no solution.