SEO MotionZ Forum
How to add Poducts schema code for shopify website ? - Printable Version

+- SEO MotionZ Forum (https://seomotionz.com)
+-- Forum: Search Engine Optimization (https://seomotionz.com/forumdisplay.php?fid=7)
+--- Forum: SEO General (https://seomotionz.com/forumdisplay.php?fid=22)
+--- Thread: How to add Poducts schema code for shopify website ? (/showthread.php?tid=6440)



How to add Poducts schema code for shopify website ? - handmaderug - 10-15-2019

How to add Poducts schema code for shopify website ?


RE: How to add Poducts schema code for shopify website ? - bsystems - 10-19-2019

Just add like any other site. Just check it once after you have added.

And if run into any problems its better that you consult to Shopify community for that.


RE: How to add Poducts schema code for shopify website ? - steveposter - 10-25-2019

(10-19-2019, 07:50 AM)bsystems Wrote: Just add like any other site. Just check it once after you have added.

And if run into any problems its better that you consult to Shopify community for that.

The OP is asking on how to add products in schema code, not just add like any other site because you said nothing at all.


RE: How to add Poducts schema code for shopify website ? - bsystems - 10-25-2019

(10-25-2019, 06:38 AM)steveposter Wrote:
(10-19-2019, 07:50 AM)bsystems Wrote: Just add like any other site. Just check it once after you have added.

And if run into any problems its better that you consult to Shopify community for that.

The OP is asking on how to add products in schema code, not just add like any other site because you said nothing at all.

I didn't know that they are different. Then why didn't you answered the query?


RE: How to add Poducts schema code for shopify website ? - white knight - 10-25-2019

Why are you guys quarreling? OP has clearly bolted.


RE: How to add Poducts schema code for shopify website ? - jahnvi arora - 12-05-2022

Adding Product schema code to your Shopify website is a great way to help manage product inventory and keep track of sales. This code can be added to the themes or pages you want to include it on, and it will automatically update when new products are added, or changes are made to existing products.
To add Product schema code:
Open the Shopify admin area by visiting the Shopify website.
Click on Themes in the left-hand menu and select the theme you want to modify.
Locate Products in the right-hand menu and click on Add New underneath it.
In the newly opened window, enter a name for this product.


RE: How to add Poducts schema code for shopify website ? - smartscraper - 12-07-2022

login to the backend of your Shopify store and go-to the online store>Themes>Action>Edit Code.


RE: How to add Poducts schema code for shopify website ? - soleseriouss - 12-14-2022

just make sure the code/scrip is error-free, warnings can be ignored.


RE: How to add Poducts schema code for shopify website ? - soleseriouss - 12-27-2022

Added the code @OP?
Any queries/confusion?


RE: How to add Poducts schema code for shopify website ? - Wilsonjacob45 - 04-10-2023

To add Product Schema code to your Shopify website, follow these steps:

Log in to your Shopify account and go to the "Online Store" section.

Click on "Themes" and then select "Actions" and "Edit Code" on the theme that you want to add the schema code to.

Open the "product-template.liquid" file.

Scroll down to the bottom of the file and locate the </body> tag.

Just before the </body> tag, paste the following code:

json
Copy code
<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": "{{ product.title }}",
  "image": "{{ product.featured_image | img_url: '600x600' }}",
  "description": "{{ product.description | strip_html | escape }}",
  "sku": "{{ product.sku }}",
  "brand": {
    "@type": "Brand",
    "name": "{{ product.vendor }}"
  },
  "offers": {
    "@type": "Offer",
    "price": "{{ product.price }}",
    "priceCurrency": "{{ shop.currency }}"
  }
}
</script>
Save the changes and preview the product page to ensure that the schema code is displaying correctly.
Note: Make sure to replace the liquid variables in the code with the appropriate variable names used in your Shopify store. Also, note that this code only covers the basic product schema, and additional schema properties can be added as per your requirement.