Jump to content

Recommended Posts

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 by dvir
Nobody Answer it.. (see edit history)
Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...