Pinnacle Cart Structured Data Part 2

Pinnacle Cart Structured Data Part 2

In my previous post on structured data, I said that I would be back to show some snippets of code that I used to incorporate the schema.org vocabulary and microdata markup into a Pinnacle Cart site. Well, I’m back.

Before I jump into showing you my approach, I want to setup some background info. The version of Pinnacle Cart that I am showing is 3.7.11 R4 which means I am using the new template structure. Also, any customization to base template files should always be made on a copy of the original that is then placed in your own skin directory. With that out of the way, here we go…

The first step is to define the itemscope and itemtype in your ‘product view style’ template file. I am using style2.html:

ORIGINAL CODE

 

MODIFIED CODE

Now that you’ve defined the itemscope and itemtype, you can define the various data elements which are known as the itemprop elements. For Products, you can see what itemprop elements that schema.org provides here. In this example, I will show you how I defined productID and name.

For adding the itemprop of productID, you’ll want to edit the element-product-id.html template file:

ORIGINAL CODE

 

MODIFIED CODE

 

For adding the itemprop of name, you’ll want to edit the element-product-title.html template file:

ORIGINAL CODE

 

MODIFIED CODE

 

Let’s see the results using Google’s Structured Data Testing Tool:

Structured Data

Structured Data

The first screen shot shows how the product would appear in Google’s search results. The second screen shot shows how the microdata is now being interpreted by Google. Yes, I know there are many other itemprop elements shown above, but I can’t show you everything! What fun would that be?

So now you are lightly armed to give it a go with your own site. Once you are ready to test your code, use Google’s Structured Data Testing Tool to check it out.

Good luck!

* 4Ds Creative Solutions includes schema.org structured data markup on every Pinnacle Cart site we build!

By | 2017-08-01T07:10:04+00:00 February 6th, 2013|Web Design|Comments Off on Pinnacle Cart Structured Data Part 2