Search the Community
Showing results for tags 'dynamic subdomains'.
Hi, I need my single shop store to be able to use wildcard subdomains and do not know how to achieve this or anyone who can. WHY: My Affiliates all have affiliate codes such as 'john'. These codes are the subdomains eg. "john.shop.com" It is a very neat way of tracking affiliates not having to add URL variables. This way also looks better and is better for a number of marketing reasons. It could be done with earlier Prestashop versions without mods.Our other system rely on this form of tracking. Also, if a customer bookmarks a page, it will not include the affiliates referrer code and that affiliate looses the customer which is not acceptable. The sever is set up to use "*.shop.com" (wildcard) but off course if you go to "john.shop.com" what loads due to the way Prestashop 1.6 now works is "www.shop.com". It gets worse: If you go to "john.advantagelife.net/home/1-product.html" what loads is "www.shop.com" so affiliates can not send customers directly to a product or any other page other than the home page. As multi-stores is not going to be used, I do not care if that functionality is totally overridden. While it would greatly be preferable to be dynamic and not do a database call for the sub-domain, I do keep a copy of the affiliate codes in the customer table. It would be better if the 1.6 functionality of rewriting the URL as "www....." was simply removed or overridden. Does anyone have the knowledge on how to achieve this? Thanks