Simetria Posted February 5, 2019 Share Posted February 5, 2019 I'm looking to find a smarty variable that displays the base price from a product that has combinations. Those combinations may or may not affect the base price. I was able to find the the $combinationsvariable that contains the array of combinations which contains the "impact on price" price, but for some reason in the debug window I cannot find the base/root price before the combination's impact on price. Anyone know if this variable is being served by default, and if not, how I would be able to add it? Thanks so much. Link to comment Share on other sites More sharing options...
Kogkalidis Posted February 6, 2019 Share Posted February 6, 2019 If let's say $products is your list you could make {foreach $products as $product} ... {$product.price} ... {/foreach} If price is not working try price_te, price_te (tax exclusive and inclusive respectively) Also note to use smarty math https://www.smarty.net/docsv2/en/language.function.math.tpl Link to comment Share on other sites More sharing options...
koyocik Posted February 11, 2019 Share Posted February 11, 2019 Did you figure it out? Facing the same problem on product page... Link to comment Share on other sites More sharing options...
Simetria Posted February 25, 2019 Author Share Posted February 25, 2019 nope... It's so weird that this isnt part of the smarty variables... at least to me it is. Link to comment Share on other sites More sharing options...
Peter_Tersluisen Posted August 13, 2019 Share Posted August 13, 2019 On 2/25/2019 at 10:56 PM, Simetria said: nope... It's so weird that this isnt part of the smarty variables... at least to me it is. Hi! Simetria, Have you ever gotten it figured out? I'd be very interested. I am selling coffee in 3 different bag variants, 250g, 500g and 1000g. I must by law state a base price based on weight, lets say per 1000g. The base price shows okay on 250g package, but quadruples at 1000g, Example, my 250g bag costs 5€ so the 1kg bag costs logically 20€ The base price however should never change and remain at 20€/Kg and not change to 80€/Kg, when I choose the 1KG bag This really drives me nuts! Any ideas? 1 Link to comment Share on other sites More sharing options...
grsinternet Posted April 14, 2020 Share Posted April 14, 2020 On 8/14/2019 at 1:05 AM, Peter_Tersluisen said: Hi! Simetria, Have you ever gotten it figured out? I'd be very interested. I am selling coffee in 3 different bag variants, 250g, 500g and 1000g. I must by law state a base price based on weight, lets say per 1000g. The base price shows okay on 250g package, but quadruples at 1000g, Example, my 250g bag costs 5€ so the 1kg bag costs logically 20€ The base price however should never change and remain at 20€/Kg and not change to 80€/Kg, when I choose the 1KG bag This really drives me nuts! Any ideas? I'm looking for this too. Anyone figured out? P.S. This function hasn't been finished by PS, but it should be in Standard version in my opinion... It is crazy that price is wrong when someone searches by some combination and still see params of first Combination in search results... 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