<?xml version="1.0" encoding="utf-8"?>
<modification>
	<name>AJAX-ZOOM</name>
	<code>ajaxzoom</code>
	<version>3.0</version>
	<author>AJAX-ZOOM</author>
	<link><![CDATA[http://www.ajax-zoom.com/index.php?cid=modules&module=opencart]]></link>

	<file path="catalog/view/theme/*/template/product/product.tpl">
		<operation>
			<search index="0"><![CDATA[$images]]></search>
			<add position="before"><![CDATA[
				<?php echo $ajaxzoom; ?>
				]]></add>
		</operation>
	</file>
	<file path="catalog/controller/product/product.php">
		<operation>
			<search><![CDATA[$this->load->language('product/product');]]></search>
			<add position="after"><![CDATA[
		$this->load->model('module/ajaxzoom');
		$data['ajaxzoom'] = $this->model_module_ajaxzoom->hookProduct($this->request->get['product_id']);
				]]></add>
		</operation>
	</file>
	<file path="catalog/controller/common/header.php">
		<operation>
			<search><![CDATA[public function index() {]]></search>
			<add position="after"><![CDATA[
		$this->load->model('module/ajaxzoom');
		$data['ajaxzoom'] = $this->model_module_ajaxzoom->hookHeader();
				]]></add>
		</operation>
	</file>
	<file path="admin/controller/common/menu.php">
		<operation>
			<search><![CDATA[
		$data['analytics']
			]]></search>
			<add position="before"><![CDATA[
		$data['ajaxzoom'] = $this->url->link('module/ajaxzoom/products', 'token=' . $this->session->data['token'], 'SSL');	
				]]></add>
		</operation>
	</file>
	<file path="admin/view/template/common/menu.tpl">
		<operation>
			<search><![CDATA[
      <li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>
			]]></search>
			<add position="before"><![CDATA[
      <li><a href="<?php echo $ajaxzoom; ?>">AJAX-ZOOM</a></li>
				]]></add>
		</operation>
	</file>
	<file path="admin/view/template/catalog/product_form.tpl">
		<operation>
			<search><![CDATA[<div class="tab-pane" id="tab-reward">]]></search>
			<add position="before"><![CDATA[
            <div class="tab-pane" id="tab-ajaxzoom">
              <div class="table-responsive">
                <iframe id="iframe_ajaxzoom" width="100%" height="100%" border="0" src="<?php echo $url_ajaxzoom ?>" style="border: 0 none !important; width: 100%; min-height:800px;"></iframe>
              </div>
            </div>
				]]></add>
		</operation>

		<operation>
			<search><![CDATA[<li><a href="#tab-reward" data-toggle="tab"><?php echo $tab_reward; ?></a></li>]]></search>
			<add position="before"><![CDATA[
            <li><a href="#tab-ajaxzoom" data-toggle="tab">AJAX-ZOOM</a></li>
				]]></add>
		</operation>
	</file>
	<file path="admin/controller/catalog/product.php">
		<operation>
			<search><![CDATA[protected function getForm() {]]></search>
			<add position="after"><![CDATA[
		$data['url_ajaxzoom'] = $this->url->link('module/ajaxzoom/product', 'token=' . $this->session->data['token'] . '&product_id=' . $this->request->get['product_id'] . '&iframe=1', 'SSL');
				]]></add>
		</operation>
	</file>	
</modification> 