CRELoaded Remove Google Ads -

This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

If you install the free version of CRELoaded, you will see that they have sneaked some Google adverts onto the bottom of your site.

Above the adverts will be the text

This site is a member of the CRE Loaded Open Source Ecommerce Software community

Bit of an underhand tactic but I suppose you have to try to make cash where you can these days…

I could go onto a big rant about how they are trying to make cash by simply repackaging software which was always meant to be given away freely and without hitches, including both osCommerce and the multitude of contributions they have added on there. I’m not going to though. CRELoaded is a good product and these guys are keeping the osCommerce platform as a viable modern open source ecommerce platform.

Anyway - cut to the chase - to get rid of these annoying adverts all you have to do is open up

includes/javascript/cart_links.js.php

It should look like this:

<?php if ($cart_links == 'close'){$cart_link1= 'dothis';} else if ($cart_links == 'close') {$paymentclose = 'true';} if ( strstr(basename($_SERVER['SCRIPT_FILENAME']),'popup_') != basename($_SERVER['SCRIPT_FILENAME'] ) ) {@include('http://www.creloaded.com/cre_google.js');}
 ?>

and replace the entire contents with

<?php if ($cart_links == 'close'){$cart_link1= 'dothis';} else if ($cart_links == 'close') {$paymentclose = 'true';}
/*
 if ( strstr(basename($_SERVER['SCRIPT_FILENAME']),'popup_') != basename($_SERVER['SCRIPT_FILENAME'] ) ) {@include('http://www.creloaded.com/cre_google.js');}
 */
 ?>

That’s it.


Tags: edmondscommerce