Jump to content

Module "Product Properties Extension" broke my Google Rich Snippets price rule


Recommended Posts

Installation type: updatet from 1.5.6
PrestaShop version: 1.6.1.1
Theme: Default-Bootstrap
Hosting: byte.nl

Site: click here
PHP version: 5.6
MySQL version: 5.6.25
Browser(s) concerned: All

 

Momently i'm doing my internship at a company who are using a prestashop multi store webshop in flooring. The main purpose of my research is improving the findability and improve the conversion (who isn't :D ). I never used prestashop before so i am figuring out a lot lately. I've figured that the version was really outdated so an update was required. I recently migrated version 1.5.6 to a new test hosting and updatet to the most recent version, what was very educational :ph34r: 

 

So far so good....... The shop used the "Product Product Extension" and "Multidimensional plugin" from PS&More to calculate the needed square meters and the amount of packs to order. In order to make it work in the newest version of prestashop i needed to update/reinstall the module to the most recent version. The displayed price is the price per m² but after the upgrade of the module the Structured Data Tool didn't recognized the unit behind the price.

 

I've used Googles Structured Data Tool to determine the fault and i've figured a way to make it work in the html code but now i don't know how to modify the themes product.tpl to make it work:

//Works:

<div class="product-container" itemscope itemtype="https://schema.org/Product"><div class="left-block"><div class="product-image-container"> <a class="product_img_link" href="http://shop1.carewebshops.nl.testbyte.nl/alle-pvc-vloeren/352-moduleo-castle-oak-click.html" title="Moduleo Castle Oak Click" itemprop="url"> <img class="replace-2x img-responsive" src="http://shop1.carewebshops.nl.testbyte.nl/3112-home_default/moduleo-castle-oak-click.jpg" alt="Moduleo Castle Oak Click" title="Moduleo Castle Oak Click" width="124" height="124" itemprop="image" /> </a></a><div class="content_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <span itemprop="price" class="price product-price"> € 39,33 </span> <span itemprop="priceSpecification" class="pp_unity_text">(per m<sup>2</sup>)</span> <meta itemprop="priceCurrency" content="EUR" /></div></div></div><div class="right-block"><h5 itemprop="name"> <a class="product-name" href="http://shop1.carewebshops.nl.testbyte.nl/alle-pvc-vloeren/352-moduleo-castle-oak-click.html" title="Moduleo Castle Oak Click" itemprop="url" > Moduleo Castle Oak Click </a></h5><p class="product-desc" itemprop="description"> De Moduleo® Design vloeren maken uw interieurdromen bereikbaar. Droom weg bij de honderden steen - en houtdessins uit onze collectie en laat je inspireren door de realistische en praktijkgerichte oplossingen.  Moduleo® Design vloeren bieden de elegantie en het detail van natuurlijke materialen, zonder de nadelen. Moduleo Castle Oak Click is bij...</p><div class="content_price"> <span class="price product-price"> € 39,33 <span class="pp_unity_text">(per m<sup>2</sup>)</span> </span></div><div class="button-container"> <a class="button ajax_add_to_cart_button btn btn-default" href="http://shop1.carewebshops.nl.testbyte.nl/cart?add=1&id_product=352&ipa=3052&token=1fe54f778c49cfa98f722a405f51f981" rel="nofollow" title="In winkelwagen" data-id-product-attribute="3052" data-id-product="352" data-minimal_quantity="1"> <span>In winkelwagen</span> </a> <a class="button lnk_view btn btn-default" href="http://shop1.carewebshops.nl.testbyte.nl/alle-pvc-vloeren/352-moduleo-castle-oak-click.html" title="Bekijken"> <span>Meer</span> </a></div><div class="product-flags"></div></div></div>

//Doesn't work:

<div class="product-container" itemscope itemtype="https://schema.org/Product"><div class="left-block"><div class="product-image-container"> <a class="product_img_link" href="http://shop1.carewebshops.nl.testbyte.nl/alle-pvc-vloeren/351-moduleo-country-oak-click.html" title="Moduleo Country Oak Click" itemprop="url"> <img class="replace-2x img-responsive" src="http://shop1.carewebshops.nl.testbyte.nl/3117-home_default/moduleo-country-oak-click.jpg" alt="Moduleo Country Oak Click" title="Moduleo Country Oak Click" width="124" height="124" itemprop="image" /> </a><div class="content_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <span itemprop="price" class="price product-price"> € 39,33 <span class="pp_unity_text">(per m<sup>2</sup>)</span> </span><meta itemprop="priceCurrency" content="EUR" /></div></div></div><div class="right-block"><h5 itemprop="name"> <a class="product-name" href="http://shop1.carewebshops.nl.testbyte.nl/alle-pvc-vloeren/351-moduleo-country-oak-click.html" title="Moduleo Country Oak Click" itemprop="url" > Moduleo Country Oak Click </a></h5><p class="product-desc" itemprop="description"> De Moduleo® Design vloeren maken uw interieurdromen bereikbaar. Droom weg bij de honderden steen - en houtdessins uit onze collectie en laat je inspireren door de realistische en praktijkgerichte oplossingen.  Moduleo Country Oak Click is bij Pvcvloerstore beschikbaar in 4 kleuren.</p><div class="content_price"> <span class="price product-price"> € 39,33 <span class="pp_unity_text">(per m<sup>2</sup>)</span> </span></div><div class="button-container"> <a class="button ajax_add_to_cart_button btn btn-default" href="http://shop1.carewebshops.nl.testbyte.nl/cart?add=1&id_product=351&ipa=3057&token=1fe54f778c49cfa98f722a405f51f981" rel="nofollow" title="In winkelwagen" data-id-product-attribute="3057" data-id-product="351" data-minimal_quantity="1"> <span>In winkelwagen</span> </a> <a class="button lnk_view btn btn-default" href="http://shop1.carewebshops.nl.testbyte.nl/alle-pvc-vloeren/351-moduleo-country-oak-click.html" title="Bekijken"> <span>Meer</span> </a></div><div class="product-flags"></div></div></div>


Is there somebody out here (for instance Nemo1, Vekia, El Patron, Dh42) :rolleyes: who is able to help me edit my product.tpl (see attachment)

 

Thanks in advance!

 

Kind regards,

 

 

Max

Link to comment
Share on other sites

Fist of all this forum/community is very helpful to me so far. I hope my explanation is clear enough though? Upload of the .tpl file didn't worked out as it should, so lets give it an other shot. 

 

Maybe this shows the difference better. The first one is the html output which is generated when i retrieve te url in Structured Data Testing Tool. The second is the html output that I modified to make it work :

<div class="content_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <span itemprop="price" class="price product-price"> € 18,09 <span class="pp_unity_text">(per m<sup>2</sup>)</span> </span><meta itemprop="priceCurrency" content="EUR" /></div>

See the priceSpecification part

<div class="content_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <span itemprop="price" class="price product-price"> € 39,33 </span> <span itemprop="priceSpecification" class="pp_unity_text">(per m<sup>2</sup>)</span> <meta itemprop="priceCurrency" content="EUR" /></div>

I've also included the output of the structured data testing tool in the attachment. I've also find this article so meanwhile I will try figuring it out myself.

 

Thanks a lot!

product.tpl.zip

post-1089143-0-13040200-1444896039_thumb.png

post-1089143-0-53208400-1444896063_thumb.png

Link to comment
Share on other sites

×
×
  • Create New...