Theme by Domain (How difficult would it be to implement)

Developer
Από United States
Μέλος από Μαρ 2021

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

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.
Developer
Από United States
Μέλος από Μαρ 2021

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.

Εσύ
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.