s22_tech Moderator থেকে United States অক্টো 2019 থেকে সদস্য s22_tech 19 জানু 2021 04:02 PM 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 থেকে United States অক্টো 2019 থেকে সদস্য s22_tech 19 জানু 2021 04:09 PM 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 থেকে Sweden মে 2013 থেকে সদস্য tim 20 জানু 2021 10:07 PM 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 থেকে United States অক্টো 2019 থেকে সদস্য s22_tech 20 জানু 2021 11:07 PM 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 থেকে Sweden মে 2013 থেকে সদস্য tim 21 জানু 2021 03:46 PM Oh crap I forgot the wrappers. What would I do without you? 😄