Is it possible to use Merchello ecommerce across multiple domains? I have a few sites hosted under one Umbraco CMS each site has its own domain name but all share the same umbraco DB.
The customer is happy to have all products under one store, but for their marketing purposes they want to list products under relevant website domain.
For example:
Under umbraco I have website1, website2 and website3.
And in Merchello I have products 1 & 2 (used for website1), 3,4,5 & 6 (used for website2).
I want users to be able to buy from any of the three websites and checkout all added products from any of these websites too. For instance, a user browses website1 and add products 1 and 2, then browse website2 and add products 3 and 4, and finally the user browse website3 and checkout all added products from there.
Is this scenario possible? Do I need to globalize anything (i.e. cookie, session, etc.) in order for Merchello to keep track of all added products in all websites?
I've never tested what would happen in that scenario (like with a single basket shared across all three sites) - and you may need to tweak around with the CustomerContext (which manages the cookie) as you mentioned.
You'll have to watch the anonymous customer creation. i.e. Does Merchello create a new anonymous customer for each site when the domain is changed.
Thanks Rusty for your reply. For now, I ran two domains (s1.d.com and d.com) and noticed the cart is using d.com/basket url for both sites but, unfortunately, not showing only products added from d.com and not from s1.d.com.
Do you have any idea why? I will continue the development and will update you if I find a solution first.
I'm guessing you have two anonymous customers. Take a look at the merchItemCache and merchItemCacheItem tables and watch for changes noting the "entityKey" (which is either the customerKey or the anonymousCustomer Key) ... see if they are different.
Merchello Cross Domain
Is it possible to use Merchello ecommerce across multiple domains? I have a few sites hosted under one Umbraco CMS each site has its own domain name but all share the same umbraco DB.
In this case Merchello would be available to all domains - but each domain would essentially be the same store ...
Multi-store is a V3 todo
Thanks Rusty.
The customer is happy to have all products under one store, but for their marketing purposes they want to list products under relevant website domain.
For example: Under umbraco I have website1, website2 and website3. And in Merchello I have products 1 & 2 (used for website1), 3,4,5 & 6 (used for website2).
I want users to be able to buy from any of the three websites and checkout all added products from any of these websites too. For instance, a user browses website1 and add products 1 and 2, then browse website2 and add products 3 and 4, and finally the user browse website3 and checkout all added products from there.
Is this scenario possible? Do I need to globalize anything (i.e. cookie, session, etc.) in order for Merchello to keep track of all added products in all websites?
That will work - but disclaimer =)
I've never tested what would happen in that scenario (like with a single basket shared across all three sites) - and you may need to tweak around with the CustomerContext (which manages the cookie) as you mentioned.
You'll have to watch the anonymous customer creation. i.e. Does Merchello create a new anonymous customer for each site when the domain is changed.
Thanks Rusty for your reply. For now, I ran two domains (s1.d.com and d.com) and noticed the cart is using d.com/basket url for both sites but, unfortunately, not showing only products added from d.com and not from s1.d.com.
Do you have any idea why? I will continue the development and will update you if I find a solution first.
I'm guessing you have two anonymous customers. Take a look at the merchItemCache and merchItemCacheItem tables and watch for changes noting the "entityKey" (which is either the customerKey or the anonymousCustomer Key) ... see if they are different.
is working on a reply...