bsm Posted July 30, 2014 Share Posted July 30, 2014 (edited) Can't find solution… help please, presta 1.5.6.2 multistore 4 languages ( 8 domains) email to customers: - order confirmation - correct links in all 4 languages - bank transfer details - correct links in all 4 languages - order shipped - wrong links in all 4 languages - preparation in progress - wrong links in all 4 languages - shipping number added - wrong links and no shipping number in email all translations correct, only links to wrong sites I thought the problem can be with main shop domain, but the main domain is in spanish, but the link from this main spanish shop looks like www.xxx.es/my-account - english is not the main domain language…. can't figure it out help please Edited July 30, 2014 by bsm (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 31, 2014 Share Posted July 31, 2014 review this forge report, marked as fixed to see if helps resolve your issue http://forge.prestashop.com/browse/PSCFV-8179 Link to comment Share on other sites More sharing options...
bsm Posted July 31, 2014 Author Share Posted July 31, 2014 Just checked, all looks correct, only my classes/shop/ShopUrl.php looks a little different but I'm not sure what to change. Can you take a look? (attached) ShopUrl.php Link to comment Share on other sites More sharing options...
El Patron Posted July 31, 2014 Share Posted July 31, 2014 applying fix as described by forge is best answer, please back up any files before replacing with forge fix. Link to comment Share on other sites More sharing options...
bsm Posted July 31, 2014 Author Share Posted July 31, 2014 my file looks different, thats why I can't just simple change as described in forge... Link to comment Share on other sites More sharing options...
El Patron Posted July 31, 2014 Share Posted July 31, 2014 my file looks different, thats why I can't just simple change as described in forge... could you just replace your backed up file with raw from forge? or do you have custom changes? Link to comment Share on other sites More sharing options...
bsm Posted July 31, 2014 Author Share Posted July 31, 2014 I'm trying to correct my file, but for example in my file it looks: (and row counts is different as well) public static function getMainShopDomain($id_shop = null) { ShopUrl::cacheMainDomainForShop($id_shop); return self::$main_domain[(int)$id_shop]; so how to correct with forge: - public static function getMainShopDomain() + public static function getMainShopDomain($id_shop = null) { - if (!self::$main_domain) + if (!self::$main_domain || $id_shop !== null) self::$main_domain = Db::getInstance()->getValue('SELECT domain Link to comment Share on other sites More sharing options...
El Patron Posted July 31, 2014 Share Posted July 31, 2014 get raw file, copy that from forge, and paste into old file (backed up of course)... I would not attempt to replace/change/delete lines in original file...that will drive our crazy Link to comment Share on other sites More sharing options...
Recommended Posts