The commerce product has the field: Price
Then I added two more field: Quantity and Price per Unit
I need the field Price per Unit to take the calculated value from this:
Price per Unit = Price/Quantity
How I get this?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
Commerce out of the box has a quantity field and does by default a 'price-per-unit'. Watch this tutorial to give you an idea of how it works without any customizations.