dvir Posted November 6, 2020 Share Posted November 6, 2020 (edited) Hi, I've checked my page in google structured data , and it seems that I have an issue on all my product pages. The warning is "Invalid price format in property “offer.price”" My prices are been presented in the pages with the symbol of ILS (₪) page example: https://www.cdsoft.co.il/index.php?id_product=300019&controller=product I would like to remove the symbol from the prices, since i've already have a currency tag How to remove the symbol from the price tab ? Prestashop version: 1.6.1.23 Thanks ! P.S i'm using 2 modules for Structured Data Rich Snippet (maybe it's an issue) 1. SEO Schema Markup Structured Data Rich Snippet 2. PS Rich Snippets and Breadcrumbs Edited November 7, 2020 by dvir Nobody Answer it.. (see edit history) Link to comment Share on other sites More sharing options...
dvir Posted November 9, 2020 Author Share Posted November 9, 2020 Answer anyone ? Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2020 Share Posted November 10, 2020 Put a link to a Hebrew page in an English forum? That's why you don't have an answer. If you only use one currency, you can edit Tools.php and the displayPrice function in ./classes/Tools.php. Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2020 Share Posted November 10, 2020 In the displayPrice function, look at the case and select which number is the format for your currency. And instead of $c_char write 'ILS' Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2020 Share Posted November 10, 2020 case 1: $ret = 'ILS'.$blank.number_format($price, $c_decimals, '.', ','); break; case 2: $ret = number_format($price, $c_decimals, ',', ' ').$blank.'ILS'; break; case 3: $ret = 'ILS'.$blank.number_format($price, $c_decimals, ',', '.'); break; case 4: $ret = number_format($price, $c_decimals, '.', ',').$blank.'ILS'; break; case 5: $ret = 'ILS'.$blank.number_format($price, $c_decimals, '.', "'"); break; } Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2020 Share Posted November 10, 2020 (edited) If a module uses the $currency-> symbol in the code, then modifying the function in Tools.php will not help you and the modules will have to be modified. Edited November 10, 2020 by Guest (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