Page 1 of 2
How to edit footer links for opencart 3.0
Posted: Mon Jul 24, 2017 1:55 pm
by alan.pung@gmail.com
What i know:
1. Design/Theme Editor/Common/foot.twig
2. <p>{{ powered }}</p> : delete or adding prefix or suffix to make it hidden
What i want to know:
How to edit it (for ex: powered by company name)
Re: How to edit footer links for opencart 3.0
Posted: Mon Jul 24, 2017 7:46 pm
by kestas
Hi
it is very simple like in oldest version...
in /catalog/language/en-gb/common/footer.php
finde 17string.
Code: Select all
$_['text_powered'] = 'Powered By <a href="http://www.opencart.com">OpenCart</a><br /> %s © %s';
replase to your desired
Code: Select all
$_['text_powered'] = 'Powered By <a href="http://www.your_company.com">Your Company</a><br /> %s © %s';
Re: How to edit footer links for opencart 3.0
Posted: Tue Jul 25, 2017 2:41 pm
by viethemes
You may like my extension
Live Theme Editor to customize copyright text. No need to know about code.
Re: How to edit footer links for opencart 3.0
Posted: Sun Jan 07, 2018 8:24 am
by accessbit
Please follow the STEP for the opencart version 3.0 and beyond:
// FOLLOWING CODE for the Footer on GizmoVela.com for OpenCart //
// Go to the FileZila path /public_html/catalog/language/en-gb/common
and Retrieve the "footer.php" file, use your plain notepad, save it with .php extention after modification. When you retrieve the fotter php file you will see follwoing file. Modify according to the following steps only. //
<?php
// Text
$_['text_information'] = 'Information';
$_['text_service'] = 'Customer Service';
$_['text_extra'] = 'Extras';
$_['text_contact'] = 'Contact Us';
$_['text_return'] = 'Returns';
$_['text_sitemap'] = 'Site Map';
$_['text_manufacturer'] = 'Brands';
$_['text_voucher'] = 'Gift Certificates';
$_['text_affiliate'] = 'Affiliate';
$_['text_special'] = 'Specials';
$_['text_account'] = 'My Account';
$_['text_order'] = 'Order History';
$_['text_wishlist'] = 'Wish List';
$_['text_newsletter'] = 'Newsletter';
$_['text_powered'] = '<p style="text-align: center;text-decoration: none; color: #ffffff;">Copyright 2016 - 2018 ...........com and ___________, Inc. || __________.com || All Rights Reserved. <br>All 3rd party companies and logos are trademarks of their respective companies. <br>Website designed By <a href="somecompany" target="_blank">AccessBit.com</a> and hosted By <a href="somecompany" target="_blank">HostBit.com</a></p><br/>';
Re: How to edit footer links for opencart 3.0
Posted: Tue Feb 20, 2018 8:11 am
by randy896
For other Newbies:
It took me a while to figure out that I needed to go into the directories on my FTP application. This is not done on the Dashboard.
Once I figured this out, I was able to easily find the file, make a Duplicate copy of it (I just added .save at the end of the duplicate file name), and make the changes. It was very simple.
Open Cart is AWESOME!
Re: How to edit footer links for opencart 3.0
Posted: Sun Feb 25, 2018 3:54 am
by Wid
it is not a good practice to make changes to core files,
you have to use ocmod
https://github.com/opencart/opencart/wi ... ion-System,
so as to make a modification, when ever you update the version of opencart, your change still will be there only by refreshing your modification via the admins menu
Re: How to edit footer links for opencart 3.0
Posted: Thu Jul 19, 2018 7:38 am
by FrankM
I was successfully edit part of my footer with this. But I would like to move the 'Returns and Refunds' link to beneath the 'Order History' link and I would like to move the 'Privacy Notice' link to beneath the 'Site Map' link.
However those links are not showing in the footer.php file; just as you they're not listed in your example.
Where would I do that at?
Thank you,
Frank
Re: How to edit footer links for opencart 3.0
Posted: Sun Oct 07, 2018 2:17 am
by adminFv
Hi. I have done all these two methods:
1/ <p>{{ powered }}</p> : delete or adding prefix or suffix to make it hidden"
I have removed the line <p>{{ powered }}</p>
And replace the text on this code as:
2/ $_['text_powered'] = 'Powered By <a href="http://www.your_company.com">Your Company</a><br /> %s © %s';
But still the "Powerd By Opencart" appears on the footer.
Please tell me how do i remove or replace with own text. Please reply anybody.
I have use Opencart 3.0.2.0 version, and Theme is Default Theme.
Thanks in advance!
Re: How to edit footer links for opencart 3.0
Posted: Sun Oct 07, 2018 2:20 am
by straightlight
By clearing the OC cache after each changes. FAQ:
viewtopic.php?f=176&p=736120#p718325
Re: How to edit footer links for opencart 3.0
Posted: Sun Oct 07, 2018 2:46 am
by adminFv
Can you please tell me now, where i can find the OC cache to clear it.
Please tell me.
Re: How to edit footer links for opencart 3.0
Posted: Sun Oct 07, 2018 3:05 am
by straightlight
Please don't PM if you're going to post the same sentence on the public forum. The locations are already specified on the instructions above.
Re: How to edit footer links for opencart 3.0
Posted: Sun Oct 07, 2018 3:13 am
by adminFv
I have refresh the Modifications, but it still appear.
Re: How to edit footer links for opencart 3.0
Posted: Sun Oct 07, 2018 11:58 am
by adminFv
Please tell me a solution, please.
Re: How to edit footer links for opencart 3.0
Posted: Sat Oct 20, 2018 9:49 pm
by jamp
adminFv wrote: ↑Sun Oct 07, 2018 11:58 am
Please tell me a solution, please.
This is very easy! On dashboard click on gear (top right, under administrator picture) and refresh both of caches!
Re: How to edit footer links for opencart 3.0
Posted: Sun Nov 04, 2018 9:17 pm
by djbosanac
accessbit wrote: ↑Sun Jan 07, 2018 8:24 am
Please follow the STEP for the opencart version 3.0 and beyond:
// FOLLOWING CODE for the Footer on GizmoVela.com for OpenCart //
// Go to the FileZila path /public_html/catalog/language/en-gb/common
and Retrieve the "footer.php" file, use your plain notepad, save it with .php extention after modification. When you retrieve the fotter php file you will see follwoing file. Modify according to the following steps only. //
<?php
// Text
$_['text_information'] = 'Information';
$_['text_service'] = 'Customer Service';
$_['text_extra'] = 'Extras';
$_['text_contact'] = 'Contact Us';
$_['text_return'] = 'Returns';
$_['text_sitemap'] = 'Site Map';
$_['text_manufacturer'] = 'Brands';
$_['text_voucher'] = 'Gift Certificates';
$_['text_affiliate'] = 'Affiliate';
$_['text_special'] = 'Specials';
$_['text_account'] = 'My Account';
$_['text_order'] = 'Order History';
$_['text_wishlist'] = 'Wish List';
$_['text_newsletter'] = 'Newsletter';
$_['text_powered'] = '<p style="text-align: center;text-decoration: none; color: #ffffff;">Copyright 2016 - 2018 ...........com and ___________, Inc. || __________.com || All Rights Reserved. <br>All 3rd party companies and logos are trademarks of their respective companies. <br>Website designed By <a href="somecompany" target="_blank">AccessBit.com</a> and hosted By <a href="somecompany" target="_blank">HostBit.com</a></p><br/>';
i have done this, but now the website does not reload. White screen, the dashboard cpanel works fine.
What did i wrong, i just removed the current one for my own one.
Re: How to edit footer links for opencart 3.0
Posted: Thu Sep 05, 2019 9:43 pm
by SeniorSE
jamp wrote: ↑Sat Oct 20, 2018 9:49 pm
adminFv wrote: ↑Sun Oct 07, 2018 11:58 am
Please tell me a solution, please.
This is very easy! On dashboard click on gear (top right, under administrator picture) and refresh both of caches!
That was not a very intuitive thing to do. But, it also fixed my problem! Thank you! I was looking at the Modifications menu, not the Gear icon on the dashboard. Thank you for this bit of intel. You can also turn off the cache for while you are developing and making lots of changes. Then, I would turn it back on.
Thanks again!!
Re: How to edit footer links for opencart 3.0
Posted: Sun Jan 05, 2020 2:09 am
by mytrendinhitesh
I wants to add custom links in footer
Re: How to edit footer links for opencart 3.0
Posted: Sun Jan 05, 2020 10:37 pm
by chongshengdz
mytrendinhitesh wrote: ↑Sun Jan 05, 2020 2:09 am
I wants to add custom links in footer
then you can edit /catalog/view/theme/default/template/common/footer.twig
after saving the file, please clear your cache.
Re: How to edit footer links for opencart 3.0
Posted: Sun May 09, 2021 10:58 am
by Joyacar
I have a question, I am using 3.0.2.0 plaza theme, I wanted to add a few product / category links on footer , my website has two languages (english/turkish) but both sides product/ category names in english with the following way;
mysite/catalog/language/en-gb/common/footer.php
$_['text_products'] = 'products';
$_['text_ fruits'] = 'fruits';
mysite/catalog/language/tr-tr/common/footer.php
$_['text_products '] = 'ürünler';
$_['text_fruits '] = 'meyveler';
mysite/catalog/controller/common/footer.php
$data['products'] = $this->language->get('account/products');
$data['fruits'] = $this->language->get('account/fruits');
mysite/catalog/view/theme/default/template/common/Footer.twig
<div class="col2 col-md-3 col-sm-6 col-xs-12 col-footer">
<div class="footer-title"><h5>{{ 'products' }}</h5></div>
<div class="footer-content">
<ul class="list-unstyled text-content">
<li><a href=" ... product link ... ">{{ 'fruits' }}</a></li>
it is only in english in both sides with this way, please how can I arrange product/ category names separate in english and turkish according to the pages
thanks
Re: How to edit footer links for opencart 3.0
Posted: Sun May 09, 2021 5:34 pm
by xxvirusxx
In controller use:
Code: Select all
$this->load->language('account/products');
$this->load->language('account/fruits');
In twig
Use
{{ text_fruits }} and
{{ text_products }}
Code: Select all
<div class="col2 col-md-3 col-sm-6 col-xs-12 col-footer">
<div class="footer-title"><h5>{{ text_products }}</h5></div>
<div class="footer-content">
<ul class="list-unstyled text-content">
<li><a href=" ... product link ... ">{{ text_fruits }}</a></li>