Edmonds Commerce Logo
  • home
    • blog
  • ecommerce
    • product catalogue
    • order processing
    • customer services
    • stock control
    • human resources
    • management information
  • development
    • oscommerce
    • php
    • mysql
    • open source
    • performance tuning
  • design
  • marketing
  • contact us
    • pricing

Edmonds Commerce Blog

Freelance PHP Ecommerce and SEO Developer in the UK

Latest Posts

Zend_Dojo Dijits and Numeric ID’s
Happy New Year from Edmonds Commerce
Easy Security for PHP Scripts
Secure and Insecure Contents in HTTPS

Most Popular Posts

PHP Email Attachment Function Freelance osCommerce UK Ultimate osCommerce Checkout - Fast and Friendly PHP : Dead Easy Excel Export

Archive for August, 2008

CRELoaded Remove Google Ads -

Wednesday, August 13th, 2008

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:

PLAIN TEXT
PHP:
  1. <?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');}
  2.  ?>

and replace the entire contents with

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

That's it.

Posted in creloaded, oscommerce | 3 Comments »

ICECat Integration with osCommerce, Magento etc

Tuesday, August 12th, 2008

The ICECat database is an invaluable resource for webmasters who have to deal with very large catalogues. They offer a single source with a normalised structure for getting high quality images, descriptions and even PDF files about the products you sell.

They have developed relationships with a large number of manufacturers and brands which allow them to offer these details free of charge. If however you want better coverage they also offer a very reasonably priced service which is comparable to the CNET system but at a much reduced price.

Edmonds Commerce have the resources to implement a proper XML integration with the ICECat system for your ecommerce store. We especially specialse in the highly popular open source ecommerce platforms osCommerce and Magento.

If you would like to discuss the benefits of an ICECat integration please do not hesitate to get in touch.

Posted in icecat | No Comments »

Magento UK

Tuesday, August 5th, 2008

Edmonds Commerce specialise in Magento Ecommerce and are available for Freelance Magento projects and installations. If you are looking to set up a new ecommerce venture and are considering using Magento - get in touch today.

Magento is certainly making waves. For those of you who haven't heard of it, Magento is looking likely to become the successor to osCommerce as the most popular open source ecommerce platform.

There are many things which make Magento a much better option than osCommerce. However for some people the tried and tested, 'better the devil you know', huge knowledge, customisation and support base of osCommerce  makes it the platform they would still prefer to put their development investment into.

These justifications are valid to a point, however I now believe that the time is right to move into Magento and whilst I am not certain that it is worth worrying about upgrading if you already have a perfectly functional osCommerce site, I would recommend anyone looking to set up a new ecommerce site takes a close look at Magento.

Posted in ecommerce, magento, php | No Comments »

PHP Cached Download Function

Monday, August 4th, 2008

If you are coding a PHP script to deal with big files, it makes sense to build in some kind of caching logic so that your script won't download the same file every single time it is run, but will check to see how long ago it last downloaded that file and only download it again if it is more than a certain timeframe old.

This function allows you to do exactly that - check it out:

PLAIN TEXT
PHP:
  1. $cache_days = 1;
  2.  
  3. $cache_days = $cache_days * (24*60*60);
  4.  
  5. function cached_download($remote, $local){
  6. $cache_days = $GLOBALS['cache_days'];
  7. if(file_exists($local) &amp;&amp; (filemtime($local)&gt; (time() - $cache_days))){
  8. // we have a local copy that is less than $cache_days old
  9. echo '
  10. <h3>Using Cached - Last Downloaded ' . date('H:m:s d/m/Y', filemtime($local) . '</h3>
  11. ';
  12. }else{
  13. echo '
  14. <h3>Downloading Now...</h3>
  15. ';
  16. flush();
  17. copy($remote, $local);
  18. }
  19. }

Posted in php | No Comments »

  • RSS Feed
  • Categories

    • apache
    • barcode
    • business
    • creloaded
    • curl
    • customer services
    • debugging
    • ecommerce
    • edmondscommerce
    • email
    • excel
    • firefox
    • flash
    • gd
    • graphs
    • hosting
    • icecat
    • internet news
    • javascript
    • link building
    • linux
    • magento
    • management
    • mod_rewrite
    • mysql
    • oscommerce
    • php
    • plesk
    • product catalogue
    • product feed
    • programming
    • regular expressions
    • scraping
    • search engine optimisation
    • security
    • seo
    • spidering
    • ubuntu
    • Uncategorized
    • vps
    • web design
    • web development
    • Windows
    • xampp
    • zip
  • Archives

    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
  • Tags

    addons advanced adverts blackhat blocking css development directories find firefox google hosts file html javascript keywords links msn mysql myths operators oscommerce paid links paid placement performance php ppc reciprocal linking replace screen scraping search engine optimisation security seo serp speed spider spidering tuning user friendly vista web web design web developer
  • Random Posts

    • Meta Title Tag and SEO
    • Online Business Tools
    • Internet Explorer Security Flaw
    • Purashop : SEO Services
    • HP Printer on Ubuntu
    • osCommerce Essential Modifications
    • Ultimate osCommerce Checkout - Fast and Friendly
    • Speeding Up osCommerce
    • osCommerce Easypopulate File Creator Class
    • Google Checkout Integration Tools

Edmonds Commerce related questions? Send us a message or call us on 0844 357 0201.

Freelance PHP Web Design UK Commercial Web Design