Shopify Blog

Add a Message to the Shopify Product Pages by Using Product Tags - 2022 Easy Tutorial

Andrew Durot
8 min read

You can add a message to product pages using tags on your Shopify store, all you have to do is input the right codes in the right places. 

This tutorial would help you figure out how to add a message to Shopify product pages using code. 

Add A Message To Product Pages

Step 1:  Make a duplicate of your live theme 

Go to the Online Store > Themes > next to the live version of your theme click on Actions > Duplicate

 

 Step 2: Paste the code to the  product-template.liquid

Now that we have the duplicate of our live theme we can start coding. Click on Actions > Edit Code

From the navigation to the left scroll down to the Sections directory and choose product-template.liquid.

Paste the following code where you want your message to be shown, for example above Add to cart button.

 

 {% for tag in product.tags %} 

 {% if tag contains 'newMessage:' %} 

             {{ tag | remove:'newMessage:'}} 

     {% endif %} 

 {% endfor %}     

 

Click on Save!

 

 Step 3: Add message to your products 

From your Shopify admin click on Products and find the product you want to add a message to. On the right side you will see one small box with  tags. type "newMessage: " and your message. So for example we will go with "newMessage: Only available for in store pickup" and add a tag. Click on Save.

 

 Step 4: Check if everything is working properly 

Go to the online store, find the product and give yourself a big pat on the back!

 

2 comments

  • Hey,

    I hope you’re doing well. I’m a representative from Copy.AI and I’m contacting businesses, creators, and teams to introduce them to the most powerful AI-driven content platforms out there.

    This AI-driven tool will greatly reduce the amount of time you spend and effort writing your content in a matter of seconds, that’s right, SECONDS! Think of the time you’d have to focus on other vital tasks like networking, expanding your business, and enhancing growth.

    Copy.AI is an easy-to-use and intuitive tool that helps you generate content quickly and accurately. Think of a topic and the AI will generate content with just a press of a button. It can also be used to write many different types of copy, such as emails, blog articles, video scripts, social media ads, product descriptions, website content, captions and so much more. Even write in over 25+ different languages.

    It’s designed with content writers in mind, so you can trust that it will provide you with top-notch content every time. Plus, the AI takes into account your target audience so that the content will be tailored to their needs. And guess what – The generated content is devoid of any plagiarism! How about that?

    These features and benefits are just the tip of the iceberg; there are so many more things you can do with it that it will simply blow you away.

    So if you’re seeking a way to simplify and reduce the amount of time and energy invested without compromising on the quality of your content, give Copy.AI a spin.

    Thanks for your time and I hope you find Copy.AI a useful companion for your content-writing needs.

    Cheers,
    Damon

    P.S. This was created using Copy.AI. Find out for yourself, I’m confident you’ll love it:
    https://bit.ly/copyaigiveitago

    Damon Mccaffrey
  • Hey,

    I hope you’re doing well. I’m a representative from Copy.AI and I’m contacting businesses, creators, and teams to introduce them to the most powerful AI-driven content platforms out there.

    This AI-driven tool will greatly reduce the amount of time you spend and effort writing your content in a matter of seconds, that’s right, SECONDS! Think of the time you’d have to focus on other vital tasks like networking, expanding your business, and enhancing growth.

    Copy.AI is an easy-to-use and intuitive tool that helps you generate content quickly and accurately. Think of a topic and the AI will generate content with just a press of a button. It can also be used to write many different types of copy, such as emails, blog articles, video scripts, social media ads, product descriptions, website content, captions and so much more. Even write in over 25+ different languages.

    It’s designed with content writers in mind, so you can trust that it will provide you with top-notch content every time. Plus, the AI takes into account your target audience so that the content will be tailored to their needs. And guess what – The generated content is devoid of any plagiarism! How about that?

    These features and benefits are just the tip of the iceberg; there are so many more things you can do with it that it will simply blow you away.

    So if you’re seeking a way to simplify and reduce the amount of time and energy invested without compromising on the quality of your content, give Copy.AI a spin.

    Thanks for your time and I hope you find Copy.AI a useful companion for your content-writing needs.

    Cheers,
    Lamont

    P.S. This was created using Copy.AI. Find out for yourself, I’m confident you’ll love it:
    https://bit.ly/copyaigiveitago

    Lamont Ireland

Leave a comment

Guides

2 comments

  • Hey,

    I hope you’re doing well. I’m a representative from Copy.AI and I’m contacting businesses, creators, and teams to introduce them to the most powerful AI-driven content platforms out there.

    This AI-driven tool will greatly reduce the amount of time you spend and effort writing your content in a matter of seconds, that’s right, SECONDS! Think of the time you’d have to focus on other vital tasks like networking, expanding your business, and enhancing growth.

    Copy.AI is an easy-to-use and intuitive tool that helps you generate content quickly and accurately. Think of a topic and the AI will generate content with just a press of a button. It can also be used to write many different types of copy, such as emails, blog articles, video scripts, social media ads, product descriptions, website content, captions and so much more. Even write in over 25+ different languages.

    It’s designed with content writers in mind, so you can trust that it will provide you with top-notch content every time. Plus, the AI takes into account your target audience so that the content will be tailored to their needs. And guess what – The generated content is devoid of any plagiarism! How about that?

    These features and benefits are just the tip of the iceberg; there are so many more things you can do with it that it will simply blow you away.

    So if you’re seeking a way to simplify and reduce the amount of time and energy invested without compromising on the quality of your content, give Copy.AI a spin.

    Thanks for your time and I hope you find Copy.AI a useful companion for your content-writing needs.

    Cheers,
    Damon

    P.S. This was created using Copy.AI. Find out for yourself, I’m confident you’ll love it:
    https://bit.ly/copyaigiveitago

    Damon Mccaffrey
  • Hey,

    I hope you’re doing well. I’m a representative from Copy.AI and I’m contacting businesses, creators, and teams to introduce them to the most powerful AI-driven content platforms out there.

    This AI-driven tool will greatly reduce the amount of time you spend and effort writing your content in a matter of seconds, that’s right, SECONDS! Think of the time you’d have to focus on other vital tasks like networking, expanding your business, and enhancing growth.

    Copy.AI is an easy-to-use and intuitive tool that helps you generate content quickly and accurately. Think of a topic and the AI will generate content with just a press of a button. It can also be used to write many different types of copy, such as emails, blog articles, video scripts, social media ads, product descriptions, website content, captions and so much more. Even write in over 25+ different languages.

    It’s designed with content writers in mind, so you can trust that it will provide you with top-notch content every time. Plus, the AI takes into account your target audience so that the content will be tailored to their needs. And guess what – The generated content is devoid of any plagiarism! How about that?

    These features and benefits are just the tip of the iceberg; there are so many more things you can do with it that it will simply blow you away.

    So if you’re seeking a way to simplify and reduce the amount of time and energy invested without compromising on the quality of your content, give Copy.AI a spin.

    Thanks for your time and I hope you find Copy.AI a useful companion for your content-writing needs.

    Cheers,
    Lamont

    P.S. This was created using Copy.AI. Find out for yourself, I’m confident you’ll love it:
    https://bit.ly/copyaigiveitago

    Lamont Ireland

Leave a comment