Active
Project:
Ubercart Ajax Attribute Calculations
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2011 at 20:05 UTC
Updated:
7 Nov 2012 at 10:59 UTC
The function is not properly attached to text field attributes. Suggest the following to fix:
jQuery.fn.ucAacAttach = function() {
$(this).find('select[name^=attributes]').change(function() {
ucAacCalculate(this);
});
$(this).find('input:radio[name^=attributes], input:checkbox[name^=attributes]').click(function() {
ucAacCalculate(this);
});
$(this).find('input:text[name^=attributes]').blur(function() {
ucAacCalculate(this);
});
}
Comments
Comment #1
tr commentedIn Ubercart, textfield attributes do not affect the price. So what problem are you trying to solve?
Comment #2
happyloman commentedI use a textfield attribute for a custom product that if the textfield is not blank then the product gets an additional charge, i.e. Add custom imprinted text to your product for $10.
Comment #3
liminu commentedRelated to this module http://drupal.org/project/uc_custom_price i think that is important to add this fix, i need it for my project.
Comment #4
griz commentedI have uc_aac working with uc_custom_price using a textfield, no problems. What troubles you liminu?
Comment #5
marcom2021 commentedI'm also using textfields but the price is not updated. I've got a product page with a textfield and a couple of radio buttons.
The custom price module calculates the price based on what the user fills in the textfield. When you fill in the textfield the price is not updated. This only happens as soon as you selcect one of the radio buttons. How did you get it to work with textfields?