I'm using Drupal commerce, Product attribute and Product Bundle. Each attribute (which is a product bundle) has it's own price, After selecting an attribute on a dropdown list it does not update the price of the main product, it also doesn't show the price on the dropdown list. How do we show the price on the dropdown list and also update the parent product price before adding it to the cart?


Main - 10,000

Attribute 1.1 - 1,000 (selected) Attribute 1.2 - 2,500

Attribute 2.1 - 5,000 (selected) Attribute 2.2 - 8,000

What's currently showing for the main is: Main: 16,000 (because of Attribute 1.1 and Attribute 2.1)

But if I select the other attributes, the Main/parent price won't update anymore. How can I make this work?

Just like the Commerce Pricing Attribute. The problem with my case is I don't use the Commerce pricing attribute because I don't use the commerce product option.

If it's hook form, rules, ajax, or a view, can you give me an example on how this will be done?

Thank you in advance.