<?xml version="1.0" encoding="utf-8"?>
<modification>
    <code>plaza_theme_custom</code>
    <name>Plaza Theme Custom</name>
    <version>1.0</version>
    <author>Plazathemes</author>
	<!-- Add position in header -->
	<file path="catalog/controller/common/header.php">
		<operation>
			<search><![CDATA[$data['menu'] = $this->load->controller('common/menu');]]></search>
			<add position="after"><![CDATA[
				// Plaza Module Postion
					$data['position1'] = $this->load->controller('common/position1');
					$data['position2'] = $this->load->controller('common/position2');
					$data['position3'] = $this->load->controller('common/position3');
					$data['position4'] = $this->load->controller('common/position4');
					$data['position5'] = $this->load->controller('common/position5');
					$data['position6'] = $this->load->controller('common/position6');
					$data['position7'] = $this->load->controller('common/position7');
					$data['position8'] = $this->load->controller('common/position8');
					$data['position9'] = $this->load->controller('common/position9');
					$data['position10'] = $this->load->controller('common/position10');
				// End Plaza Module Postion
			]]></add>
		</operation>
	</file>
	<!-- Add position in footer -->
	<file path="catalog/controller/common/footer.php">
		<operation>
			<search><![CDATA[$data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), date('Y', time()));]]></search>
			<add position="after"><![CDATA[
				// Plaza Module Postion
					$data['position1'] = $this->load->controller('common/position1');
					$data['position2'] = $this->load->controller('common/position2');
					$data['position3'] = $this->load->controller('common/position3');
					$data['position4'] = $this->load->controller('common/position4');
					$data['position5'] = $this->load->controller('common/position5');
					$data['position6'] = $this->load->controller('common/position6');
					$data['position7'] = $this->load->controller('common/position7');
					$data['position8'] = $this->load->controller('common/position8');
					$data['position9'] = $this->load->controller('common/position9');
					$data['position10'] = $this->load->controller('common/position10');
				// End Plaza Module Postion
			]]></add>
		</operation>
	</file>
	<!-- Add class page in body tag -->
	<file path="catalog/controller/common/header.php">
		<operation>
			<search><![CDATA[$data['menu'] = $this->load->controller('common/menu');]]></search>
			<add position="after"><![CDATA[
				// Add class page in body tag
				if (isset($this->request->get['route'])) {
					if (isset($this->request->get['product_id'])) {
						$class = '-' . $this->request->get['product_id'];
					} elseif (isset($this->request->get['path'])) {
						$class = '-' . $this->request->get['path'];
					} elseif (isset($this->request->get['manufacturer_id'])) {
						$class = '-' . $this->request->get['manufacturer_id'];
					} elseif (isset($this->request->get['information_id'])) {
						$class = '-' . $this->request->get['information_id'];
					} else {
						$class = '';
					}

					$data['class'] = str_replace('/', '-', $this->request->get['route']);
				} else {
					$data['class'] = 'common-home';
				}
				// End Add class page in body tag
			]]></add>
		</operation>
	</file>
	<!-- Remove link swipe js,cs in carousel module default -->
	<file path="catalog/controller/extension/module/carousel.php">
		<operation>
			<search><![CDATA[$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/swiper.min.css');]]></search>
			<add position="replace"><![CDATA[
				//$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/swiper.min.css');
			]]></add>
		</operation>
		<operation>
			<search><![CDATA[$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/opencart.css');]]></search>
			<add position="replace"><![CDATA[
				//$this->document->addStyle('catalog/view/javascript/jquery/swiper/css/opencart.css');
			]]></add>
		</operation>
		<operation>
			<search><![CDATA[$this->document->addScript('catalog/view/javascript/jquery/swiper/js/swiper.jquery.js');]]></search>
			<add position="replace"><![CDATA[
				//$this->document->addScript('catalog/view/javascript/jquery/swiper/js/swiper.jquery.js');
			]]></add>
		</operation>
	</file>
	<!-- Add span tag in category module default -->
	<file path="catalog/controller/extension/module/category.php">
        <operation>
            <search><![CDATA['name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''),]]></search>
            <add position="replace">
                <![CDATA[
                    'name' => $child['name'] . ($this->config->get('config_product_count') ? ' <span>' . $this->model_catalog_product->getTotalProducts($filter_data) . '</span>' : ''),
                ]]>
            </add>
        </operation>
		<operation>
            <search><![CDATA['name'        => $category['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''),]]></search>
            <add position="replace">
                <![CDATA[
                    'name'        => $category['name'] . ($this->config->get('config_product_count') ? ' <span>' . $this->model_catalog_product->getTotalProducts($filter_data) . '</span>' : ''),
                ]]>
            </add>
        </operation>
    </file>
	<!-- Add manufacturer to category,manufacturer,search,special -->
	<file path="catalog/controller/product/{category,manufacturer,search,special}*.php">
		<operation>
			<search><![CDATA[$result['rating'],]]></search>
			<add position="after"><![CDATA[
				// Add manufacturer
					'manufacturer' => $result['manufacturer'],
					'manufacturer_href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $result['manufacturer_id']),
				// End Add manufacturer
			]]></add>
		</operation>
	</file>
	
	<!-- Add text_stock to category,manufacturer,search,special -->
	<file path="catalog/controller/product/{category,manufacturer,search,special}*.php">
		<operation>
			<search><![CDATA[$data['products'][] = array(]]></search>
			<add position="before"><![CDATA[
				if ($result['quantity'] <= 0) {
					$stock = $result['stock_status'];
				} elseif ($this->config->get('config_stock_display')) {
					$stock = $result['quantity'];
				} else {
					$stock = $this->language->get('text_instock');
				}
			]]></add>
		</operation>
		<operation>
            <search><![CDATA[$data['products'][] = array(]]></search>
            <add position="after"><![CDATA[
					'stock'		=> $stock,
					'quantity'      => (int) $result['quantity'],
            ]]></add>
        </operation>
	</file>
	
	<file path="catalog/controller/product/product.php">
		<!-- Add manufacturer to related product -->
		<operation>
			<search><![CDATA[$rating,]]></search>
			<add position="after"><![CDATA[
				// Add manufacturer to related product
					'manufacturer' => $result['manufacturer'],
					'manufacturer_href' => $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $result['manufacturer_id']),
				// End Add manufacturer to related product
			]]></add>
		</operation>
		<!-- Add positon to product page -->
		<operation>
			<search><![CDATA[$data['breadcrumbs'] = array();]]></search>
			<add position="after"><![CDATA[
				$data['position10'] = $this->load->controller('common/position10');
			]]></add>
		</operation>
	</file>
	
	<!-- Add rate_special in category -->
	<file path="catalog/controller/product/category.php">
        <operation>
            <search><![CDATA[$special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']);]]></search>
            <add position="after">
                <![CDATA[
                    $rate_special = round(($result['price'] - $result['special']) / $result['price'] * 100);
                ]]>
            </add>
        </operation>
		<operation>
            <search><![CDATA[$special = false;]]></search>
            <add position="after">
                <![CDATA[
                    $rate_special = false;
                ]]>
            </add>
        </operation>
		<operation>
            <search><![CDATA[$data['products'][] = array(]]></search>
            <add position="after">
                <![CDATA[
                    'rate_special'      => $rate_special,
                ]]>
            </add>
        </operation>	
    </file>
	
	<!-- Fix text headding,empty -->
	<file path="catalog/controller/account/{account,address,affiliate,download,edit,forgotten,login,logout,newsletter,order,password,recurring,register,reset,return,reward,success,tracking,transaction,voucher,wishlist}*.php">
	  <operation>
	   <search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
	   <add position="after"><![CDATA[
		$data['heading_title'] = $this->language->get('heading_title');
	   ]]></add>
	  </operation>
	 </file>
	 
	 <file path="catalog/controller/affiliate/{login,register,success,}*.php">
	  <operation>
	   <search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
	   <add position="after"><![CDATA[
		$data['heading_title'] = $this->language->get('heading_title');
	   ]]></add>
	  </operation>
	 </file>
	 
	 <file path="catalog/controller/checkout/{cart,checkout,failure,success}*.php">
	  <operation>
	   <search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
	   <add position="after"><![CDATA[
		$data['heading_title'] = $this->language->get('heading_title');
	   ]]></add>
	  </operation>
	 </file>
	 
	 <file path="catalog/controller/product/{compare,manufacturer,search,special}*.php">
	  <operation>
	   <search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
	   <add position="after"><![CDATA[
		$data['heading_title'] = $this->language->get('heading_title');
	   ]]></add>
	  </operation>
	 </file>
	 
	 <file path="catalog/controller/{common,error}/{maintenance,not_found}*.php">
	  <operation>
	   <search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
	   <add position="after"><![CDATA[
		$data['heading_title'] = $this->language->get('heading_title');
	   ]]></add>
	  </operation>
	 </file>
	 
	 <file path="catalog/controller/extension/{credit_card,payment}/{sagepay_direct,sagepay_server,squareup,amazon_login_pay,klarna_checkout,wechat_pay}*.php">
	  <operation>
	   <search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
	   <add position="after"><![CDATA[
		$data['heading_title'] = $this->language->get('heading_title');
	   ]]></add>
	  </operation>
	</file>
	<file path="catalog/controller/information/{sitemap,contact}*.php">
	  <operation>
	   <search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
	   <add position="after"><![CDATA[
		$data['heading_title'] = $this->language->get('heading_title');
	   ]]></add>
	  </operation>
	 </file>
	 <file path="catalog/controller/account/{address,download,order,recurring,return,reward,transaction,wishlist}*.php">
		<operation>
			<search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
			<add position="after"><![CDATA[
				$data['text_empty'] = $this->language->get('text_empty');
			]]></add>
		</operation>
	</file>
	<file path="catalog/controller/checkout/cart.php">
		<operation>
			<search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
			<add position="after"><![CDATA[
				$data['text_empty'] = $this->language->get('text_empty');
			]]></add>
		</operation>
	</file>
	<file path="catalog/controller/common/cart.php">
		<operation>
			<search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
			<add position="after"><![CDATA[
				$data['text_empty'] = $this->language->get('text_empty');
			]]></add>
		</operation>
	</file>
	<file path="catalog/controller/extension/credit_card/{sagepay_direct,sagepay_server}*.php">
		<operation>
			<search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
			<add position="after"><![CDATA[
				$data['text_empty'] = $this->language->get('text_empty');
			]]></add>
		</operation>
	</file>
	
	<file path="catalog/controller/product/{category,search}*.php">
		<operation>
			<search><![CDATA[$data['breadcrumbs'] = array();]]></search>
			<add position="before"><![CDATA[
				$data['text_empty'] = $this->language->get('text_empty');
			]]></add>
		</operation>
	</file>
	
	<file path="catalog/controller/product/{compare,manufacturer,special}*.php">
		<operation>
			<search><![CDATA[$this->document->setTitle($this->language->get('heading_title'));]]></search>
			<add position="after"><![CDATA[
				$data['text_empty'] = $this->language->get('text_empty');
			]]></add>
		</operation>
	</file>
	<file path="catalog/controller/account/voucher.php">
		<operation>
			<search><![CDATA[$this->load->language('account/voucher');]]></search>
			<add position="after"><![CDATA[
				$data['text_agree'] = $this->language->get('text_agree');
			]]></add>
		</operation>
	</file>
	<file path="admin/controller/design/layout.php">
		<operation>
			<search><![CDATA[$this->load->language('design/layout');]]></search>
			<add position="after"><![CDATA[
				$data['heading_title'] = $this->language->get('heading_title');
			]]></add>
		</operation>
		<operation>
			<search><![CDATA[protected function getForm() {]]></search>
			<add position="after"><![CDATA[
				$this->load->language('design/layout');
				$data['heading_title'] = $this->language->get('heading_title');
			]]></add>
		</operation>
		
	</file>
</modification>