Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
295 views
in Technique[技术] by (71.8m points)

Show/hide Afterpay message on Shopify product page

On the Shopify Product page we have two purchase options (radio buttons): one-time and subscription. We don't want to offer Afterpay for subscribers, but I struggle to find how to hide that message because that widget is initiated on page load and I can't change it later (or even attach any className to it to manipulate later). If anybody has solved how to do that, please share the work-around.

question from:https://stackoverflow.com/questions/65889408/show-hide-afterpay-message-on-shopify-product-page

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Solved. I created an empty div with child div inside and attached Afterpay widget to it. Now I can manipulate a whole div and it works.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...