alvesjc Posted May 4, 2017 Share Posted May 4, 2017 (edited) Hi. I'm still having issues with google Merchant because of formating issues. All my store products are complaining about the price no beeing correctly understood. I've used google testing URL: https://search.google.com/structured-data/testing-tool to clarify the issue. It complains saying: 2,80 € (The property 2,80 € is not a valid price specification. Find out more about http://schema.org/price.) When following to code I see this: <div class="content_price" itemprop="offers" itemscope itemtype="https://schema.org/Offer"> <span itemprop="price" class="price product-price"> 2,80 € </span> <meta itemprop="priceCurrency" content="EUR"/> <span class="unvisible"> <link itemprop="availability" href="https://schema.org/InStock"/>Disponível </span> </div> If I then replace the coma sign with a dot, and remove the currency symbol, the error disappears!! How can I change the prestashop engine to use dots instead of coma and to not populate the currency symbol this way? Can someone help please? Thank you. Best regards, Joao Edited May 4, 2017 by alvesjc (see edit history) Link to comment Share on other sites More sharing options...
eversunpl Posted June 9, 2017 Share Posted June 9, 2017 For me working change in product-list.tpl <span itemprop="price" class="price product-price"> to <span itemprop="price" class="price product-price" content="{$product.price}"> 1 Link to comment Share on other sites More sharing options...
j.kaspar Posted June 9, 2017 Share Posted June 9, 2017 In version 1.6.1.13, I used this solution: change product-list.tpl, line containing this: {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} to this : {if !$priceDisplay}{$product.price}{else}{$product.price_tax_exc}{/if} It means - remove the "ConvertPrice" and leave only the number. Since the currency is in a separate tag, it is exactly what you need. I have seen a lot of solutions, including the one in the post above, but this one seems to be the most appropriate... 1 Link to comment Share on other sites More sharing options...
alvesjc Posted June 10, 2017 Author Share Posted June 10, 2017 Thank you for the inputs. Mean while I had found that the products were showing any in merchant anyway, but I'll correct this. Best regards, Joao Link to comment Share on other sites More sharing options...
alvesjc Posted June 10, 2017 Author Share Posted June 10, 2017 @ j.kaspar Worked fine thanks. But now price shows withou currency when mouse over, but I'll try to fix that. Thanks. Link to comment Share on other sites More sharing options...
j.kaspar Posted June 19, 2017 Share Posted June 19, 2017 (edited) @ j.kaspar Worked fine thanks. But now price shows withou currency when mouse over, but I'll try to fix that. Thanks. True, I didn't even notice this result. In that case, the whole span should look like this: <span itemprop="price" class="price product-price" content="{if !$priceDisplay}{$product.price}{else}{$product.price_tax_exc}{/if}"> {hook h="displayProductPriceBlock" product=$product type="before_price"} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> Which means original state, with the "content" property added in the span tag, as is suggested above my first post. But inside should still be the whole if..else construction, that ensures, that the correct value is used no matter the settings. Not only the {$product.price}. Edited June 19, 2017 by j.kaspar (see edit history) Link to comment Share on other sites More sharing options...
ZMR Posted September 25, 2018 Share Posted September 25, 2018 On 6/20/2017 at 4:05 AM, j.kaspar said: True, I didn't even notice this result. In that case, the whole span should look like this: <span itemprop="price" class="price product-price" content="{if !$priceDisplay}{$product.price}{else}{$product.price_tax_exc}{/if}"> {hook h="displayProductPriceBlock" product=$product type="before_price"} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> Which means original state, with the "content" property added in the span tag, as is suggested above my first post. But inside should still be the whole if..else construction, that ensures, that the correct value is used no matter the settings. Not only the {$product.price}. Hello, Thank you so much for your suggestions, It worked for me, but products under "Best Sellers" Tab are still showing the warning, I'm using default theme of version 1.6.1.20, all other tabs (New Arrivals, Popular and Specials) are not showing any error, but the "Best Sellers" tab. Hope someone can help here. Thank you! Kind Regards Link to comment Share on other sites More sharing options...
Zeryk Posted February 11, 2020 Share Posted February 11, 2020 (edited) PS 1.6.1.23 thanks for one step forward , yet few are still ahead. solution works on product list, but in product it self shows / reads the price value "0" for some reason? Should I also edit product.tpl ( as it's recommended for 1.7 version ) Also other fields like url . , is there any tutorial / general solution for all that , or has to be done bit by bit from info sourced from different websites or programmers? Thanks for your support! Edited February 11, 2020 by Zeryk (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now