oct_deals_seourl.ocmod.xml 5.84 KB
<?xml version="1.0" encoding="utf-8"?>
<modification>
	<code>oct_deals_seourl</code>
	<name>Octemplates - SeoUrl Generator</name>
	<version>1.0.0</version>
	<author>Octemplates</author>
	<link>https://octemplates.net/</link>
	<file path="admin/model/catalog/information.php">
    	<operation error="skip">
			<search><![CDATA[$this->db->query("INSERT INTO " . DB_PREFIX . "seo_url SET store_id = '" . (int)$store_id . "', language_id = '" . (int)$language_id . "', query = 'information_id=" . (int)$information_id . "', keyword = '" . $this->db->escape(]]></search>
			<add position="after" offset="1"><![CDATA[
			else {
				if ($this->config->get('theme_oct_deals_seo_url_status')) {
					$this->load->model('octemplates/widgets/oct_seogeneration');

					$this->model_octemplates_widgets_oct_seogeneration->seoUrlGenerator('information', (int)$language_id, (int)$store_id, $data, (int)$information_id);
				}
			}
			]]></add>
		</operation>
    	<operation error="skip">
			<search><![CDATA[$this->db->query("INSERT INTO `" . DB_PREFIX . "seo_url` SET store_id = '" . (int)$store_id . "', language_id = '" . (int)$language_id . "', query = 'information_id=" . (int)$information_id . "', keyword = '" . $this->db->escape(]]></search>
			<add position="after" offset="1"><![CDATA[
			else {
				if ($this->config->get('theme_oct_deals_seo_url_status')) {
					$this->load->model('octemplates/widgets/oct_seogeneration');

					$this->model_octemplates_widgets_oct_seogeneration->seoUrlGenerator('information', (int)$language_id, (int)$store_id, $data, (int)$information_id);
				}
			}
			]]></add>
		</operation>
	</file>
	<file path="admin/model/catalog/manufacturer.php">
		<operation error="skip">
			<search><![CDATA[$this->db->query("INSERT INTO " . DB_PREFIX . "seo_url SET store_id = '" . (int)$store_id . "', language_id = '" . (int)$language_id . "', query = 'manufacturer_id=" . (int)$manufacturer_id . "', keyword = '" . $this->db->escape(]]></search>
			<add position="after" offset="1"><![CDATA[
			else {
				if ($this->config->get('theme_oct_deals_seo_url_status')) {
					$this->load->model('octemplates/widgets/oct_seogeneration');

					$this->model_octemplates_widgets_oct_seogeneration->seoUrlGenerator('manufacturer', (int)$language_id, (int)$store_id, $data, (int)$manufacturer_id);
				}
			}
			]]></add>
		</operation>
		<operation error="skip">
			<search><![CDATA[$this->db->query("INSERT INTO `" . DB_PREFIX . "seo_url` SET store_id = '" . (int)$store_id . "', language_id = '" . (int)$language_id . "', query = 'manufacturer_id=" . (int)$manufacturer_id . "', keyword = '" . $this->db->escape(]]></search>
			<add position="after" offset="1"><![CDATA[
			else {
				if ($this->config->get('theme_oct_deals_seo_url_status')) {
					$this->load->model('octemplates/widgets/oct_seogeneration');

					$this->model_octemplates_widgets_oct_seogeneration->seoUrlGenerator('manufacturer', (int)$language_id, (int)$store_id, $data, (int)$manufacturer_id);
				}
			}
			]]></add>
		</operation>
	</file>
	<file path="admin/model/catalog/category.php">
		<operation error="skip">
			<search><![CDATA[$this->db->query("INSERT INTO " . DB_PREFIX . "seo_url SET store_id = '" . (int)$store_id . "', language_id = '" . (int)$language_id . "', query = 'category_id=" . (int)$category_id . "', keyword = '" . $this->db->escape(]]></search>
			<add position="after" offset="1"><![CDATA[
			else {
				if ($this->config->get('theme_oct_deals_seo_url_status')) {
					$this->load->model('octemplates/widgets/oct_seogeneration');

					$this->model_octemplates_widgets_oct_seogeneration->seoUrlGenerator('category', (int)$language_id, (int)$store_id, $data, (int)$category_id);
				}
			}
			]]></add>
		</operation>
	</file>
	<file path="admin/model/catalog/product.php">
		<operation error="skip">
			<search><![CDATA[$this->db->query("INSERT INTO " . DB_PREFIX . "seo_url SET store_id = '" . (int)$store_id . "', language_id = '" . (int)$language_id . "', query = 'product_id=" . (int)$product_id . "', keyword = '" . $this->db->escape(]]></search>
			<add position="after" offset="1"><![CDATA[
			else {
				if ($this->config->get('theme_oct_deals_seo_url_status')) {
					$this->load->model('octemplates/widgets/oct_seogeneration');

					$this->model_octemplates_widgets_oct_seogeneration->seoUrlGenerator('product', (int)$language_id, (int)$store_id, $data, (int)$product_id);
				}
			}
			]]></add>
		</operation>
	</file>
	<file path="admin/model/octemplates/blog/oct_blogcategory.php">
		<operation error="skip">
			<search><![CDATA[$this->db->query("INSERT INTO " . DB_PREFIX . "seo_url SET store_id = '" . (int)$store_id . "', language_id = '" . (int)$language_id . "', query = 'blogcategory_id=" . (int)$blogcategory_id . "', keyword = '" . $this->db->escape($keyword) . "'");]]></search>
			<add position="after" offset="1"><![CDATA[
			else {
				if ($this->config->get('theme_oct_deals_seo_url_status')) {
					$this->load->model('octemplates/widgets/oct_seogeneration');

					$this->model_octemplates_widgets_oct_seogeneration->seoUrlGenerator('blog_category', (int)$language_id, (int)$store_id, $data, (int)$blogcategory_id);
				}
			}
			]]></add>
		</operation>
	</file>
	<file path="admin/model/octemplates/blog/oct_blogarticle.php">
		<operation error="skip">
			<search><![CDATA[$this->db->query("INSERT INTO " . DB_PREFIX . "seo_url SET store_id = '" . (int)$store_id . "', language_id = '" . (int)$language_id . "', query = 'blogarticle_id=" . (int)$blogarticle_id . "', keyword = '" . $this->db->escape($keyword) . "'");]]></search>
			<add position="after" offset="1"><![CDATA[
			else {
				if ($this->config->get('theme_oct_deals_seo_url_status')) {
					$this->load->model('octemplates/widgets/oct_seogeneration');

					$this->model_octemplates_widgets_oct_seogeneration->seoUrlGenerator('blog_article', (int)$language_id, (int)$store_id, $data, (int)$blogarticle_id);
				}
			}
			]]></add>
		</operation>
	</file>
</modification>