Shipping address is not preserved

More
4 years 7 months ago - 4 years 7 months ago #220 by MiCHi
Shipping address is not preserved was created by MiCHi
Hello, another problem found, shipping address is not preserved and is overwritten with billing address, my fixes:

controllers\checkout.php@59
		$disableShip = easyshop('disable_shipping_address', 0);
to
		$disableShip = easyshop('config', 'disable_shipping_address', 0);

@61
		if (empty($jform['address_different']) || $disableShip)
to
		if (!isset($data["address_different"]) || $disableShip)

models\checkout.php@90
			if (empty($data['shipping_address']))
to
			if (empty($data['shipping_address']) && isset($data['address_different']))

models\checkout.php@96
				if (empty($data['address_different']))
to
				if (!isset($data['address_different']))

@98 added this line
                    $data['address_different'] = 0;
Last edit: 4 years 7 months ago by MiCHi.

Please Log in or Create an account to join the conversation.

Moderators: Rainy

wWw.joomtech.net. All rights reserved.

CONTACT US
  • This email address is being protected from spambots. You need JavaScript enabled to view it.
HIRE US to develop your store.

© 2015 - 2020 wWw.joomtech.net. All rights reserved. JoomTech.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla!® name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.