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? 😄