- Getting Started
- Schema Types
- Integrations
- Developers
-
Troubleshooting
- Troubleshoot Structured Data not Generated on the Page
- Preview button not showing on Structured Data Testing Tool
- I am seeing the "is not a known valid target type for the identifier property" error
- Fixing Error decoding JSON data in Joomla Articles
- Fix missing Google Structured Data tab in the Article Editing Page
- Remove Faulty Microdata
- Troubleshoot Structured Data not Showing in Search Results
- Functionality
Add Structured Data to J2Store
Component | J2Store |
---|---|
Supported Views | Products |
Supported Content Types | Product |
Availability | Pro Only Since v4.0.0 |
Google Structured Data integrates perfectly with the J2Store component and enables you to add structured data and specifically the Product Content Type to your J2Store pages.
- Enable Integration
- Add Product Structured Data to J2Store Pages
- Publishing Rules
- The Product Schema is not added to J2Store Pages
- Notes
Enable Integration
As with all of the integrations, you need to navigate to Components > Google Structured Data > Configuration and click the Integrations Tab where all the Integrations are listed.
Find the "J2Store" Integration in the list and make sure that it is enabled with the green checkmark indicator as shown in the screenshot below.
Add Product Structured Data to J2Store Pages
Let's see how you can add the Product Content Type to J2Store pages. From the Components menu, choose Google Structured Data, nagivate to the Items section and click on the New button to create a new Structured Data Item.
On the next page, you will see the following 3 options where you will need to select the Product Content Type and the J2Store Integration as shown in the screenshot below.
Click Save to return to the same page. Once the item is saved 2 new sections appearing.
- Product: This section helps you map the content type properties with Page options, Meta Properties, Site info and more.
- Publishing Rules: This is where you can select the pages where the structured data is going to be generated to.
To learn more details on how you can use these sections visit the How to Add Structured Data to Pages documentation page.
Publishing Rules
In case, you don't want to generate the Product Content Type to all pages, you can use the available publishing rules to target specific pages. The J2Store Integration implements the following publishing rules:
Name | Description |
---|---|
Product | Target specific J2Store Products only. |
Category | Target all products assigned to specific J2Store categories. |
To learn more about the Publishing Rules section visit the How to add Structured Data to Pages documentation page.
The Product Schema is not added to J2Store Pages
The Product Schema is very likely to not be added to J2Store Product pages when you're displaying J2Store Products using the Joomla! Articles menu types rather than the J2Store menu types.
Since J2Store is heavily based on the Joomla! Articles, it's very convenient to use the Articles menu types to display products on the front-end. However, when you access a product through an Article-based menu type such as the Single Article or the Category Blog layout, what you see is actually an Article and not a J2Store product. In that case, the Google Structured Data extension fails to recognize the page as a J2Store Product and the assigned Product Structured Data nevers gets added to the page.
The Solution
The solution to this issue, is to change your menu items and switch over to the J2Store menu types. For instance, if you're using the Article -> Category Blog layout to display a category of products, you should modify your menu item to use a J2Store-based list layout such as the Products List View or the Products Tag layouts.
Keep in mind that this is a limitation of the J2Store extension rather than a bug in the Google Structured Data extension code.
Notes
The Structured Data is generated only in the Products component view where a single J2Store Product is displayed. The Category or List views are not currently supported.