Jump to content

[solved] How To Remove Skrill & Ebay adverts from Backoffice


Recommended Posts

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

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

  • 1 year later...

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

  • 11 months later...

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

  • 11 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...