How to edit the words "My Compare" in the menu?

Hello!
Can someone tell me how to edit the words "My Compare" in the menu (upper right side corner).
Attachment 29101
And how to edit the words "add to wishlist" and "add to compare"?
Attachment 29102
Thanks!

8 answers

Profile photo of tomc 0.00 $tone July 30, 2013
Public

You can change "add to wishlist" it in the translate file located in:
app/design/frontend/default/yourtheme/locale/en_US/translate.csv

You should be able to do the same for "add to compare." If not, you can also try the following:

Edit the .phtml file that inserts the link into the product view. By modifying the block of code that inserts the link, you can easily remove it from the product listing.

It should be within the file path --> /YOUR_TEMPLATE/catalog/product/view/addto.phtml

Code:

<?php if($_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product) ): ?>
<a href="<?php echo $_compareUrl ?>"><?php echo $this->__('add to compare') ?></a>
<?php endif; ?>

edit ‘add to compare’ to whatever you want it to say.

#1
Profile photo of tomc 0.00 $tone August 1, 2013
Public

Sorry Tom
The files you mention do not exist or the location of files is not correct.
The theme JM WALL do not have any LOCALE files…

So you’re saying there is no file path as such? --> /catalog/product/view/addto.phtml

#3
Profile photo of GEORGE KOO 0.00 $tone August 14, 2013
Public

Hello again.

I finally found the directory /catalog/product/view/addto.phtml however after i edited "add to my compare" and "add to whishlist" the change didnt show in the site.

Yes, i flushed all the caches, re-indexed everything, used other machines, other browsers, etc and still didnt work.

Attachment 29411

Any idea why is not working?
Thanks

#4
Profile photo of GEORGE KOO 0.00 $tone August 14, 2013
Public

SHERLOCK HOLMES please tell me how to edit or remove the link MY COMPARE, that is located in the right side of the menu.
(First image attached at the beginning of this threat).

Waiting your soon reply.
Thanks

#5
Profile photo of Sherlock 0.00 $tone August 16, 2013
Public

Hi mate,

you can open the file of joomlart\productcompare\sidebar.phtml there you would find the My Compare text to remove or edit as you wished.

#6
Profile photo of Susan Proctor 0.00 $tone October 17, 2013
Public

Hello, Sherlock,

Well, I also need to remove "My Compare" menu item from the top menu, so I have been reading this thread, but I think in your response above, you have mistaken the My Compare box that appears on the sidebar, with the My Compare menu item which is the question! Isn’t that so?

#7
Profile photo of Eddy Ricardo Santos 340.00 $tone November 29, 2013
Public

Hey friends!!

I did following steps and work ok:

  1. Open /app/locale/en_US/Mage_Checkout.csv
  2. Add line
    Code:

    "My Compared","My Compared"
  3. In my Case do same in /app/locale/es_CL/Mage_Checkout.csv for translation. You can go to next step is not apply
    Add line
    Code:

    "My Compared","Comparaciones"
  4. Open /app/design/frontend/default/jm_wall/template/joomlart/productcompare/sidebar.phtml
  5. Find
    Code:

    <a title="My Compare" href="#" onclick="popWin('<?php echo $_helper->getListUrl() ?>','compare','top:0,left:0,width=820,height=600,resizable=yes,scrollbars=yes')" >My Compare
  6. Replace "My Compared" by <?php echo $this->__(‘My Compared’) ?>
    …. as show :

    Code:

    <a title="<?php echo $this->__('My Compared') ?>" href="#" onclick="popWin('<?php echo $_helper->getListUrl() ?>','compare','top:0,left:0,width=820,height=600,resizable=yes,scrollbars=yes')" ><?php echo $this->__('My Compared') ?>
  7. See my Result in picture: Attachment 31770

Click Thanks if my post is helpful

#8

This question is now closed

Written By

Comments