krizzu Posted July 29, 2021 Share Posted July 29, 2021 Hi I would like to display another price of specific product id in product.tpl. I would appreciate if anybody can help me with that <span id="price_display" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span> Thanks Link to comment Share on other sites More sharing options...
Shabab Posted July 30, 2021 Share Posted July 30, 2021 9 hours ago, krizzu said: Hi I would like to display another price of specific product id in product.tpl. I would appreciate if anybody can help me with that <span id="price_display" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span> Thanks Hi, Can you explain it with screenshot ? Link to comment Share on other sites More sharing options...
krizzu Posted July 31, 2021 Author Share Posted July 31, 2021 It is simple concept. On product,tpl I want to display a price from another product lest say that has id=10. Any idea how to modify the code to make it work ? Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 1, 2021 Share Posted August 1, 2021 @krizzu Which version of PrestaShop you are using. Because PrestaShop 1.6 and 1.7 data call is different. Thank you Link to comment Share on other sites More sharing options...
krizzu Posted August 1, 2021 Author Share Posted August 1, 2021 I am using Presta 1.6 Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 2, 2021 Share Posted August 2, 2021 15 hours ago, krizzu said: I am using Presta 1.6 Use this code {assign var='customproductPrice' value=$product::getPriceStatic(5,true, $smarty.const.NULL, 6)} {$customproductPrice|print_r} 1 Link to comment Share on other sites More sharing options...
krizzu Posted August 14, 2021 Author Share Posted August 14, 2021 Thank you 1 Link to comment Share on other sites More sharing options...
SmartDataSoft Posted August 14, 2021 Share Posted August 14, 2021 3 minutes ago, krizzu said: Thank you You are well come 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