Jump to content

Getting product combination creation to automatically add price presta 8.0.2


warleb

Recommended Posts

Been working on this for a few days.  I added an extra field on the product attribute page so I can set a price for each attribute if it needs it.

This is price is now stored in ps_attribute_lang as a field called cprice.  This field is 20,6 decimal

image.png.9acfee1dc10052d72783f998efa0a47f.png

Database looks like
image.png.5046a919df98686bf3e00013f3681377.png

So now when I create the combinations I want this field to be taken into account so that it adds up the values of the attribute and shows the total price when the combinations are created and updates both impact prices on the fly>
 

is combinations.php the correct place to do this?  Can anyone assist with theis?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...