Post by smitch6 » Sat Jan 21, 2012 6:02 pm

yes i already did all this :)
i think the theme may be over-riding something
i've contacted the theme owner to see what he says

www.pattestersuffolk.co.uk


Active Member

Posts

Joined
Sat Sep 17, 2011 2:46 pm


Post by olimax » Sat Jan 21, 2012 6:09 pm

have a look in the vqmod logs. this may give you a clue

User avatar
New member

Posts

Joined
Thu Dec 22, 2011 5:08 pm
Location - Barcelona & London

Post by smitch6 » Sat Jan 21, 2012 6:27 pm

no no error logs to do with this mod :~

www.pattestersuffolk.co.uk


Active Member

Posts

Joined
Sat Sep 17, 2011 2:46 pm


Post by terrynshed » Wed Feb 01, 2012 9:25 am

Just downloaded the file in the first post, updated the paths with my theme and I am also seeing the 'null' text under the 'add to wishlist'.

I also noticed that the 'Product Compare (0)' just above the list of items in any particular category is still there.

Using OpenCart 1.5.1.3 and the latest VQmod.

Thanks.

New member

Posts

Joined
Fri Jan 20, 2012 5:35 pm

Post by twigg » Sat Feb 11, 2012 5:30 am

it works on 1.5.1.3 with custom theme; to remove "null" you need to manually delete <div> tags.

example:

this "<![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]>"

became "<![CDATA[<a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a>]]>"

Newbie

Posts

Joined
Fri Feb 10, 2012 4:33 am

Post by picobo » Sat Feb 11, 2012 7:05 am

olimax, thank you for the file.
and thank you for the heads up twigg!

I am only having one issue, that is the same one that terrynshed stated:
I noticed that the 'Product Compare (0)' just above the list of items in any particular category is still there.
How do I get rid of this one? Do I have to add another instance to the file?

I'm using OpenCart 1.5.1.3 and the latest VQmod as well.

Thanks!

Newbie

Posts

Joined
Sat Feb 11, 2012 6:59 am

Post by terrynshed » Sat Feb 11, 2012 8:18 am

Thanks twigg. Worked great.

Anyone figure out how to remove the Product Compare (0) just above the list of items.

Thanks again.

New member

Posts

Joined
Fri Jan 20, 2012 5:35 pm

Post by picobo » Sat Feb 11, 2012 8:30 am

nevermind... got it to work!

to remove the "Product Compare (0)", just add another 'operation' for that instance under:
<file name="catalog/view/theme/YOURTHEME/template/product/category.tpl"> inside the xml file.

Here's the code in case anybody needs it:

Code: Select all

        <operation>
            <search position="replace">
            	<![CDATA[<a href="<?php echo $compare; ?>" id="compare_total"><?php echo $text_compare; ?></a>]]>
            </search>
            <add>
            	<![CDATA[ ]]>
            </add>
        </operation>

Newbie

Posts

Joined
Sat Feb 11, 2012 6:59 am

Post by Xciso » Wed Feb 15, 2012 11:05 pm

This works good!
But why do you replace Wishlist with <span>wishlist?

Active Member

Posts

Joined
Fri Jul 15, 2011 5:20 am

Post by tommmied » Wed Apr 11, 2012 11:30 am

I modified the code so it will work with Opencart 1.5.2.1. Hope it helps.



Code: Select all

<modification>

    <id>Remove Wishlist and Compare Features</id>
    <version>1.5.2.1</version>
    <vqmver>2.1.6</vqmver>
    <author>bogalakon, Tom DeVito(modified)</author>

    <file name="catalog/view/theme/default/template/common/header.tpl">
        <operation>
            <search position="replace"><![CDATA[<div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>]]></search>
            <add><![CDATA[<div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/default/template/common/footer.tpl">
        <operation>
            <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/default/template/product/product.tpl">
        <operation>
            <search position="replace"><![CDATA[<span><?php echo $text_reward; ?></span> <?php echo $reward; ?><br />]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[<div><span>&nbsp;&nbsp;&nbsp;<?php echo $text_or; ?>&nbsp;&nbsp;&nbsp;</span></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[<div><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[<a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/default/template/product/category.tpl">
        <operation>
            <search position="replace"><![CDATA[<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>]]></search>
            <add><![CDATA[<div class="product-compare"></div>]]></add>
        </operation>
        <operation>
            <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>
            <search position="replace"><![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '  <div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/default/template/product/manufacturer_info.tpl">
        <operation>
            <search position="replace"><![CDATA[<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>]]></search>
            <add><![CDATA[<div class="product-compare"></div>]]></add>
        </operation>
        <operation>
            <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>
            <search position="replace"><![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '  <div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/default/template/product/special.tpl">
        <operation>
            <search position="replace"><![CDATA[<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>]]></search>
            <add><![CDATA[<div class="product-compare"></div>]]></add>
        </operation>
        <operation>
            <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>
            <search position="replace"><![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '  <div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>


    <file name="catalog/view/theme/default/template/product/search.tpl">
        <operation>
            <search position="replace"><![CDATA[<div class="product-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>]]></search>
            <add><![CDATA[<div class="product-compare"></div>]]></add>
        </operation>
        <operation>
            <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>
            <search position="replace"><![CDATA[<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '  <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '  <div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
        <operation>
            <search position="replace"><![CDATA[html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';]]></search>
            <add><![CDATA[]]></add>
        </operation>
    </file>

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

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

</modification>

<!--
<modification>  - This is the highest level of the file and there can only be one
<id>            - This is the name of the mod. Format: Free form text. (Informational)
<version>       - This is the version of the mod. Format: Number and Decimal (1.0.0) (Informational)
<author>        - This is the author of the mod. Format: Free form text (Informational)
<file>          - This is the name of the file to modify. Requires attribute "name" as relative filename (catalog/controller/product/product.php). There can be multiple
<operation>     - This is the wrapper of the actual operation occuring. There can be multiple operations to the same file.
<search>        - This is the first required step of the operation. Uses an optional attribute "position" set to before|after|replace. replace is default. One per operation. Use CDATA tags to wrap code.
<add>           - This is the second required step of the operation. Uses an optional attribute "trim" set to true|false to trim away whitespace and linebreaks. false is default. One per operation. Location of added data depends on the position of the <search> command. Use CDATA tags to wrap code.
<![CDATA[  ]]>  - These are called CDATA tags and they are used by xml to specify that the data between should not be evaluated.
-->

Attachments


Newbie

Posts

Joined
Mon Feb 13, 2012 2:08 pm

Post by ogia » Wed Apr 11, 2012 12:54 pm

Just installed on 1.5.2.1 and it works great. Thank you. (To clarify, I am using the .xml in the original post to remove 'add to compare'.)

Using OC 1.5.2.1


Newbie

Posts

Joined
Sun Apr 08, 2012 1:00 pm

Post by DaveB » Tue Apr 17, 2012 9:13 pm

tommmied wrote:I modified the code so it will work with Opencart 1.5.2.1. Hope it helps.
Excellent. Many thanks.

Newbie

Posts

Joined
Tue Dec 20, 2011 7:31 pm

Post by stevemarsbar » Sat Apr 21, 2012 11:41 pm

Just downloaded the file in the first post, updated the paths with my theme
You can get the VqMod's to work with any/all themes by changing 'Default' or 'MyTheme' etc to '*' such as:

Code: Select all

<file name="catalog/view/theme/*/template/product/category.tpl">

Please check out my OpenCart shop which is now trading!
http://www.directmuscle.co.uk


New member

Posts

Joined
Tue Apr 17, 2012 2:02 am

Post by web233 » Wed Apr 25, 2012 8:59 pm

I tried using the vqmod tommmied posted on 1.5.2.1 using a custom theme, I've updated the theme directory but get these errors, any Idea what I'm doing wrong?

Thanks


---------- Date: 2012-04-25 12:21:12 ~ IP : ***** ----------
REQUEST URI : /index.php?route=product/product&path=25_28&product_id=42
MOD DETAILS:
modFile : /home/*****/public_html/vqmod/xml/oc_remove_wishlist_compare_rewardpoint.xml
id : Remove Wishlist and Compare Features
version : 1.5.2.1
vqmver : 2.1.6
author : bogalakon, Tom DeVito(modified)
Could not resolve path for [catalog/view/theme/kinder15/template/product/manufacturer_info.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/product/search.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/account/account.tpl] (SKIPPED)
Could not resolve path for [catalog/view/theme/kinder15/template/module/account.tpl] (SKIPPED)
SEARCH NOT FOUND (ABORTING MOD): <div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a><a href="<?php echo $account; ?>"><?php echo $text_account; ?></a><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
----------------------------------------------------------------------

Newbie

Posts

Joined
Tue Feb 14, 2012 8:05 am

Post by williamjay » Mon May 28, 2012 4:49 am

Why get rid of it? Move it up onto the Header beside Wish List(o)

Attachments

ReadMe for the vQmod Add Compare Products to the Header.

vQmod to Add Product Compare to the Header


-- - thanks for the opportunity to participate in y(our) ongoing success - --


User avatar
New member

Posts

Joined
Sun Apr 29, 2012 5:41 am

Post by williamjay » Mon May 28, 2012 4:58 am

catalog/view/theme/*/etcetera/filename.xyz

- works around any Case SeNsiTive.direcTory naminGs . . . and has been in the vQmod since v2.1 . . .

Most of those things are displayed in <div>containers on the Pages and can easily be removed from display via the stylesheet.css by identifying them, (or writing a specificly targeted clause) and setting => {display:none;}

-- - thanks for the opportunity to participate in y(our) ongoing success - --


User avatar
New member

Posts

Joined
Sun Apr 29, 2012 5:41 am

Post by williamjay » Mon May 28, 2012 5:17 am

terrynshed wrote:Thanks twigg. Worked great.

Anyone figure out how to remove the Product Compare (0) just above the list of items.

Thanks again.
in your styleshhet - - - search for .product-compare
.product-compare {
display:none;
}

-- - thanks for the opportunity to participate in y(our) ongoing success - --


User avatar
New member

Posts

Joined
Sun Apr 29, 2012 5:41 am

Post by Jeremy Fisk » Wed Sep 05, 2012 12:30 pm

THe main problem is that you are not cacneling out all the required things in the tpl file... you also need to remove the javascript tat corrosponds to the compare button etc... this is there for changing from grid to list etc... it is at the bottom of the tpl file... and as you have commented out the stuff in the tpl file but the javascript is trying to change it/find it you will get a null error...

make sense?... don't be supprised if it doesn't cos i am hardly thinking what i am writing as it is 2:30 in the morning here... SIGH... lol

CHeers

Jem

If i have helped... please click here to donate

Bookstore Mod
QuickShop Module
Restricted Access - Compulsory Login
Template Override - Category Specific (vQmod)
Template Override - Brand Specific (vQmod)
How did you find out about us register question mod
Compulsory Login vQmod
Brands In Top Menu
zoom - Product Image - Auto on hover


User avatar
Active Member

Posts

Joined
Thu Nov 11, 2010 6:11 pm
Location - New Zealand (Tokomaru, Palmerston North)

Post by afridi2129 » Thu Mar 14, 2013 2:07 pm

Why to get in so much mess. simply edit in .css

Code: Select all

.icon-compare {
    display: none;
       OR
    visibility: hidden;
}
;)

Newbie

Posts

Joined
Sat May 19, 2012 2:24 pm

Post by virgojewelry » Thu Mar 28, 2013 12:34 pm

I've tried all the various options listed on this thread to successfully remove the "Add to Compare" and still got the "null" error. Would someone please list step-by-step instructions to remove the "Add to Compare" from the store. I need to know what to install, what files to edit. Please help! Thank you! :crazy:

Newbie

Posts

Joined
Fri Feb 22, 2013 10:06 am
Who is online

Users browsing this forum: No registered users and 3 guests