Post by toad78 » Wed Oct 14, 2015 3:51 am

Any reason why after upgrading to Opencart 1.5.5.1 that this vQmod file won't hide the 'Add to WishList' anymore?

Code: Select all

<modification>
    <id>Removes Wishlist</id>
    <version>1.0.1</version>
    <vqmver>1.0.0</vqmver>
    <author>miwisoft.com</author>

	<file name="catalog/view/theme/*/template/common/header.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a>]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/*/template/common/footer.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/*/template/product/product.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<div><span>&nbsp;&nbsp;&nbsp;<?php echo $text_or; ?>&nbsp;&nbsp;&nbsp;</span></div>]]></search>
            <add><![CDATA[<div class="wishlist" style="display:none"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[<a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/*/template/product/category.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
            <add><![CDATA[<div class="wishlist" style="display:none"></div>]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/*/template/product/manufacturer_info.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/*/template/product/special.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>
   
	<file name="catalog/view/theme/*/template/product/latest.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/*/template/product/search.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<div class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation error="skip">
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

	<file name="catalog/view/theme/*/template/account/account.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/*/template/module/account.tpl">
        <operation error="skip">
            <search position="replace"><![CDATA[<li><a href="<?php echo $wishlist; ?>"><?php echo $text_wishlist; ?></a></li>]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>
</modification>

New member

Posts

Joined
Sun Dec 08, 2013 8:30 am

Post by uksitebuilder » Wed Oct 14, 2015 4:16 am

Is vqmod installed now that you have upgraded and supposedly overwritten the index.php and admin/index.php files ?

Try running yourdomain.com/vqmod/install

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by toad78 » Wed Oct 14, 2015 5:01 am

This is not a fresh install. It was a self-running upgrade that allowed me to upgrade the OpenCart version I have.

New member

Posts

Joined
Sun Dec 08, 2013 8:30 am

Post by uksitebuilder » Wed Oct 14, 2015 5:10 am

When you upgrade, you overwrite the old version's index.php and admin/index.php therefore vqmod no longer functions until it's install is reun again.

vQmod's install simply adds it's code to both index.php files

Maybe you already did that though.

In which case you problem may be elsewhere such as different code I nthe template file that vqmod can no longer search (find) for

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 2 guests