Adding new domain for mobile version using the same store
Hi,
We are working on a project that initially requested for displaying content on PCs. In this project we have created different stores for different countries and associated to the respective domains.
Now our client has requested us to add mobile version for the same site for each country. Since we couldn't convert the project now to responsive UI, we would like to add new domain for the same store for each country.
We heard that we could opt for multiple domain license, but we are not sure about it.
Any advices will be helpful for us to proceed with this.
Once the class is compiled put the DLL in the /bin folder and register the new catalog context in /umbraco/ucommerce/configuration/Custom.config like so (make sure and update the bold bits with your own namespace and DLL names):
In short all you have to do is override the CurrentCatalogContext mathcing the logic you want. This was a code example i found somewhere else. You might need to alter it for your needs.
Adding new domain for mobile version using the same store
Hi,
We are working on a project that initially requested for displaying content on PCs. In this project we have created different stores for different countries and associated to the respective domains.
Now our client has requested us to add mobile version for the same site for each country. Since we couldn't convert the project now to responsive UI, we would like to add new domain for the same store for each country.
We heard that we could opt for multiple domain license, but we are not sure about it.
Any advices will be helpful for us to proceed with this.
Thanks in advance.
- Siva
Hi Siva. The reason you're struggeling with that problem is that you have 1 hostname assigned for one store in the backend.
Fortunatly the logic that drives that is very easy to override so you can extract the same store on yoursite.com and m.yoursite.com.
Here's a little code example for you to work on;
Thanks a lot Morten!
We would try this approach and will let you know.
Sounds great.
Looking forward to hearing from you.
Regards
Morten
Thanks Morten, The solution was working fine. but we are override the "CurrentCatalogGroup" property.
Sounds great. Let me know if you have any issues in the future.
is working on a reply...