Add content before or after Add to cart button in product page

Estimated reading time: < 1 min

Add content globally

In Settings › WooCommerce › Product Page › Summary Components you can find two option groups called Before Add to cart and After Add to cart eg: screenshot .

If you’ll enable any of them, a text editor will pop. Inside these editors you can pretty much add whatever you want, either shortcodes, global sections or even dynamic data.

Edit this content per product

Simply edit the product, locate Rey’s Product settings > Add to cart and choose if you want to show/hide or override the text, eg: screenshot .

Adding buttons that would trigger a modal

Here’s a quick video – recording . Basically you can create a generic global section, and inside it add button elements that would link to a modal.

Was this article helpful?