How can we display an Easy donation box on specific product pages only?

How can we display an Easy donation box on specific product pages only?

Please follow below instructions for the widget configuration on specific products.

Tag:
show-donation-widget (Tag Name can be anything and you need to change it in the below code)

Add below code inside the product-template.liquid file:

{%- if product.tags contains 'show-donation-widget' -%}
            {% render 'donation' %}
        {%- else -%}
            <!-- nothing to do -->
        {%- endif -%}       

Once you have added above code inside the product template you can assign the tag to the products on which you would like to have the widget displayed.
    • Related Articles

    • Other Pages Configuration

      The app is compatible with almost all of the pages such as Home Page, Collections Page, About Page, Contact Us, Blogs Page, Cart Page, Product Page, etc. Please refer below instructions for Donation Widget Configuration on the Other Pages for Theme ...
    • Product Page Configuration

      Please refer below instructions for Donation Widget Configuration on the Product Page for Theme 2.0. Go to Online Store > Themes > Customize Select Product Template from the Drop down menu Product > Default Product Click on Add Block from the left ...
    • Stand-alone Donation Page

      Please refer below instructions for Donation Widget Configuration on the Stand-alone Donation Page for Theme 2.0. Go to Online Store > Pages Section Click on Add Page at the right hand side of the screen Give the Page Title as per your preference and ...
    • Troubleshooting: I am unable to see the donation option on my product page?

      There are several reasons you are unable to see the widget on the Cart Page. You are placing the Short Code at wrong file/place Make sure you have placed the code inside product-template.liquid and if your theme doesn’t have product-template.liquid ...
    • How can we configure the Donation Widget on Side Cart/Cart Drawer cart?

      1. Add shortcode in page-cart.liquid 2. Add code from donation.liquid to minicart.liquid or in ajax cart <!--Easy Donation Code --> {%if template != 'cart'%} <div class='donation' id='' page='cart'> <div class='donation_loader'> <img width='130' ...