How to display conditional text for certain products?

How to display conditional text for certain products?

nutmeg2
Visitor
1 0 1

Hi there!

 

I am trying to make a line of text only show for certain products. Certain products have a revenue split with a charity, and for those products I want to have a line of text under the buy button saying "This product supports a good cause! Learn more" with the "Learn more" being a hyperlink.

 

Any ideas how I can go about this via metafields or conditional text blocks w tags? I'm not much of a tech person so the more explanation, the better.

 

Thank you!

 

- Meg

Replies 3 (3)

Justin-Simesy
Shopify Partner
39 8 3

@nutmeg2 Hope you are doing well. Could you please share your store URL?

 

I'll check and send you some code to implement it.

Smartify - FREE Post Purchase Survey


- Was my answer helpful? Please hit Like or Mark it as solution!
- Get in touch with us: App Store | Website

Shay
Shopify Staff (Retired)
3110 472 663

Hi Meg! I wanted to share that this can actually be done using product page templates on any newer Shopify theme. 

 

Templates are used to provide this kind of unique page setup for specific products/collections/pages on your store. 

 

In your theme editor for your theme you can click the drop down menu at the top (Home Page) and go to Products > Create Template. Base it off of the original product page and then add in that line of text you want to add to these products. 

 

Once done, you can save the template and update the product to point to the new product page template in the product details. 

 

13-39-80156-10135

 

Shay | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

EasifyApps
Shopify Partner
635 19 53

Hi @nutmeg2,

Consider using the free Easify Product Options app for seamlessly integrating custom text into specific products on your store. The setup is straightforward, requiring no coding expertise.

Here's a step-by-step guide 🤗:

Storefront:

EasifyApps_3-1702522823735.png

 

App Settings:

  • Install the app and create an option set.
  • Add the "Paragraph" option type.

EasifyApps_0-1702522646121.png

 

  • Add your desired text into the paragraph content.

EasifyApps_1-1702522693549.png

 

  • Finally, select the products you want to feature the text on, either manually or through defined conditions.

EasifyApps_2-1702522723200.png

Easify Product Options: Any product options app can help you create custom options, but Easify turns those options into sales and conversions!
Easify Inventory Sync: Automate inventory syncing for Bundles, Duplicates, and Raw Materials. Say goodbye to manual tracking headaches.
Easify Product Attachments: Enrich your store with downloadable content. Easily add PDFs and other files to product or any page.
>>> Try Apps for Free | 24/7 Live Chat Support