Sign in to follow this  
support

Как поменять выбранный по умолчанию регион на странице оформления заказа?!

Recommended Posts

support

По умолчанию в списке регионов выбрана Москва.

Что б поставить, к примеру, Киевскую область.

			if(!isset ($params['country']))
				$params['country'] = ($_SESSION['Customer']['language'] == 'ru') ? 176 : 223;

			if(!isset($params['selected']) or !is_numeric($params['selected']))
				$params['selected'] = ($_SESSION['Customer']['language'] == 'ru') ? 99 : 332;

В /app/Catalog/function.state_list.php меняйте:

на:

			if(!isset ($params['country']))
				$params['country'] = ($_SESSION['Customer']['language'] == 'ru') ? 220 : 223;

			if(!isset($params['selected']) or !is_numeric($params['selected']))
				$params['selected'] = ($_SESSION['Customer']['language'] == 'ru') ? 128 : 332;

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this