Add Structured Data to J2Store

Component J2Store
Supported Views Products
Supported Content Types Product
Availability Pro Only Since v4.0.0
Only the J2Store Joomla Articles addon is currently supported. You can't use this intregration with J2Store for K2 or any other J2Store addon.

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

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.

gsd3-integrations

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.

J2Store Structured Data

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.

GSD New 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.

GSD J2Store New Item

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:

NameDescription
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.

Remember, in case you don't enable any publishing rules, the structured data will be generated on all J2Store pages.

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.

GSD J2Store Menu Types

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.

Last updated on Oct 29th 2024 14:10