• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 08.10.19, 10:03
  • Opened by: Karim BOUDALI
  • Closed by: Marek
  • Closed on: 21.10.19, 18:36
  • Reason: Closed
  • Comment: Glad to help!

Ticket #15814 - offers, review ou aggregateRating.

Hi Marek,

I have a lot of pages in error on micros data when I consult google webmasters tools.
How to correct on the theme and make the data appear: offers, review ou aggregateRating (and brand, image, sku) ?
Thank you
Karim

Comments

Marek 08 Oct 2019, 22:49

Please give me a link to a page with problems

Karim BOUDALI 09 Oct 2019, 13:44

Hi,

return of my hosting :

“Nous avons mis à jour votre module. Les étoiles et avis s’affichent bien sur vos pages produits, home et catégories (ci-joint captures d’écran).

En ce qui concerne les Rich Snippets : la version que vous aviez avant cette mise à jour n’intégrait pas les rich snippets. Ils sont maintenant effectifs sur votre fiche produits. Cependant il faudrait que vous corrigiez un élément de votre côté pour que le processus soit complet. L’outil de test de Google nous indique qu’il y a trop de balises Product sur vos fiches produits. Cela a pour effet de confondre Google. Il faudrait que vous enleviez la balise Product sur les produits présents dans la section “Dans la même gamme” ou que vous leur ajoutiez la balise itemprop=”isRelatedTo” avant “itemscope itemtype=”http://schema.org/Product“.”

“We’ve updated your module - stars and reviews are showing up well on your product, home and category pages (here are screenshots).

Regarding Rich Snippets: The version you had before this update did not include rich snippets. They are now effective on your product page. However, you should correct an element on your side so that the process is complete. Google’s test tool tells us that there are too many Product tags on your product listings. This has the effect of confusing Google. You should remove the Product tag from the products in the “In the same range” section or add the itemprop = “isRelatedTo” tag before “itemscope itemtype =” http://schema.org/Product “. “

Karim BOUDALI 09 Oct 2019, 15:04

I think I fix it ! ;-)

Marek 09 Oct 2019, 20:58

Here is the fixed file /httpdocs/themes/alysum/templates/catalog/_partials/miniatures/product.tpl but it doesn’t affect to front page. Maybe the path is wrong? try to copy that file to the correct path

Karim BOUDALI 09 Oct 2019, 22:00

That’s what I did, I copy the file in the path you specified. It works when you are on the product page.

But when you are on the list of products (of a category for example), it does not work, as you could see on my 2 test links.

<article class=”product-miniature js-product-miniature{if $product.quantity == 0} out-of-stock{/if}{if (isset($product.new) && $product.new == 1)} new{/if}{if (isset($product.bestseller) && ($product.bestseller == 1))} bestsellers{/if}{if (isset($product.featured) && $product.featured == 1)} featured{/if}{if (isset($product.reduction) && $product.reduction > 0)} discount{/if}{if isset($product.all_cats)} {$product.all_cats}{else}{if isset($product.category)} {$product.category}{/if}{/if}” data-id-product=”{$product.id_product}” data-id-product-attribute=”{$product.id_product_attribute}” itemprop=”isRelatedTo” itemscope itemtype=”http://schema.org/Product“>

Marek 10 Oct 2019, 11:10

The main problem for me to make a fix is that I make a change but don’t see it in the front page. What is the right path to the theme?

Karim BOUDALI 10 Oct 2019, 11:32

the path is always the same, you do not see because you have to clear the cache on prestashop performance.
I use the module “PAGE CACHE ULTIMATE”

that is perhaps why he does not see himself because he keeps the pages in cache.

But the path of the theme alysum is in the right place

Karim BOUDALI 10 Oct 2019, 11:39

what is the file you are talking about which you have to modify?

Marek 10 Oct 2019, 17:36

I need to edit this file: – /themes/alysum/templates/catalog/_partials/miniatures/product.tpl


I can edit it, but no changes in the front page, looks like a cache is enabled, or the path to the file is wrong

Karim BOUDALI 10 Oct 2019, 18:33

if you wish, send me the new corrected product.tpl file, I’ll put it back

i have a cache with the module page cache ultimate, if you want to see the modification :
Prestashop > Performance > vider le cache and clear cache your browser history

Marek 10 Oct 2019, 18:46

Here is it

Karim BOUDALI 10 Oct 2019, 18:47

in product.tpl : after i don’t understand why is quantity and not reference or id product :

<meta itemprop="**sku**" content="{$product.**quantity**}" />
Marek 10 Oct 2019, 18:48

you can add reference if you need

Karim BOUDALI 10 Oct 2019, 19:02

and please why i have you delete in your file this :

” itemprop=”isRelatedTo”

in

<article class=”product-miniature js-product-miniature{if $product.quantity == 0} out-of-stock{/if}{if (isset($product.new) && $product.new == 1)} new{/if}{if (isset($product.bestseller) && ($product.bestseller == 1))} bestsellers{/if}{if (isset($product.featured) && $product.featured == 1)} featured{/if}{if (isset($product.reduction) && $product.reduction > 0)} discount{/if}{if isset($product.all_cats)} {$product.all_cats}{else}{if isset($product.category)} {$product.category}{/if}{/if}” data-id-product=”{$product.id_product}” data-id-product-attribute=”{$product.id_product_attribute}” itemprop=”isRelatedTo” itemscope itemtype=”http://schema.org/Product“>

Karim BOUDALI 11 Oct 2019, 09:11

Hi Marek

I installed the module “Intégration complète de MICRODATA et OPEN GRAPH - SEO” and now I have no problem
link : https://addons.prestashop.com/fr/seo-referencement-naturel/42397-integration-complete-de-microdata-et-open-graph-seo.html

thank you
Karim

Karim BOUDALI 11 Oct 2019, 09:46
Karim BOUDALI 11 Oct 2019, 10:16

I deactivated the price module HT and TTC while waiting for me to find a solution.
thank you

Karim BOUDALI 11 Oct 2019, 13:17

I asked the developer of the module to solve the problem if I have a problem I come back to you.
thank you

Marek 11 Oct 2019, 20:03

Ok, waiting for you

Karim BOUDALI 11 Oct 2019, 21:23

hi marek

I am sorry but the developer is too long to answer and the site is in production, can you solve these 2 problems that you have already solved, thank you really!

1 - No price without VAT on the product sheet:
https://www.edehillerin.fr/fr/les-couvercles/365-1016-couvercle-pro-inox.html#/172-choix_diametre_cm-14

2- Problem displaying logs on the home page

Marek 12 Oct 2019, 22:00

1. We will try to find a solution as soon as possible
2. you are using third party module so you have to adjust it’s view to the theme

Marek 21 Oct 2019, 17:50

As I can see you already have the price without vat now, right? https://take.ms/3lL2O

Karim BOUDALI 21 Oct 2019, 18:32

Hi,

yes it’s ok
thank you.