- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 04.12.19, 19:40
- Opened by: Alexandro Galussio
- Closed by: Fred
- Closed on: 03.01.20, 15:33
- Reason: Closed
- Comment: Glad to help!
Ticket #16378 - Schema Structured Data - product.tpl
I’m tidying up and correcting Structured-data according to the google tool:
https://search.google.com/structured-data/testing-tool/u/0/
You are showing me good Home and Categories. But on the Products Page it doesn’t show me the product from the Web and it leaves me separate offer, review and aggregateRating.
Can you help me? For me pagebuilder calls are confusing.
(EVERYTHING I’M DOING IS IN DEVELOPMENT)
dev.tiendahippie.co.es
Sample capture: https://dev.tiendahippie.es/es/camisetas-tops-largos-y-blusas/1702-9503-camiseta-patchwork.html#/55-talla-s_36_38
Thank you
Comments
Try to add the code below into the file /themes/alysum/templates/mobile/catalog/product.tpl right after the line:
{extends file=’mobile/layouts/layout-main.tpl’}
Hey, Fred, that’s what you’re putting on mobile. I was on desktop, then I’ll have to do it with Amp so it’s still good for me.
On desktop \template\catalog After line: {extends file=$layout}?
On desktop product page file is \template\catalog\product.tpl and yes, after the line
I already put the code and empty the cache but it still does not put the product of the web and separate puts the offer and the rating.
Send screenshot
Attachments:
schema.png(169.1 KiB)Web test:
https://dev.tiendahippie.es/es/camisetas-tops-largos-y-blusas/1702-9503-camiseta-patchwork.html#/55-talla-s_36_38
https://search.google.com/structured-data/testing-tool/u/0/?hl=es#url=https%3A%2F%2Fdev.tiendahippie.es%2Fes%2Fcamisetas-tops-largos-y-blusas%2F1702-9503-camiseta-patchwork.html%23%2F55-talla-s_36_38
Try to enable product comments module to eliminate this error https://take.ms/FzAuc
Look again at the screenshot I sent you before and you will see the following errors:
1- The main product of the page does not appear in schema. The 16 products that appear are products in the same category.
2- Offer, Review and Aggregate Rating appears but outside products. It must be because the main product is not there.
Do you understand what I explain?
Thank you
Please check this out https://take.ms/JFzCN and the link to google tests https://search.google.com/test/rich-results?id=zldllWkLx_VS1y6BML9wEg
Hi Fred, in English is not review, only in Spanish will you be able to prove it.
https://search.google.com/test/rich-results?id=VyFbK-F4K8bS1e5oD0T2Dg
Attachments:
schema-test.png(104.5 KiB)That is an optional attribute https://take.ms/tVVu2 and it depends on review what you have for current product
Hello Fred, but the problem is different. I have the review but neither the review nor the product is being shown.
Look at the image above. Remember it must be in Spanish (the review is in Spanish)
As I can see you have some another comment module https://take.ms/ELzaP and that module has to add review parameters for Google Rich Snippet
Hello Fred, but the problem is different. I have the review but neither the review nor the product is being shown.
Look at the image above. Remember it must be in Spanish (the review is in Spanish)
The problem is that it does not display the product with the offer and comment.
As I wrote you before that module (your product comments) should provide such information, not the theme
Fred, the problem is not with the comment module. The product and the offer are also missing.
And the rating and review module works because in schema you can see it. What is missing is the product.
Please check out source code of native prestashop productcomments module https://github.com/PrestaShop/productcomments/blob/master/views/templates/hook/product-list-reviews.tpl Here is the screenshot to show you what I mean https://take.ms/iqh0m
Hello Fred, the product you see today was a development product and has no comments. I’ve read how it should appear so I’m still trying to explain the error.
Please look at the following product (without modifying the code that is from the production server)
This product has Offer and Rating
https://www.tiendahippie.es/es/abrigos-hippie-xl/1153-7597-abrigo-negro-bordado-etnico.html#/68-talla-xl_46
I use the tool that Google technical support told me to use:
https://search.google.com/structured-data/testing-tool/u/0/
Attachments:
error-schema16-12.png(166.2 KiB)Write you once more.
- You are using your own product comments module
- that module has to add missing parameter
Nothing more here
Fred, I understand what you’re saying, but you don’t understand what I’m writing.
The problem is not that there is a lack of data in the module!
If you read what I show you for example you have the price offer without product! This has nothing to do with the review module.
Sorry, but I still can’t understand.
As I can see there is only one error https://take.ms/38yuU and that parameter has to be provided by product comments module
The problem is that the product you are testing DOES NOT APPEAR IN SCHEMA.
The 5 elements that appear as a product are those of products in the same category.
The error is that the labels of the main product of the website you are testing are not there.
The “coat-black-embroidered-ethnic.html” is not in SCHEMA.
The mistake is that it is not ! And it is the main product
Is the error understood?
Attachments:
product-schema.png(169.8 KiB)Here is a link to Classic theme https://s1.demo.opensourcecms.com/prestashop/blouses/2-7-blouse.html#/1-size-s/11-color-black you can test it out and make sure it’s parsed by google the same as our theme.
Hello, there you can put thema in classic at dev. and remove Maintenance to test and send you the schema capture.
There it works well but not with the Alysum theme, because the main product (in this case embroidered coat) in the classic theme is there and not in Alysum.
Attachments:
schema-clasic.png(186.1 KiB)I just added missed code to the product page https://take.ms/uH8Aa please check it out now