I was also wondering if anyone had improved/tested compatibility with uc_aac since CANO. Would love to see these two working together finally.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stewart.adam’s picture

Sorry for the delayed response, I thought that this project was a member of my 'always notify' notification group but it must have slipped through the cracks.

This module should be fully compatible with uc_aac, but I just realized I never posted the second half of my patch to uc_aac's queue after the initial one never got looked at (uc_aac seems unmaintained for the moment - see #1235202: uc_aac should supply a context to attachBehaviors after modifying the add to cart form).

Anyways attached is the other patch for uc_aac that needs to be applied for full compatibility. I'll get around to posting it to uc_aac soon after I fix a few bugs here first, but I don't think that it is going to be applied any time soon anyways. I'll probably end up taking maintainership of uc_aac as well just to commit the growing number of community patches in the queue and set its status to 'Seeking co-maintainers'...

stewart.adam’s picture

Title: uc_aac » Compatibility with uc_aac module

(Changing title to reduce ambiguity for other users searching for the same problem)

stewart.adam’s picture

FYI: the maintainers for uc_aac haven't responded in the issue queue for a little while now so I wouldn't count on getting the patches committed. I'm eyeing #1380772: Ajax-ify attribute option price selection instead in hopes that we can get this integrated with the official AJAX attribute support coming to Ubercart.

miccelito’s picture

Just installed and tried Ubercart Conditional Attributes module and noticed it's conflicting with uc_aac (Ubercart Ajax Attribute Calculations module). But have to say the intention of Ubercart Conditional Attributes module is great, was something I have been looking for. But unfortunately the module doesn't seem to work together with Ubercart Ajax Attribute Calculations module. But patch from #1 will solve it?

Edit: I've added both patches mentioned above to js and module file. It solved the issue. But causing another issue: takes away the ajax funcionality on add-to cart form, when clicking submit (add to cart) button sometimes makes page redirect to cart page...

Edit2: I tried again without the patches for Ubercart Ajax Attribute Calculations, then everything seems to work well. Tho I'm using checkboxes as child attribute. I'm using Ubercart Conditional Attributes 6.x-1.x-dev date 2012-Jul-09. Maybe those patches aren't needed when using checkboxes as child attribute?

stewart.adam’s picture

The JavaScript itself should work fine with just the two modules installed after having installed the attachBehaviors patch for uc_aac linked in comment #1. The patch attached to comment #1 is also for uc_aac and ensures that as the user adds an item to the cart, the required attributes are subsequently unset so that you don't get any hidden attributes listed on the cart pages.

If you're having trouble getting this working you may need to set the weight of uc_conditional_attributes lower then that of uc_aac; you can do this by modifying the 'weight' column of the {system} table manually.

miccelito’s picture

Ok, thanks for reply.

At the moment I'm not using the (linked/attached) pathes and it seems to work without them. When I used the patches it did break the ajax funcionality for add-to cart form, i.e. beeing at product page clicking add to cart forced a page redirect to cart page after adding item to cart instead of ajax update displaying uc ajax cart's notification message.

miccelito’s picture

@stewart.adam

Maybe offtopic but have you tested Ubercart Conditional Attributes together with any of the modules Ubercart attributes in cart http://drupal.org/project/uc_attributes_in_cart, Ubercart Order Attributes http://drupal.org/project/uc_order_attributes or Ubercart CCK Attribute http://drupal.org/project/uc_attribute_cck? Any of those modules you can recommend?
Using Ubercart Conditional Attributes I added two child attributes which are textfields where users can enter a number (amount of items) for each textfields. Maybe a good idea to make such attributes editable for users in cart (cart page, uc ajax cart etc)?

stewart.adam’s picture

At the moment uc_conditional_attributes is isn't compatible with uc_order_attributes nor the admin order 'add product' form, but I may be interested in adding support in the future. That's a discussion for another issue though.

As for editing attributes in cart, that's out of scope for this module. uc_attributes_in_cart should handle your needs well, if there are any incompatibilities then uc_attributes_in_cart just needs to call upon the uc_conditional_attributes functions to ensure that the appropriate attributes get hidden in the cart display. The patch for uc_aac would demonstrate how this is done.

miccelito’s picture

As I mentioned before (#4), appending your patch for uc_aac.js, broke the ajax funcionality...
More specificly I did mean that it broke the Ajax Cart functionality at Ubercart products (product level). Though I'm using Ubercart AJAX Cart (6.x-2.1) http://drupal.org/project/uc_ajax_cart

miccelito’s picture

if there are any incompatibilities then uc_attributes_in_cart just needs to call upon the uc_conditional_attributes functions to ensure that the appropriate attributes get hidden in the cart display. The patch for uc_aac would demonstrate how this is done

I have tried but had no success, maybe I added the patch's lines in wrong place..