Witty and insightful observations on the world? Sorry to disappoint, this is a techie blog purely for self reference - published online in the hope it will help others!

WordPress under Magento multistore

This is a 'Note to Self' as much as anything else. It's explains how we got the Wordpress install to work on a Magento multistore using country stub directories. The SO question it relates to is here; http://stackoverflow.com/questions/32613815/htaccess-wordpress-under-magento-site-with-multi-language-sub-directories We have this in production, hopefully this answer might help someone at some point. The way we've done this is to add a RUN_CODE environmental variable which is used in a custom Wordpress filter to get the urls all working. I've used the 'eu' example from my question to illustrate it below. Note we had to do this for both Apache and Nginx so I've added the .htaccess and server blocks for both. APACHE - .htaccess In the `eu` country stub subdirectory you add this ... Read more

WordPress, Git and Capistrano v3

I'm writing this blog post because I've had to add a Wordpress site into a Magento site which uses Capistrano 3 as it's deployment framework. I was trying to work out the best way to set it all up and Googling it resulted in a right load of shit. No disrespect to the authors (many of whom are clearly very talented) but a lot of it was; - Old, out of date - Overly complicated - Using Capistrano v2 - Fundamentally disagrees with how I think it should be done Let me look at that last point. There are a lot of people who think Wordpress core should be in your repo. I don't agree with this at all, ... Read more

Sagepay – Magento – Armed Forces – INVALID. 3139 : The DeliveryState format is invalid.

The title says it all. Magento installation with failed transactions using Sagepay fail when the delivery address is Armed Forces Middle East, Armed Forces Africa or Armed Forces Canada. It's for a good reason - Magento itself sets the region ID for these options as 'AM', 'AF' and 'AC' respectively; Which is dandy until you realise that these region codes don't actually exist anywhere. As you can see from this instructional on stamps.com, Middle east and Africa should be designated as 'AE' whilst Canada is part of America and should be designated 'AA'; This is all fine when your payment ... Read more

Getting back into shape

So after almost 3 years of parenthood and slowly getting more and more unfit and sluggish I decided last February to get myself back in the gym and get fit again. It was a pretty slow process, started off in the pool for a few months, then into the gym. Now feeling great, fitter than I've ever been I'd say (even when I was very fit at the end of my twenties). The office I'm in is pretty focussed on health and fitness, we eat healthily during the day, no snacks and no sugar. Given what we do (and what the e-commerce sites are based on) we take supplements of various sorts. I take test boosters, mixing ... Read more

Thanks to Peter Walker

What a gentleman. First time anyone has ever bought me a beer (or anything for that matter!) for a blog post that I've written. So props to Peter Walker from Gogeye Design in Epping for buying me a beer for some tips on Isotope Filters. And wouldn't you know it, he even went for the more expensive Heineken at the Swan rather than a Baltika at Leeds Train Station. What a star! Here's to you Peter. He's a freelancer multimedia designer and developer, find out more about him here -> Web Design Epping. It's inspired me to start blogging again, so I'd better think of something good to get back into the swing. Read more

Igniyte, Guide to Personal Online Reputation

This is a post penned by my good friend Simon Wadsworth at igniyte.com - he's the man to talk to about any online reputation management issues you might be faced with either as an individual or a corporate body. His contact details are at the bottom; ----------------------------------------------------------------------- Defamatory or negative comments online content can cause distress, reputation issues and loss of business for some people. Negative content online causes pressure not only directly to individuals, but to their friends, family and colleagues. The majority of our customers are high profile individuals and companies (from small start-up businesses to huge global corporations). Igniyte receives a high number of enquiries from individuals who need help with specific issues they have been facing ... Read more

Enable SOAP on Media Temple DV Managed

Media Temple's knowledgebase has a good article on how to enable SOAP on a DV Managed server; https://kb.mediatemple.net/questions/1947/Configure+PHP+with+SOAP#dv_managed However, when you get to the section that says NOTE: If you receive an error similar to the following, you will need to install libxml2: You might also encounter the following error (as I did); no acceptable C compiler found in $PATH The answer to this is lies in the comments section of this Stackoverflow answer. Basically you need to install a precomiled version of gcc, so if you are using a Fedora based OS like me that would be; I then got the libxml2 issue, solved as pe the Media Temple docs with; yum ... Read more

Magento URL Rewrites – custom url redirect for CMS page

OK, so why this post? Well there just wasn't very much (or indeed anything at all) on this in Google when I looked. There is loads on how to use Magento's built in url rewrite system from teh backend. And there's loads on Stackoverflow and Alan Storm's blog on how to create a custom controller to over ride the PageController and IndexController. Nothing on how to just create a custom redirect for a cms page though. I needed to do this because I am doing a project with Peter Warren at Synoptive (Magento product configurators) on a Magento multistore. It is for United Carports (custom built carports), I've made ... Read more

Enabling and using ImageMagick in PHP on Plesk 11

I am currently building a configurator in Magento - it's a native configurator using Magento's custom options on a simple product coupled with some javascript which I've coded up on separate custom product/view-custom.phtml and product/view/media-custom.phtml templates (applied to a specific product using this technique -> http://prattski.com/2010/11/04/magento-use-different-template-files-for-specific-products/). The concept is simple enough but I have had to create a script to generate all the images. I've used PEAR Math Combinatorics to handle all the images configurations but that involved enabling ImageMagick on the server. What a struggle that's been. Honestly, I couldn't be a server admin, desperate stuff. Anyway..... Maybe this might help some other poor unfortunate like myself a few frustrating hours. Read more

Magento: Remove all toplinks via local.xml

If you Google trying to fin out the best way to remove all the toplinks from the masthead of your Magento store you will be presented with a rash of different options on how and how not to do it. As always with Magento, there's a number of ways to skin a cat - some of the ones I found ranged from easy and efficient to completely ludicrous. Particularly ott are the ones suggesting it be done by modifying template files, but you also see suggestions about modifying/overriding multiple layout files, or disabling modules through the Advanced system config menu in the backend. You don't need to do any of that, your theme (should) have it's own local.xml file, you can ... Read more