I am using a theme that I bought from themeforest.net called "coolbaby";
I am trying to make some changes to a file called "_ajax_view-product.php" located at "catalog/view/theme".
But the changes are not being reflected. In vqmod cache folder there is no instance of this file created, neither there is any error log created. I wonder what is it that is blocking this file edits;
I tried to get support from the theme developer but unfortunately they doesn't want to help with this issue. They keep saying xml is wrong. I see nothing wrong with the xml. Other mods (even from theme template) work absolutely fine.
Below is the content of xml file for reference;
Any help is appreciated. Thanks in advance.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Custom Edits</id>
<version>1.0</version>
<vqmver>2.X</vqmver>
<author>Pratik Shah, Corel Insight</author>
<file name="catalog/view/theme/*/template/product/product.tpl" error="log">
<operation>
<search position="replace"><![CDATA[
<?php $class = 'col-sm-4'; ?>
]]></search>
<add trim="true"><![CDATA[
<?php $class = 'col-sm-8'; ?>
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
<?php if ($points) { ?>
]]></search>
<add trim="true"><![CDATA[
<span class="price-tax">Price inclusive of all taxes.</span><br />
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
<?php if ($discounts) { ?>
]]></search>
<add trim="true"><![CDATA[
<br />
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
<button class="btn btn-cool btn-lg" type="submit" id="button-cart" data-loading-text="<?php echo $text_loading; ?>"><i class="icon flaticon-shopping66"></i><?php echo $button_cart; ?></button>
]]></search>
<add trim="true"><![CDATA[
<button class="btn btn-cool btn-lg" type="submit" id="button-cart" data-loading-text="<?php echo $text_loading; ?>"><?php echo $button_cart; ?></button>
]]></add>
</operation>
<operation>
<search position="after"><![CDATA[
<?php echo $discount['quantity']; ?><?php echo $text_discount; ?><?php echo $discount['price']; ?>
]]></search>
<add trim="true"><![CDATA[
<br />
]]></add>
</operation>
</file>
<file name="catalog/view/theme/_ajax_view-product.php" error="log">
<operation>
<search position="before"><![CDATA[
product-view-compact
]]></search>
<add trim="true"><![CDATA[
<!-- Go to www.addthis.com/dashboard to customize your tools --><script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5612b9748f80f9a5" async="async"></script>
]]></add>
</operation>
<operation>
<search position="after"><![CDATA[
if (isset($_GET['stock'])){$stock = $_GET['stock'];}
]]></search>
<add trim="true"><![CDATA[
if (isset($_GET['text_stock'])){$text_stock = $_GET['text_stock'];} else {$text_stock = 'Availability:';}
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
<p><span><strong><?php echo $stock; ?></strong></span> <span><?php echo $text_tax.$product_tax; ?></span></p>
]]></search>
<add trim="true"><![CDATA[
<br /><span class="price-tax">Price inclusive of all taxes.</span><br /><p><?php echo $text_stock; ?> <strong><?php echo $stock; ?></strong></p>
]]></add>
</operation>
<operation>
<search position="replace"><![CDATA[
<i class="icon flaticon-shopping66"></i><?php echo $view_details; ?>
]]></search>
<add trim="true"><![CDATA[
<?php echo $view_details; ?>
]]></add>
</operation>
</file>
</modification>