s22_tech Moderator Alates United States Liige alates okt 2019 s22_tech 19 jaan 2021 16:02 I'm trying to change the format for the shipping address, but I can find it. I see this line in /includes/references/ref_country.inc.php $output = strtr($this->address_format ? $this->address_format : settings::get('default_address_format'), $address); but there isn't a 'default_address_format' key in settings. Where can the format be changed?
s22_tech Moderator Alates United States Liige alates okt 2019 s22_tech 19 jaan 2021 16:09 I found it. It's under the Countries admin section. However, is settings::get('default_address_format') left over from an older version?
tim Founder Alates Sweden Liige alates mai 2013 tim 20 jaan 2021 22:07 Yes, very old version in fact. Thanks for reporting it. :) https://github.com/litecart/litecart/commit/c22efd0704ee94edd14c2144525e5a8c1106930b To turn the address into html. Use nl2br().
s22_tech Moderator Alates United States Liige alates okt 2019 s22_tech 20 jaan 2021 23:07 It's now returning: Warning: preg_replace(): Unknown modifier '+' in ~/includes/references/ref_country.inc.php (Line 103) Perhaps you meant: $output = preg_replace("/(\r\n?|\n)+/", "\r\n", $output);
tim Founder Alates Sweden Liige alates mai 2013 tim 21 jaan 2021 15:46 Oh crap I forgot the wrappers. What would I do without you? 😄