Initial commit: custom PrestaShop 9 EduBox image

This commit is contained in:
2026-06-20 20:32:55 +00:00
commit d97a78e6b6
16 changed files with 466 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
--- a/classes/shop/ShopUrl.php 2026-06-20 19:37:00.962339755 +0000
+++ b/classes/shop/ShopUrl.php 2026-06-20 19:37:01.182205146 +0000
@@ -175,15 +175,14 @@
public static function getMainShopDomain($id_shop = null)
{
- ShopUrl::cacheMainDomainForShop($id_shop);
-
- return self::$main_domain[(int) $id_shop] ?? null;
+ // EduBox: dynamic public domain behind reverse proxy.
+ // Always use the request host instead of the domain stored in database.
+ return Tools::getHttpHost(false, false, true);
}
public static function getMainShopDomainSSL($id_shop = null)
{
- ShopUrl::cacheMainDomainForShop($id_shop);
-
- return self::$main_domain_ssl[(int) $id_shop] ?? null;
+ // EduBox: dynamic public domain behind reverse proxy.
+ return Tools::getHttpHost(false, false, true);
}
}