Skip to main content

How to hide the Add to cart button on your donation product

Hiding Add To Cart button on the donation product in your store.

Written by Liam Houlahan

When Virtue creates a donation product in your Shopify store, your theme may display an Add to cart button on its product page. You can hide this button by creating a separate template for your donation products.

1. Create a donation product template

  1. In your Shopify admin, go to Online Store → Themes.

  2. On your published theme, click Edit theme.

  3. Open the Home page dropdown at the top, then select Products → Create template.

  4. Name the template Donation and base it on Default product.

  5. Click Create template.

2. Hide the purchase buttons

  1. In the sidebar, expand Product information.

  2. Find Buy buttons and click the eye icon to hide the block.

  3. Hide the Quantity selector block too.

  4. Click Save.

Make these changes in your new donation template. Editing Default product could affect your other products.

3. Apply the template

  1. Go to Products in your Shopify admin.

  2. Open the donation product created by Virtue.

  3. Under Theme template, select donation.

  4. Click Save.

Repeat for each donation product.

4. Check your store

Open the donation product page and confirm the purchase buttons are hidden. Then test adding a donation through your Virtue widget.

Need help?

These steps apply to themes that support product templates and blocks. If your theme looks different or you cannot find these settings, contact [email protected].

Did this answer your question?