I have found several topics about how to remove "compare products" link, however
I would like to add it somewhere at the top, lets say between "my account" and "Shopping cart"
so customer has an easy access to comparison list.
I have seen a topic for Open Cart 1.5.x. Unfortunately it does not work for OC 2.0
Forgot to mention, that I use default OpenCart 2.0.1.1 theme
Any advices please?
Code: Select all
<li><a href="<?php echo $wishlist; ?>" id="wishlist-total" title="<?php echo $text_wishlist; ?>"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_wishlist; ?></span></a></li>
Code: Select all
<li><a href="<?php global $url; echo $url->link('product/compare'); ?>" title="Compare Product"><i class="fa fa-exchange"></i> <span class="hidden-xs hidden-sm hidden-md">Compare Product</span></a></li>
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
However it appears in English only, so it is not translated
in other languages.
Any ideas?
Hi,s.freimanis wrote:Thanks for advice, working now
However it appears in English only, so it is not translated
in other languages.
Any ideas?
Is your store multilingual or just one language?
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
viethemes wrote:Hi,s.freimanis wrote:Thanks for advice, working now
However it appears in English only, so it is not translated
in other languages.
Any ideas?
Is your store multilingual or just one language?
It is multilingual site. Sorry, I did not mention it before.
It contains three languages.
Code: Select all
<li><a href="<?php global $url; echo $url->link('product/compare'); ?>" title="<?php global $language; echo $language->get('text_product_compare'); ?>"><i class="fa fa-exchange"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $language->get('text_product_compare'); ?></span></a></li>
Code: Select all
$_['text_product_compare'] = 'Compare Products';
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
In my case the main problem was, that after placing code, you need to go in admin panel of OpenCart -> Modifications and press on "Refresh"
Also the code provided <<< $_['text_product_compare'] = 'Compare Products'; >>> must be inserted at the end without
spaces before.
..................
$_['error_upload_7'] = 'Warning: Failed to write file to disk!';
$_['error_upload_8'] = 'Warning: File upload stopped by extension!';
$_['error_upload_999'] = 'Warning: No error code available!';
$_['text_product_compare'] = 'Compare Products';
Users browsing this forum: No registered users and 99 guests