Forums / Addon Admin Tools / Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Views: 91,942

Results 21 to 40 of 212
18 Oct 2018, 7:32 AM
#21
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Generic answer for open source code:

**Can your plugin...**The answer is always yes...but whether someone adds functionality to code depends on time, interest, ability, cost etc.
I cannot justify the time to look at expanding functionality at the moment, I am always firefighting other stuff in the real world, that's why the code is on is on Github, for others who need something, to spend their time adding what they want/need.

As I did this code ages ago, I remember nothing much and can only repeat that I started out with the Super Data code, and as I always do with every "plugin" I use, I improve it as I see fit, but went so far as to make it very different from the original. I would assume that it is better, in that I spent a lot of time testing with the tools for the various output schemas nitpicking the output.
If Super Data has not been updated, then yes this one is better I am sure.
As stated in the readme, there are many variations on the schema output appropriate to different business so some customisation and code modification is totally necessary, it is not just install and forget: check the output in all the tools.

When 156 gets released I will be in ZC mode for a while and and will be reviewing this as part of the usual spring clean+update., but for now I am up to my neck in another project.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

18 Jan 2019, 3:36 PM
#22
cp02 avatar

cp02

New Zenner

Join Date:
Jan 2019
Location:
Austria
Posts:
6
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Hi there!
I am very happy with your "Structured Data Markup for Schema" but there are ERROS with the html-validation:

Attachment 18278
Attachment 18279

I did not find any info/solution for this problem - any idea?!?!
Greetings :)

PS: Here is a link to our shop/product --> https://www.cannapot.com/shop/cannabis-seeds/purple-caper-seeds/gelato-bx-5-reg_seeds.html

18 Jan 2019, 11:15 PM
#23
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

meta tags are supposed to be in the head section of the page, not sure why yours are at the bottom of the page in the body section.


Zen Cart and it's community are the best!!

19 Jan 2019, 10:35 AM
#24
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

quite right, that's your problem:

meta tags are supposed to be in the head section of the page

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

19 Jan 2019, 11:02 AM
#25
cp02 avatar

cp02

New Zenner

Join Date:
Jan 2019
Location:
Austria
Posts:
6
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

HI!
Yes ok - but how can I bring this into the head-section?
:)

21 Jan 2019, 7:40 AM
#26
cp02 avatar

cp02

New Zenner

Join Date:
Jan 2019
Location:
Austria
Posts:
6
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

cp02:

HI!
Yes ok - but how can I bring this into the head-section?
:)

cp02:

HI!
Yes ok - but how can I bring this into the head-section?
:)

Hi again!
No idea? I installed it as it is written - do I maybe need to add a special "JSCRIP Load-Instruction" in template/common/htmlheader.php ???
Greetings, hopefully you can help me :)

21 Jan 2019, 8:43 AM
#27
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

You are using the css/js minifier, which in the newer versions loads all java script files at the bottom of the page. As you discovered, this is not always a good thing. YOu need to edit your code, so it does not load the jscript_plugin_structured_data.php file in the footer.

cp02:

Hi again!
No idea? I installed it as it is written - do I maybe need to add a special "JSCRIP Load-Instruction" in template/common/htmlheader.php ???
Greetings, hopefully you can help me :)

21 Jan 2019, 9:34 AM
#28
cp02 avatar

cp02

New Zenner

Join Date:
Jan 2019
Location:
Austria
Posts:
6
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Design75:

You are using the css/js minifier, which in the newer versions loads all java script files at the bottom of the page. As you discovered, this is not always a good thing. YOu need to edit your code, so it does not load the jscript_plugin_structured_data.php file in the footer.

Thanks a lot for your feedback - ok, I thought bout that - so just like that? I put the code into the header of file "html_header.php" ?!?

<?php require($template->get_template_dir('jscript_plugin_structured_data.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/jscript_plugin_structured_data.php'); ?>

or should I use something like this?

<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/jscript_plugin_structured_data.php' ?>" type="text/javascript"></script>

And if I do it, the minifier does not fetch it after because it is already used it the head-section...am I right with this?
Once again, thanks a lot for your answere, very helpful for me :)

22 Jan 2019, 10:35 PM
#29
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Since I have moved the general jscript calls manually to the footer, this is exactly what I have in my html_header.php

<?php //steve structured data - contains meta tags for facebook so has to still be in the head
include (DIR_WS_TEMPLATES . $template_dir . '/jscript/plugin_structured_data.php');
?>

Note the script is not named "jscript..." to stop it being auto-loaded in the footer with all the other scripts that are named "jscript...".

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

23 Jan 2019, 5:31 PM
#30
cp02 avatar

cp02

New Zenner

Join Date:
Jan 2019
Location:
Austria
Posts:
6
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

torvista:

Since I have moved the general jscript calls manually to the footer, this is exactly what I have in my html_header.php

<?php //steve structured data - contains meta tags for facebook so has to still be in the head include (DIR_WS_TEMPLATES . $template_dir . '/jscript/plugin_structured_data.php'); ?>
> 
> Note the script is **not** named "jscript..." to stop it being auto-loaded in the footer with all the other scripts that **are** named "jscript...".

Damn GREAT - it worked - many many thanks!!! I am happy now :)
i did the same but did NOT delete 'jscript'plugin_structured_data.php  ...  without jscript everything is fine!

once again - THANKS a LOT!!!
2 Apr 2019, 4:41 AM
#31
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Hi Steve,
just installed your plugin - as much as you indicated it wasn't necessary I want to add the code below to html_header.php however my template appears not to be HTML5 - it is XHTML1 Transitional

Can I still add the part of that code as shown in bold? - if not is there a different code that I should use?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?> **prefix="og: <http://ogp.me/ns#> fb: <http://ogp.me/ns/fb#> product: http://ogp.me/ns/product#">**

cheers,
Mike

16 Apr 2019, 6:17 PM
#32
bramf avatar

bramf

New Zenner

Join Date:
Apr 2017
Location:
Netherlands
Posts:
20
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

google webmaster is giving warnings on 'priceValidUntil' and 'sku'. can you add this to a new version of this plugin??

8 May 2019, 8:26 PM
#33
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

I've done some fiddling about with this plugin, including the sku and priceValidUntil.

https://github.com/torvista/zen-cart_Structured-Data

If there is anything else that needs attention, mention it now.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

26 Jun 2019, 4:39 AM
#34
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Hi torvista,
I'm a bit confused, do you have any information about Super Data Markup for Zen Cart v1.1.7 available here:
https://zencart.codes/index.php?main_page=product_info&products_id=47
The authors give you credit for the core aggregate rating query. Is that plugin more advanced and should be used instead, or are they entirely independent uses, and merely by the good fortune of open-source collaboration share your code?

Further, is an updated version of your plugin available here or only from git?
I see this appears to be yours:
https://www.zen-cart.com/downloads.php?do=file&id=2215
But also there is from swguy a plugin of the same name, but advanced to v1.1, and only available commercially:
https://www.thatsoftwareguy.com/zencart_structured_data.html

All these versions are making my head explode...

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

26 Jun 2019, 7:32 AM
#35
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Yes it does look confusing.
I can't answer. If you want to know the differences you'll have to manually Beyond Compare them. The version numbers are up to whoever feels like changing them.
I update my Github only, not the Plugins version.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

26 Jun 2019, 7:47 AM
#36
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Thanks torvista,
Got it. I'll compare the Super Data Markup v1.1.7 and your git repo and decide from there which to install first (whichever is simpler for a first check).

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

26 Jun 2019, 2:29 PM
#37
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Hi torvista,
From perusing the code, pretty much equivalent actually, in terms of functionality. Different approaches regarding finding appropriate images, and your plugin finds stock levels. v1.1.7 of Super Data Markup (the one from the zencode site) adds review capability which is not in v1.1.5, in the same way yours does (i.e., only supplying aggregate properties when reviews actually exist).
I notice your code has a now probably defunct Google+ property at the end, after Twitter.
I think I will try both of these in succession (testing their uninstalls too---I notice you kindly supply a correct uninstall for the Super Data Markup plugin, which I should test with v1.1.7 too), and see how they differ in practice. I don't (yet) use image handler, but if I did I would go for version 5 which seems to be current. And I do upload LRG and MED images into separate directories for my products.
Not to forget: I am more inclined to use a plugin that has a support thread here, compared to one that does not.

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

26 Jun 2019, 3:28 PM
#38
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

I don't (yet) use image handler, but if I did I would go for version 5 which seems to be current. And I do upload LRG and MED images into separate directories for my products.
You should use Image Handler. Period.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

28 Jun 2019, 2:12 PM
#39
gernot avatar

gernot

Zen Follower

Join Date:
Feb 2017
Location:
Tokyo, Japan
Posts:
334
Plugin Contributions:
0

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Hi torvista,
I've decided I like your code more, more options, a better way to specify multiple options (comma separated on one field, let the code do the work), and better indication of what is optional and required.
If structured data makes it into the core of Zen Cart, and the responsive theme, your code would be ideal. Thanks a stack!

Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0

28 Jun 2019, 5:07 PM
#40
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,876
Plugin Contributions:
7

Re: Structured Data Markup for Schema, Facebook Open Graph, Twitter...

Thanks for taking the time to comment.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...