Running Drupal 7, and the latest stable UB. Currently, each product's price is set to $0. We have attributes that get selected and that is what determines a product final price. When a user selects the attribute. We want it to automatically change the product price without a page reload or needing to add it to the cart. How can I accomplish this?

Update: This is the latest patch that was mentioned here. I have patched my code as follows. I attached a pastebin of the patched code for review in case I missed something. Also if anyone wants post-patch code prior to it getting released to dev.

Some people report that the patch works. I unfortunately haven't been able to get it to work. The blue spinning ajax icon shows like its doing something but my display price doesn't change.

UPDATE FIX!: This thread details the answer to this question.


This is planned to be included in Ubercart itself, see http://drupal.org/node/1380772 - any tests or comments are welcome in that issue.

  • Will be adding the latest patches and report back on here and on the Drupal forums. – Digital fire Aug 2 '12 at 14:45
  • Just tested with the latest patch. Ajax Icon spins like if its doing something but it doesn't modify my Display Price. Posted on the Drupal Forum as well. – Digital fire Aug 2 '12 at 17:16
  • @DigitalFire Do you know if this same functionality is available in Ubercart 2/Drupal 6? ------ Never mind, found a solution for D6/UC2: drupal.org/project/uc_aac – hockey2112 Feb 19 '13 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.