mishochu Developer Από United States Μέλος από Μαρ 2021 mishochu 19 Ιαν 2024 20:46 I've seen Product by Domain and Theme by Domain addons but I would love to look into how complicated a "Theme by Domain" addon would be. If the moving parts are not too numerous I would be interested in writing it myself and pushing it up as an open source addon.
tim Founder Από Sweden Μέλος από Μαΐ 2013 tim 20 Ιαν 2024 01:02 Template by domain would be quite simple. During init(), preset the store_template_catalog setting. https://github.com/litecart/litecart/blob/dev/public_html/includes/library/lib_settings.inc.php self::set('store_template_catalog', 'othertemplate.catalog'); }``` Product by domain requires a new field under edit product and it's controller ent_product.inc.php for defining what domains should return the product. Then you would have to add the condition to pages/product.inc.php, pages/search_results.inc.php and includes/functions/func_catalog.inc.php.
mishochu Developer Από United States Μέλος από Μαρ 2021 mishochu 20 Ιαν 2024 02:00 Awesome, I'll try and make it happen. I don't actually need product by domain (since I already bought it)...I was just wondering if "theme by domain" would need to touch as many sections of code.