Ryan_Glass Posted July 29, 2013 Share Posted July 29, 2013 Hi, I'd like to remove the Skrill and Ebay Adverts that show on the backoffice homepage in Prestashop 1.5. They are usually just below the Quicklink Buttons. I've worked out how to remove the quicklinks themselves by editing out this line in the AdminHomeController.php file: $tpl_vars['quick_links'] = $this->getQuickLinks(); Can I edit out another line to remove the adverts? If yes, which one? Thanks for your help! Link to comment Share on other sites More sharing options...
vekia Posted July 29, 2013 Share Posted July 29, 2013 ADMIN_DIR/themes/default/template/controllers/home/content.tpl you've got jquery ajax query: $.ajax({ url: "ajax-tab.php", type: "POST", data:{ token: "{$token}", ajax: "1", controller : "AdminHome", action: "getAdminHomeElement" }, dataType: "json", success: function(json) { {if $employee->bo_show_screencast} if (json.screencast != 'NOK') $('#adminpresentation').fadeIn('slow'); else $('#adminpresentation').fadeOut('slow'); {/if} $('#partner_preactivation').fadeOut('slow', function() { if (json.partner_preactivation != 'NOK') $('#partner_preactivation').html(json.partner_preactivation); else $('#partner_preactivation').html(''); $('#partner_preactivation').fadeIn('slow'); }); $('#discover_prestashop').fadeOut('slow', function() { if (json.discover_prestashop != 'NOK') $('#discover_prestashop').replaceWith(json.discover_prestashop); else $('#discover_prestashop').html(''); $('#discover_prestashop').fadeIn('slow'); }); }, error: function(XMLHttpRequest, textStatus, errorThrown) { // don't show/hide screencast if it's deactivated {if $employee->bo_show_screencast} $('#adminpresentation').fadeOut('slow'); {/if} $('#partner_preactivation').fadeOut('slow'); $('#discover_prestashop').fadeOut('slow'); } }); this code loads the partners block Link to comment Share on other sites More sharing options...
Ryan_Glass Posted July 29, 2013 Author Share Posted July 29, 2013 Thanks for your quick reply. I removed that code and the ads don't show, however I get a loading icon - is there a way to remove the loading icon too? Link to comment Share on other sites More sharing options...
vekia Posted July 29, 2013 Share Posted July 29, 2013 several lines above (in the same file of course) you've got: <div id="discover_prestashop"><p class="center"><img src="../img/loader.gif" alt="" />{l s='Loading...'}</p></div> Link to comment Share on other sites More sharing options...
Ryan_Glass Posted July 29, 2013 Author Share Posted July 29, 2013 Thanks - that's sorted! Link to comment Share on other sites More sharing options...
vekia Posted July 29, 2013 Share Posted July 29, 2013 you're welcome im going to mark this thread as [solved] if you've got any other questions related to this case - feel free to continue discussion best regards Link to comment Share on other sites More sharing options...
samseifi Posted November 12, 2014 Share Posted November 12, 2014 hello i am not a programmer can someone help me with this issue? I dont know how to use coding... Link to comment Share on other sites More sharing options...
vekia Posted November 12, 2014 Share Posted November 12, 2014 hello i am not a programmer can someone help me with this issue? I dont know how to use coding... without coding it will not be possible. you have to remove / alter prestashop .php / .tpl files there is no other way to achieve it what ps version you use? Link to comment Share on other sites More sharing options...
minusquare Posted October 30, 2015 Share Posted October 30, 2015 Hello! Vekia. I also want to remove the Skrill And LivePerson advertising blocks. My version is 1.6.1.1. I can not find any file as described by you i.e. ADMIN_DIR/themes/default/template/controllers/home/content.tpl If i have to purchase some license i won't mind but just want to be sure that it is possible to remove advertising. Hello! Is there a legal way to remo Link to comment Share on other sites More sharing options...
Freeware Posted October 17, 2016 Share Posted October 17, 2016 Hi Mister Ambassador, thx for all your effort.. but this path ADMIN_DIR/themes/default/template/controllers/home/content.tpl does not excist anymore in version 1.6.1.7. Do you know please where to find it now? Super thx in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now