JSON-LD is a structured data format that helps search engines understand the content of a page. It can be used to describe products, organizations, breadcrumbs, and other entities. For example, for a product, you can provide its name, image, price, and availability.
Example of JSON-LD for the “Smartphone X” product page in the “Electronics” category:
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Smartphone X",
"image": [
"https://myshop.com/images/smartphone-x.jpg"
],
"description": "Smartphone X, 256 GB, black",
"sku": "SM-X-001",
"brand": {
"@type": "Brand",
"name": "Brand X"
},
"offers": {
"@type": "Offer",
"url": "https://myshop.com/smartphone-x",
"priceCurrency": "USD",
"price": "999",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
}
}
This markup does not affect the appearance of the website, but it helps search engines, such as Google Search, generate rich results—enhanced search results that can display the price, rating, availability, and other information directly on the search results page.
CS-Cart supports several JSON-LD entities. The entities supported in the current version are described below.
CS-Cart automatically generates the Product JSON-LD entity. It is used to provide search engines with information about a product. The Product entity can include the following data:
Search engines can use the data from the Product entity to understand product characteristics and generate rich results.
The Offer entity is part of the Product entity and describes the terms under which a specific product can be purchased. The Offer entity includes the following data:
Search engines can use the data from the Offer entity to display product price and availability information directly in search results.
Note
The Product and Offer entities are generated automatically and do not require any additional configuration.
Note
In version 4.21, two new entities were added: BreadcrumbList and Organization.
A BreadcrumbList JSON-LD entity is added to all pages where breadcrumbs are displayed in the CS-Cart interface. It is used on category pages, product pages, and other pages with breadcrumbs.
Search engines (Google in particular) use breadcrumb markup to understand the page’s position in the website hierarchy. Based on BreadcrumbList, a human-readable breadcrumb trail may be displayed in search results instead of the full URL. This makes the search result easier to understand and helps users quickly determine what the page is about.
Note
The BreadcrumbList entity is generated automatically and does not require any additional configuration.
Note
In version 4.21, two new entities were added: BreadcrumbList and Organization.
To configure the Organization entity, go to Website → SEO in the Admin panel and click JSON-LD in the upper-right corner:
A window will open where you can configure the organization data.
The following data is filled in automatically (taken from the storefront settings):
name — storefront name;url — storefront URL;logo — storefront logo.Enter the following data manually:
description — storefront description;telephone — phone number;email — email address;sameAs — an array of links to social media profiles.Important:
http:// or https://) are accepted;sameAs array is included only if it contains at least one valid link.Questions & Feedback
Have any questions that weren't answered here? Need help with solving a problem in your online store? Want to report a bug in our software? Find out how to contact us.