atillakilic Posted October 21, 2019 Share Posted October 21, 2019 hi everyone, i try to show diffrent price on product details. how can i do price*0,8 <span itemprop="price" content="{$product.price_amount}">{$product.price}</span> Link to comment Share on other sites More sharing options...
GPW3P Posted October 25, 2019 Share Posted October 25, 2019 Hi, it's possible to do calculation, something like this : {$product.price_amount * 0.8} Link to comment Share on other sites More sharing options...
atillakilic Posted October 25, 2019 Author Share Posted October 25, 2019 1 hour ago, GPW3P said: Hi, it's possible to do calculation, something like this : {$product.price_amount * 0.8} yes i was try this in product-prices tpl files, but not work. maybe i m wrong fıle edıt? Link to comment Share on other sites More sharing options...
Nomouku Posted October 27, 2019 Share Posted October 27, 2019 {$product.price_amount * 0.8} It works fine for me. Just edit correct files. Link to comment Share on other sites More sharing options...
atillakilic Posted October 28, 2019 Author Share Posted October 28, 2019 12 hours ago, Nomouku said: {$product.price_amount * 0.8} It works fine for me. Just edit correct files. themes/laber_milano_homepage2/templates/catalog/_partials/product-prices.tpl ı edıt thıs fıle. am ı wrong? Link to comment Share on other sites More sharing options...
Nomouku Posted October 28, 2019 Share Posted October 28, 2019 12 hours ago, atillakilic said: themes/laber_milano_homepage2/templates/catalog/_partials/product-prices.tpl ı edıt thıs fıle. am ı wrong? You are right, if you use theme 'laber_milano_homepage2'. And if you make changes correctly. For example, in such line <span itemprop="price" content="{$product.price_amount}">{$product.price}</span> You need to replace like this <span itemprop="price" content="{$product.price_amount}">{$product.price_amount * 0.8}</span> And don't forget to clear cache in back-end at the page 'Performance' after you change *.tpl 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