lorenzoripa Posted August 14, 2021 Posted August 14, 2021 Good evening, I would like to show in the product combinations the final price (base price + impact of the combination) directly in the combination selection box. I found the file I should have to modify the product-variant.tpl code but I can't find the variables it is as if there are no prices in that piece. Can you help me? Thank you Share this post Link to post Share on other sites More sharing options...
4you.software Posted August 16, 2021 Posted August 16, 2021 {$group_attribute.name} +{$combinations[$id_attribute].price}{$currency.sign} Share this post Link to post Share on other sites More sharing options...
lorenzoripa Posted September 22, 2021 Posted September 22, 2021 On 8/16/2021 at 5:54 AM, WebSoft said: {$group_attribute.name} +{$combinations[$id_attribute].price}{$currency.sign} thanks but it didn't work. Only the currency symbol appears Share this post Link to post Share on other sites More sharing options...
4you.software Posted September 23, 2021 Posted September 23, 2021 Share this post Link to post Share on other sites More sharing options...
lorenzoripa Posted September 23, 2021 Posted September 23, 2021 2 hours ago, WebSoft said: i had tried the solution but no price was written in product page. I tried also to move the product-variant.tpl code in product.tpl but same result, it seems that are no variable for combinations Share this post Link to post Share on other sites More sharing options...
4you.software Posted September 23, 2021 Posted September 23, 2021 Sorry. I didn't realize it was a little more complicated. You would need to override the Product.php file, add a function, and then call the function in the TPL template. Here is the finished module. https://www.prestatoolbox.com/front-office-features/382-display-attributes-prices-on-your-prestashop-products.html I also found instructions here (click image): Share this post Link to post Share on other sites More sharing options...
JBW Posted November 2, 2021 Posted November 2, 2021 If you are looking for an out-of-the-box working module (no overrides, no template changes) please check out my module: Attribute Price and Availability Display Module Share this post Link to post 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