<?php
/**
 * @package	HikaShop
 * @version	6.4.0
 * @author	hikashop.com
 * @copyright	(C) 2010-2026 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or defined('ABSPATH') or die('Restricted access');
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
?>				<span id="result" >
					<?php echo @$this->element->zone_id.' '.@$this->element->zone_name_english;
					$type = hikaInput::get()->getCmd('type');
					$subtype = hikaInput::get()->getCmd('subtype');
					if($type=='discount'){
					?>
						<input type="hidden" name="data[discount][discount_zone_id]" value="<?php echo @$this->element->zone_id; ?>" />
					<?php
					}elseif($type=='tax'){
					?>
						<input type="hidden" name="data[taxation][zone_namekey]" value="<?php echo @$this->element->zone_namekey; ?>" />
					<?php
					}elseif($type=='config'){
					?>
						<input type="hidden" name="config[main_tax_zone]" value="<?php echo @$this->element->zone_id; ?>" />
					<?php
					}elseif(!empty($subtype)){
						$map = hikaInput::get()->getVar('map',$subtype);
						$column = hikaInput::get()->getVar('column','zone_namekey');
						if(empty($column)) $column = 'zone_namekey';
					?>
						<input type="hidden" name="<?php echo $map;?>" value="<?php echo @$this->element->$column; ?>" />
					<?php
					}else{
					?>
						<input type="hidden" name="data[<?php echo $type;?>][<?php echo $type;?>_zone_namekey]" value="<?php echo @$this->element->zone_namekey; ?>" />
					<?php
					}
					?>
				</span>
