centivasoftwares Posted July 28, 2015 Share Posted July 28, 2015 Hi I have follow the post "Add Attributes in product list" and added the combinations in Product List TPL. Its works fine and i can select a product based on attributes and add it in cart. But I want to change the display cost, when user select any combination in product list tpl. Either way is display the price also along the Combination in select box. Like 30 ml - $50 50 ml - $80 Or directly change the display cost when select any combination from list. How to do that ? I really appreciate if you could help. Link to comment Share on other sites More sharing options...
musicmaster Posted July 28, 2015 Share Posted July 28, 2015 I don't get your question. In the page where you can edit your combination you can specify its price differential from the basic product. Link to comment Share on other sites More sharing options...
centivasoftwares Posted July 29, 2015 Author Share Posted July 29, 2015 The products prices vary when you select the combination. Url(product list with all commbinations) :- Click Here You can see here the products with the combination. But when you select any combination, the display price still the same. Now please see the product detail page : Click here On this page, if you click on the combination, the display cost will also change. PS :- The combinations comes from Backoffice admin Link to comment Share on other sites More sharing options...
musicmaster Posted July 29, 2015 Share Posted July 29, 2015 I don't get your problem. Prestashop stores a base price for each product and it stores an additional price for each combination. So if your 50 gram product is 2 dollar and the 100 gram is 3 dollar it will store an additional price of 1 dollar for the combination. Link to comment Share on other sites More sharing options...
centivasoftwares Posted July 30, 2015 Author Share Posted July 30, 2015 Yes. So where it the code in prestoshop(in php) which calculate the final price ? I am looking it. Something like Product->CalculateAttributePrice(); I need the function which do all calculation 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