Simple Twitter Feed for CakePHP

A really simple way to get your last x amount of tweets can be in no very little code.

You could place it as a component or which ever you feel is best for your situation, in this case and for ease of example, I've created an element called twitter.ctp that contains :

Code:

<?php
$xml = "http://twitter.com/statuses/user_timeline/$userid.xml?count=2";   //change count=2 to anything you'd like
if(!simplexml_load_file($xml)):
  echo "b0rked";  //this is a cool place to load a cached version perhaps
 
  else:
  $text=null;
    $xml = simplexml_load_file($xml);
        foreach($xml->status as $tweet):
        echo $tweet->text . "<br />";
        endforeach;
        
endif;
        
?>

Then simply include the element where required passing it the username for the required user :

Code:

<?php echo $this->element('twitter', array("userid" =>"SOME_USER_NAME_HERE")); ?>

Not perfect by a longshot, but a real easy bit of script for including recent tweets on the fly.


Exporting Third Man Fraud Scores from Magento

Magento Third Man Score Export

Export Fraud Scores from Sage Pay Suite

Recently, a client of ours upgraded their accounting package used by their business. Aswell as taking care of their office based accounts and physical shop orders they also wanted to export all of their orders from Magento into their new accounting package. Fortuneatly, their new accounting software already had syncing orders, customers and stock levels with Magento sewn up, via the Magento API. One thing not covered by the Magento API is accessing data collected by other non-core extensions, such as ebizmart's excellent Sage Pay Suite.

The Sage Pay Suite provides a fraud score for each order, which according to our client, saves them hundreds of pounds a week and they most certainly want to import fraud scores to their accounting package.

As the Magento API can't grab this score, we created an extension to export this from their tables. It exports the scores to a URL, using cURL. This was the specification from the client. Thus, we created this extension to allow you to enter any URL and have the scores exported automatically via a CRON schedule.

The extension is currently going through the approval process on Connect and should be available soon for free. Maybe it will save you a little time at some point?

Your feedback or suggestions are much appreciated.

Enjoy


Announcing: Royal Mail Despatch Express Magento Integration

Magento and Royal Mail

We are pleased to announce the release of our latest shipping manifest automation extension, Royal Mail Despatch Express for Magento.

Our shipping extensions help store owners reduce the amount of time they spend shipping their orders and automatically print hundreds of labels each day. Our first automated shipping extension for Magento was UKMail, followed by our DPD and Interlink extensions which are now the only Geopost approved UK DPD and Interlink extensions for Magento.

After requests for a Royal Mail Despatch Express Magento extension, we started to develop our latest extension. Now released for public use.

Our Royal Mail Despatch Express Magento extension allows you to automatically print shipping labels to your Royal Mail label printers, retrieve tracking information back from Despatch Express into Magento and email it out to your customers automatically, using your own branded Magento email templates.

Additionally, our Royal Mail Consignment Recovery Console (screen shot below) allows you to see messages sent back from Despatch Express direct from your Magento admin panel, such as "Label printed" or "Label printer out of paper". It is also possible to cancel labels and re-print labels all from within your Magento admin panel.

Royal Mail Magento Consignment Console

Other features include: Print labels on remote networked printers, overwrite shipment weight per shipment, fully compatible with Magento's native shipping pricing matrix aswell as the most popular third party shipping price matrices.

A full list of features can be found on the extension page here and a Live Demo can be found here.

If you have any questions, please do not hesitate to contact us.


Kodak ESP 5, 6 and 7 series Linux Driver

After struggling for a while to find a Fedora driver for a Kodak ESP 7250, 7200 or any other similar series of Kodak printer, the best found was a .deb package. Running Fedora meant I would have to convert the .deb package to .rpm using alien or similar or extracting the files and installing manually. So I did that. To make it easier for others on the same mission, below is a link of the PPD file so it does not matter which brand of Linux you have, this should work for you.

Just download and extract. Copy the usr/ directory to /usr on your machine, and then install the PPD file by installing a printer manually and select Provide PPD file. Your option may not read exactally the same as this, though should be close. If you don't copy the usr/ directory first the PPD file installation will error.

Kodak ESP 5,6 and 7 series Linux driver PPD file

Enjoy


Free List of US and Canadian State Codes in SQL and CSV

Something a web developer can not go without; a list of state codes. With that in mind, we thought we would share the list we use.

For convenience, we have provided it both in MySQL format and CSV format.

US and Canadian state codes in .CSV format
US and Canadian state codes in .SQL format

Enjoy.