Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
torvista
Bug. For a product with zen-default attribute-handling.
Fixed on GitHub.
Ok so if I just overwrite the files it should fix it then?
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
torvista
Bug. For a product with zen-default attribute-handling.
Fixed on GitHub.
I've just replaced the files with your new files and I still don't see url in the data? do I need to run the SQL again?
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
you should always compare...only the jscript_ changed. Is it on your site yet? I see no change on Brass Plaque Engraving.
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
torvista
you should always compare...only the jscript_ changed. Is it on your site yet? I see no change on Brass Plaque Engraving.
Thats why I took a backup! Regardless of comparing anyway...it isn't working for me.
I'm downloading from here.
https://github.com/torvista/Zen_Cart-Structured_Data
I've also tried setting the product to 'Product Priced by Attributes: Yes' and still don't see the url.
https://ventureengravings.uk/brass-plaques-and-brass-signs/brass-plaques-and-brass-signs-made-in-the-uk
1 Attachment(s)
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Are you sure you are using the updated file?
Attachment 19796
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
torvista
Yes, I downloaded your files from GitHub
This is what it has in jscript_plugin_structured_data.php
"url": "<?php echo $canonicalLink; ?>",
<?php if ($attribute_lowPrice === $attribute_highPrice) { //or if price not set by attributes, this is already set to base price
1 Attachment(s)
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
It does not show up in your head. It should be here:
Attachment 19797
Even if the url data was not working, the text "url:" should show....is it in the right template folder?
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
torvista
It does not show up in your head. It should be here:
Attachment 19797
Even if the url data was not working, the text "url:" should show....is it in the right template folder?
Got it working. I had copied it over in the right directory which is 'bootstrap' but it appears when I copied the folder over and not the file it didn't overwrite jscript_plugin_structured_data.php
Just tried copying 'jscript_plugin_structured_data.php' as an individual file and the url has appeared.
Sorry for the run around on this :-)
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
I have made an observer that adds custom fields to the database AND adds those fields to the Admin Product Edit page:
https://github.com/torvista/Zen_Cart...Product_Fields
Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...
Quote:
Originally Posted by
torvista
Brilliant. Thanks for this, hopefully it will resolve the errors that are being thrown up in search console.