I'm using the re-order module http://drupal.org/project/uc_reorder and it does not store the correct domain. What kind of hook do I need to make sure re-orders are created with the same domain as the original order?
I'm using the re-order module http://drupal.org/project/uc_reorder and it does not store the correct domain. What kind of hook do I need to make sure re-orders are created with the same domain as the original order?
Comments
Comment #1
longwaveThere is no hook for this as this kind of functionality was not anticipated. uc_domain_order always assumes the current domain is the one that the order was made from.
In fact, I'm not sure what this module should be doing here: uc_reorder only seems to add items to the current cart, and items from one domain are already in the cart and a reorder is made using items from another domain, there will be a mix of items from different domains in the cart, and it's possible that not all of those items are viewable on either domain - so it seems like uc_reorder would need extra code to handle this scenario.
Comment #2
jday commentedsorry I meant the uc_recurring module, where orders are created without user input. I created a conditional action triggered by a recurring order success to update the uc_domain_orders table (execute custom php) based on the user id. works great.