Let other modules interact with UC_AAC

andreiashu - May 22, 2009 - 11:01
Project:Ubercart Ajax Attribute Calculations
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:minor
Assigned:AntoineSolutions
Status:fixed
Description

Hi,
I would like to see AAC let other modules extend it. What I'm talking about is mostly jquery related. For example it would be nice that AAC would fire a hook when a price is updated and provide access to the price element, this way letting others act on this change.
One good example is hierarchical_select

#1

cYu - May 29, 2009 - 21:15
Category:task» feature request

If you have a patch demonstrating how you'd like to see this I would consider it, but I don't believe I'll be coding anything like this.

#2

andreiashu - June 18, 2009 - 12:03
Priority:normal» minor

Setting a lower priority for this.
I just had time to provide a patch for #474400: Add support for checkbox attributes - and I will continue to provide patches for it based on your/others reviews.

Cheers !

#3

AntoineSolutions - November 4, 2009 - 19:55
Assigned to:Anonymous» AntoineSolutions
Status:active» fixed

andreiashu,

A new 6.x-2.x branch of this module has been created. It provides the following ways for other modules to interact with it:
* uc_aac 6.x-2.x now rebuilds the entire product view form on every change. This allows users to leverage existing Drupal hooks such as hook_nodeapi and hook_form_alter to alter the appearance of the product view form.
* The existing ubercart hook, hook_add_to_cart_data, is now called to load item data modifications made by other modules.
* A new hook has been added, hook_cart_item, to allow other modules to modify the cart item.

I am marking this issue as fixed. If you find any problems with the new branch, please open them as separate issues.

Cheers,

Antoine

 
 

Drupal is a registered trademark of Dries Buytaert.