New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove microdata in html flow and replace by JSON-LD for classic theme #23151
Conversation
Hello @fdonnet! This is your first pull request on the PrestaShop project. Thank you, and welcome to this Open Source community! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hello @fdonnet , What I can assure you is that I checkout you PR and the error exists on php7.4 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I can't get why it would fail on 7.4 and not on previous versions, this is pretty strange |
Running tests again as the fail isn't from the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A last one
This comment has been minimized.
This comment has been minimized.
…de cleaning - and correct files structure)
…eep modification for SEO opti by NEOMaking
themes/classic/templates/catalog/_partials/product-cover-thumbnails.tpl
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested with the fix:
https://search.google.com/test/rich-results?id=d-gSZPtkd3p4T5GjTKImNg
It's fine now (errors are generated because my urls aren't reachable by Google)
QA approved, well done! Message to the maintainers: do not forget to milestone it before the merge. |
As it's a QA by dev, feel free to merge it when it gets 2 approves! Good job @fdonnet |
Thx, @NeOMakinG for the reviews, the advice and the support ! |
Trying to run tests again |
Contribution merged, congratulations! Would you mind answering our quick 1-minute survey? We would love to hear about your experience so far, it will help us improve our process for the community involved, like you. ;-) |
Thanks @fdonnet & @NeOMakinG for QA ;) |
QA OK without required approvals !? |
@fdonnet You're the boss!!! |
@Hlavtox thx for your help too on polishing a lot of things ! Cool to be merged ;) |
"url" : "{$urls.pages.index}", | ||
"image": { | ||
"@type": "ImageObject", | ||
"url":"{$urls.shop_domain_url}{$shop.logo}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello, this is bad
{$urls.shop_domain_url}{$shop.logo} --> {$shop.logo}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mgielecinski already modified in d40c7e2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in organization yes, but in line 60 still is error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mgielecinski oh yeah I see :) Thx a lot. @Progi1984 for info I opened #24239 (pull request) to correct this based on mgielecinski laser eyes recommendation.
Typo in head-jsonld.tpl, shop logo link: correction for #23151
The goal of this PR is to open the discussion about the microdata management.
A lot of issues are open about this topic recently.
The proposition is to keep the meta tags in the html flow but remove the microdata information and create a specific file that centralizes all the microdata and use JSON-LD for the declaration.
inspired a lot by github =>prestarocket-agence/classic-rocket
themes/classic/templates/_partials/microdata-jsonld.tpl :
This file is included in the head.tpl.
For the moment it's not perfect but it centralizes the info for futher improvements.
It takes care of this kind of microdata
Product combinations declared as an offer for the product (with stock and correct price) => great stuff ;)Not implemented for standard shop (people will be able to override)The product JSON declaration is not perfect. But like explained it's to open the discussion about the "centralization" of the concept and after that, maybe people who go deep;) will create new smarty variables that will help to enrich the microdata declaration.
people find comibnations (colors, flavors) too. => solve the problem when you have single cannonical url per product and your combinations will be skipped by Google bot.(available in the first commit of this PR, but removed to remain standard)Other files => remove each instance of itemprop and itemscope
Trick for pagination pages
Hope it will help...
This change is