Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
simon1066
Although I haven't kept up with the latest updates for this plugin, I
think (my notes aren't great) that I had to add a 'Brand' object type. In jscript_plugin_structured_data.php I changed:
Code:
"brand": <?php echo json_encode($manufacturer_name); ?>,
to
Code:
"brand" : {
"@type" : "Brand",
"name" : <?php echo json_encode($manufacturer_name); ?>
},
With this I don't get a Brand warning in
https://search.google.com/test/rich-results
many thanks Simon - worked a treat
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
torvista
Just tested one of my products. No errors.
This is the relevant html generated. Using same code as GitHub.
"googleProductCategory": "2788",
"brand": {
"@type" : "Brand",
"name" : "Scottoiler"
},
"category" : "Spare Parts",
many thanks Steve - wiil check the current status of code in GitHub in future before posting in here :cool:
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Probably, but as always, test on a development server first.
1 Attachment(s)
Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Hello, once you have installed the plug in from these errors in the products:
__comment
attribute stock handling default: zc_default (The __comment property is not recognized by the schema (e.g. schema.org) for an object of type Product.)
warninglowPrice
10 (The lowPrice property is not recognized by the schema (e.g. schema.org) for an object of type Offer.)
warninghighPrice
10 (The highPrice property is not recognized by the schema (e.g. schema.org) for an object of type Offer.)
warningofferCount
14 (The offerCount property is not recognized by the schema (e.g. schema.org) for an object of type Offer.)
other errors are attached
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
You are using the Github version?
2 Attachment(s)
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Hello, we use that version, but in admin there is no option that allows you to insert SKU etc etc is there any modification to do in some file?
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
SKU, EAN, ISBN, etc. are site-specific so no plug and play solution is considered.
Information about including additional fields is in the readme:
https://github.com/torvista/Zen_Cart-Structured_Data
and commented in the code where customisation is required to pull in your custom database fields.
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
attribute stock handling default: zc_default (The __comment property is not recognized by the schema (e.g. schema.org) for an object of type Product.)
Can you post an obfuscated link to the page that has the problem?
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
The site is this: https://www.biocanapa.abruzzo.it/car...anapa-p-4.html
in the FAq it says:
SKU / MPN / GTIN
This section describes adding custom fields to your product table.
There is a companion Plugin available to both install custom fields and add the corresponding fields in the admin Product Edit page:
https://github.com/torvista/Zen_Cart...Product_Fields
sku: is populated by products_model. This is the code used by your shop, which is probably unique to your shop.
mpn: is the original manufacturers part number. It is unlikely that you are using that as your shop sku, so you will need to add this column to your products table and populate it.
ALTER TABLE products ADD products_mpn VARCHAR (32) NOT NULL DEFAULT '';
gtin: international identification number that depends on the products you sell: UPC / GTIN-12 / EAN / JAN / ISBN / ITF-14. You'll need to deal with this similarly to mpn.
I used ean and added a products_ean field to the products table:
ALTER TABLE products ADD products_ean VARCHAR (13) NOT NULL DEFAULT '';
In the code, you will need to modify the code to use the column names you have created: the necessary sections for modification are marked CUSTOM CODING.
By default, they are left unpopulated so Google Rich Results Tool will remind you they are missing.
But which file needs to be changed?