osCommerce - CRE Loaded - Remove Google Ad in the footer
July 11th, 2006
If you want to remove the Google Ads that CRE Loaded adds to the footer, and ahem.. hides them so well.. edit this file:
/includes/javascript/cart_links.js.php
Comment out or delete the last four lines before the end php tag (?>). I won’t write out the entire code, as my blogging software (WordPress) is a little funky with the code I wanted to paste.
Comment out the lines (pseudo-code):
//echo 'table...'
//echo ‘td…’
//echo include(’http://creloaded.com/cre_google.js’);
//echo ‘/td
You’ll see the include statement getting the Google Ads from creloaded.com.
Better yet! Get your own Google Ads on there.
If you do it right, you can integrate the ads well enough so it looks to be in place.
Entry Filed under: Programming, osCommerce


33 Comments Add your own
1. x | July 19th, 2006 at 6:37 pm
Good tip! Thanks.
2. Luisa | July 21st, 2006 at 12:01 pm
Great for the google ads thanks will give it a try it.
You wouldn\’t happen to know how to get the admin section to appear in french would you. This site can be viewed but I can\’t change a thing as I have only a blank page when I go to the french side in admin. Where I am hosting they can\’t see the install in admin at all in all languages. We are baffled!
3. Newt | July 21st, 2006 at 4:24 pm
I don’t know much about localization. Sorry! I have a feeling that the admin tool isn’t localized, probably just the store part of the application.
4. Wombiroller | August 13th, 2006 at 7:53 pm
Thanks for the Tip but I have edited (deleted) and the problem remains!!
very annoying.
Maybe its a cersion thing (I am using CRE Loaded v6.2)…
5. Newt | August 13th, 2006 at 11:51 pm
There are also google ads in the admin panel that you can turn off. I think one is in the footer, but above this one. So check the admin tool (Marketing –> Banner Manager) And turn off ‘Google Ad’ which has the group ‘googlefoot’.
That should do it, if not let me know.
Troy
6. Stefan | August 14th, 2006 at 1:46 pm
very good tip! thank you!!!
7. Jacob | August 27th, 2006 at 9:08 pm
Thanks! Did a search on the files but couldnt find the GoogleAd code but your trick works!
8. Newt | August 27th, 2006 at 11:12 pm
Yeah.. the code goes to get the Google Adsense java script from the CRE Loaded website. I don’t begrudge them some financial reward for the work they do, but it should be voluntary involvement.
Thanks for leaving a comment!
9. Dave | August 28th, 2006 at 3:50 pm
THANK YOU
10. karol | September 2nd, 2006 at 6:02 am
Very good tip. It really works. The bottom ad’s are removed. but hey can you tell me how to remove the google ad’s block on the left side.
11. Newt | September 5th, 2006 at 2:03 pm
You should be able to modify or disable these Google Ads through the ‘Marketing’ in the osCommerce CRE Loaded Admin tool backend.
Newt
12. AT | September 27th, 2006 at 8:40 pm
Great tip Many many thanks for sharing this info……
13. Richard | October 16th, 2006 at 11:47 am
Thanks for posting the tip, I just spent about 2 hours trying to stop google ads for my customers main competitor popping up all the time.
14. SA | October 17th, 2006 at 3:32 am
So how do we change the GoogleAd code to our own? I’d like to do that before deciding to get rid of the whole thing in general.
Thanks!!
15. Newt | October 17th, 2006 at 12:05 pm
You could replace the line above (with include …) to be your own Google Adsense code.
16. Khoo Too | November 27th, 2006 at 7:46 am
Great tips. Thank you all those leaving your great tips. Now all my footer ads were gone.
Have a great day.
Too
17. SpeedBird | February 25th, 2007 at 9:05 am
Cool! Been looking for this for ages! THANKS
18. dgandhi | April 1st, 2007 at 2:52 pm
Thank you for the info, I was about to give up on creloaded as crippleware, which it is. I feel somewhat offended that they did this with a gpl program, and don’t even make it clear on their site that it is gpl.
19. MutaBaruka | August 16th, 2007 at 10:45 am
HERO, Thank Goodness you found it! How did you find that I looked everywhere. BTW - I don’t mind giving the OS Commerce and creloaded community credit for their work but that overselling in the footer was a way too much! It took over 80px height in my foter and was a misleading look for the project we were working on. Thank you for posting!!
20. Kerry Watson | December 8th, 2007 at 6:26 am
This fix no longer works in Version 12 (called \”SP1\”) but here is the new fix if you\’ve patched your store up to that level:
1. Create an empty document with placeholder text (so you can see it is working) such as \”Killroy was here\” and save it to your store as includes/javascript/cre_google.js
2. Find the file includes/javascript/cart_links.js.php, made a backup copy, and change THIS LINE:
{@include(\’http://www.creloaded.com/cre_google.js\’);}?>
TO:
{@include(\’http://www.yourstorenamecom/includes/javascript/cre_google.js\’);}?>
Enjoy!
21. laura | December 21st, 2007 at 11:23 am
for the latest CRE Loaded SP1 version its a little different.
I commented out
// {@include(’http://www.creloaded.com/cre_google.js’);}?>
and it worked!
22. ossama | January 16th, 2008 at 12:06 pm
Actually they changed this code just open the file
/includes/javascript/cart_links.js.php
Then Comment the whole file after the php string Good Luck
23. Gman | January 23rd, 2008 at 7:49 am
I have to say - these latest CRE loaded versions are getting beyond a joke - the feature set is down unless you pay and the ads are becoming insidious.
We met the CRELoaded team at hostingcon 2007 - interestingly enough they were walking round with a magician doing tricks.. ironic I think - their tricks aren’t funny either…
24. Mark | January 27th, 2008 at 2:03 pm
Anyone know how to get rid of this in the latest version? Great product, I would glady pay (a respectable amount) to use this script but the ads!… are they nuts? They want me to pay upfront AND get bombarded with their hidden code? It\’s a nightmare.
25. kevin Scully | February 3rd, 2008 at 8:30 am
YOU’RE AWESOME!
can’t believe cre didn’t take your link off their forum…. took me 5 min to figure this out.
thanks!
26. Sam | February 7th, 2008 at 11:13 pm
this is for version 6.2 comment this out
//@include(’http://www.creloaded.com/cre_google.js’
27. SteF | February 18th, 2008 at 8:43 pm
Thx man, really cool tip…
28. J | February 23rd, 2008 at 12:37 am
Thanks, i had been wanting to do this for months now, for the ammmount i pay them for hosting every month i shouldnt have to advertise for other people on my site. I had found this on my own amazingly and i suck horribly at this web stuff, but i forgot where it was when i went to enter my own adds.
29. J | February 23rd, 2008 at 12:40 am
now before i did this i had a text over to the left of the adds, its says cancelcance lbar_close.gif its still there under my footer, where would i look to edit that out of there?
Thanks
Jon
30. Eq-uo | April 7th, 2008 at 11:42 am
hey , it woked if we commented it…
Thanks.
31. Reverend | April 8th, 2008 at 4:32 pm
Thanks man, I had given up on CRE till I found this.
32. z | April 28th, 2008 at 3:50 pm
Really really tks for putting the Source, Open again!!
;)
33. Dro | April 30th, 2008 at 9:54 pm
I just deleted that whole line on SP1 and closed out that line in the code and it worked just fine. Didn\’t have to comment it out. I mean, either way, you\’re removing it. So I just rather delete the whole line instead of commenting it out.
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed