s22_tech Moderator Fra United States Medlem siden okt. 2019 s22_tech jan. 19 2021 04:02 p.m. 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 Fra United States Medlem siden okt. 2019 s22_tech jan. 19 2021 04:09 p.m. 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 Fra Sweden Medlem siden mai 2013 tim jan. 20 2021 10:07 p.m. 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 Fra United States Medlem siden okt. 2019 s22_tech jan. 20 2021 11:07 p.m. 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 Fra Sweden Medlem siden mai 2013 tim jan. 21 2021 03:46 p.m. Oh crap I forgot the wrappers. What would I do without you? 😄