Jul 8, 2013 ·
2 minute read
php
Often when integrating with SOAP services I find myself doing the same old moves. I have a deep suspicion of API’s written by others. They always tend to be in ASP.net, have error message pages that have default messages and generally be really badly documented and coded. Maybe I’m just unlucky? In my experience decent API’s don’t use SOAP. Anyway if I do have to use SOAP, starting out with this class as a template to get the ball rolling with some useful debugging methods (so you can email the API owners and show them that their API doesn’t work), I’ve blogged it for my own archive and retrieval reasons but if it helps anyone else out then that is great!
Read On →
Jul 2, 2013 ·
1 minute read
mysql
Importing a database dump from one location using mysqldump, and them importing it into a blank database I received this error: ERROR 1062 (23000) at line [Line No]: Duplicate entry for key ‘[Key Name]’ The issue here is that a constraint is set up to prevent two rows containing the same value. Although key checks are disabled, it still can’t add the rows. Sometimes as a useful technique to just get it running locally (obviously there’s an issue here which does need resolving), simply change the “INSERT INTO” statement to “INSERT IGNORE INTO”, which will skip that entry.
Jul 1, 2013 ·
1 minute read
magento
If you’re having trouble printing packing slips, receiving a white blank page when selecting Print Packingslips from the Actions menu in Magento’s Sales Orders page, then it’s likely you’re having the same issue I’ve had. I found that having error_reporting enabled wasn’t enough error_reporting(E_ALL | E_STRICT); You’ll also need to add this to your index.php: ini_set('display_errors', 1); You’ll then be shown the following fatal error: Fatal error: Declaration of Zend_Pdf_FileParserDataSource_File::__construct() must be compatible with Zend_Pdf_FileParserDataSource::__construct() in /home8/stonecr2/public_html/newsite/lib/Zend/Pdf/FileParserDataSource/File.php on line 41 The issue here is that the contructor of Zend_Pdf_FileParserDataSource_File requires a single paramter, $filePath, whereas its abstract class’s constructor does not.
Read On →
Jun 26, 2013 ·
5 minute read
Conversion Rate Optimization
Every e-commerce web site owner would like to improve sales and one clear strategy to do this is to focus on increasing the conversion rate by effective use of website analytics leading to tested content changes that improve conversion. Why you Need to Start Doing this Today Let’s put it simple - without a proper use of analytics you are driving blind. You know that there is something happening but you really don’t know why, nor you can identify the bottleneck.
Read On →
Jun 11, 2013 ·
2 minute read
Windowsmagentogit
Install TortoiseGit TortoiseGit is a Windows GIU for using Git on Windows, integrating nicely with Windows Explorer. Download TortoiseGit and install it. Install and set up PuTTYgen PuTTYgen is a program used to create SSH keys on Windows, the Public-Private-Key encryption used by SSH in place of passwords, you’ll need these to authenticate with Bitbucket. Download PuTTYgen and install it. Once installed, you’ll need to set up a public and private key.
Read On →
Jun 7, 2013 ·
2 minute read
magento
It used to be that importing products into Magento was incredibly time consuming and difficult to handle. Whilst recent updates to Magento has improved the Dataflow process it is still not a perfect solution. To help get round this a project was set-up called Magmi which allowed products to be imported directly, rather than using the Magento ORM. As this evolved it added more useful features and is now the only way that I handle importing products into Magento.
Read On →