Update price via AJAX I created a content type (main prod) that is referencing a product content type (sub prod). The sub prod is also referencing another product content type called (option sets) which will be the option sets of that product, with the use of Commerce Product Bundle I was able to combine all the different prices of the sub prod and the option sets and with the use of Commerce Product Attributes I am able to change the option sets to a list text field. 

I applied a patch that I saw to calculate the total price of all the chosen option sets and the sub prod on the cart and checkout page. My problem is on the product page itself I want the price of the sub prod to be calculated depending on the option sets chosen via real time of with using ajax. 

Can anybody help?

This is the list of commerce modules I have currently installed on my site.


Drupal Commerce
Commerce Product Bundle
Commerce Product Attributes
The answer is that "Commerce Product Bundles" (https://www.drupal.org/project/commerce_product_bundle) is never recommended since it circumvents large portions of Drupal Commerce. You should consider using line item fields or https://www.drupal.org/project/commerce_bundle if bundling is important to you.

Note: Custom line item fields also suffer from not having ajax updates. The community effort to make this a reality can be found here: https://www.drupal.org/node/1541886 and a video that describes an interesting use case for line item fields is here: https://www.youtube.com/watch?v=j9KsyvQZaAY