Hello,
For the moment, Ubercart Domain Access stores the originating domain when an order is made.
I've some domains, sharings some products, and I let users sharing their shopping cart between domain. So, a user can begin his shopping on a domain by adding some produts to its cart, go to another domain, continue his shopping and ordering on this last domain.
The problem is that I would like to know from wich domain each product of the order was added to the cart, so I could perform better statistics between my domains.
I'm going to start working on it, so if someone can show me the way, it would be a great gain of time.
Thanks
Comments
Comment #1
longwaveYou should be able to do this fairly easily with hook_add_to_cart_data.
Comment #2
Anonymous (not verified) commentedThanks, indeed, this simple code did the trick
The thing a little difficult thant I wanted to do is to save the domain_id in a différent table (it's not very fast to perfom statistics on a serialized value in the data variable)
So I added this code :
P.S Sorry for not always following drupal coding standart