The new ajax pricing in version 3.2 (see Ajax-ify attribute option price selection) is a nice step forward in functionality. Unless I'm missing something, however, there is no way to hook into this process to update other page elements.
Right now uc_attribute_option_ajax()
calls uc_product_view_ajax_commands()
, which alters the display price, weight, and cost. Of course we can use our own ajax callbacks that call uc_attribute_option_ajax()
, but that approach gets problematic if more than one module wants to make further changes. Perhaps one solution would be to add a hook in uc_product_view_ajax_commands
, something like:
return array_merge($commands, module_invoke_all('uc_product_view_ajax_commands_alter', $form, $form_state));
Comments
Comment #1
TR CreditAttribution: TR commentedFeature requests should be made against HEAD.