30ml Posted September 18, 2016 Share Posted September 18, 2016 hi, I am using prestashop 1.6.x and it am trying to scratch on produc-list.tpl. Here, {$productPrice} variable shows $ 120. But I want to seperate it into <span>$</span><span>120</span>. I am unknow about which variable shoud I include. So, that I can put seperate span for currency symbol and price seperatly. That would be wounder if you guys can help me. Thanks you Link to comment Share on other sites More sharing options...
rictools Posted September 18, 2016 Share Posted September 18, 2016 {$productPrice} variable shows $ 120. But I want to seperate it into <span>$</span><span>120</span> Why? Do you want to give the $ another class to make it smaller? Then you can use the first-letter selector. Link to comment Share on other sites More sharing options...
30ml Posted September 18, 2016 Author Share Posted September 18, 2016 I need to compatible on google Rich Snippets. So, I need to seperate with span tag. Link to comment Share on other sites More sharing options...
rictools Posted September 19, 2016 Share Posted September 19, 2016 I need to compatible on google Rich Snippets. So, I need to seperate with span tag. Try: {str_replace("$ ", "$</span> <span>", $productPrice)} 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