Thread Rating:
  • 0 Vote(s) - 0 Average
Share Thread:
How to add Poducts schema code for shopify website ?
#10
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.
eUKHost : Managed Web Hosting Provider
cPanel Web Hosting | Linux VPS Hosting | Secure Cloud Server Hosting
Reply


Messages In This Thread
RE: How to add Poducts schema code for shopify website ? - by Wilsonjacob45 - 04-10-2023, 06:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Ad

[-]
Top Articles
100+ Social Bookmarking Sites List
55+ Image Submission Sites List

[-]
Recent Posts
Fitspresso (2024 Update) Review ALL the Facts Before Buy!
Fitspresso Reviews:>> DISCRIPTION =>> What Fitspresso basically does is tha...CransKenni — 02:53 PM
Google SERP Changes & Algorithm Updates - May 2024
Quality traffic was back this weekend. Did show an improvement in rpm rates. @"ho...cbtech — 02:50 PM
Getting links from aged domains, do they provide any value?
Yes, links from aged domain names can provide a vast price. Aged domain names often have ...jennyluis180@gmail.com — 11:40 AM
Cheap Dedicated Server in US within $20-30 range
DM ed you some offers. Why are you looking for a DS anyway? Why not a VPS? You are only l...batman — 05:22 AM
Cheap Dedicated Server in US within $20-30 range
Can I get a reliable unmanaged server within this budget? Probably in the East Coast or t...marketingS — 04:48 AM

[-]
Follow us on Facebook