Cenzy Posted December 22, 2016 Share Posted December 22, 2016 Hi everyone, I'm new in prestashop. My question in detail is:How can I get the impact price of an attribute if I have his ID? Example: I've the attribute "Red" with impact price of €20,00 and ID 7. How can I do? I've searched in product.js but nothing for my purpose... Sorry for bad english, thank you! Link to comment Share on other sites More sharing options...
Gabriel Perez Posted December 22, 2016 Share Posted December 22, 2016 (edited) Hi. First, an attribute has no impact on price, is the product combination who has it. How to get the price of a combination : $combination = new Combination($id_combination); /* then access */ $combinacion->price; Notice that this is not javascript, but php. And please, stop spamming in the forum. Edited December 22, 2016 by Gabriel Perez (see edit history) Link to comment Share on other sites More sharing options...
softhightech Posted March 14, 2017 Share Posted March 14, 2017 your code is not working i still working on to find the solution for this issue Link to comment Share on other sites More sharing options...
Gabriel Perez Posted March 14, 2017 Share Posted March 14, 2017 (edited) You can look at the 'getPriceStatic' function in the product class, it may solve it for you. Anyway, if you dont know how to apply it, it doesnt have anny sense that i told you the code you should use. Edited March 14, 2017 by Gabriel Perez (see edit history) 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