Stephen's dev blog

Archive for the ‘Tutorials’ Category

Magento create a custom payment method

Posted by: Stephen Gray on: 11 November, 2009

I’ve been doing some work with the Magento e-commerce platform lately and my task was to create a new payment method to use during the standard checkout process.
I’ve come to the conclusion that Magento is very annoying to develop for if you know nothing about the platform. Yes the platform is open source but they [...]

Another quick one. Reading around it seems to be an issue. You make an AJAX call within a function and you want the call to be synchronous so that you can use the data from the call in the function scope.
AJAX calls are obviously asynchronous. jQuery has a ‘async: false’ option in AJAX calls but [...]

Custom SQL in symfony 1.2.3

Posted by: Stephen Gray on: 29 June, 2009

Quick one. A small snippet for performing custom SQL queries using symfony 1.2.3. The method to do this has varied slightly with the different symfony releases. The method found on the symfony site almost has a good example, this is just adding a bit to it (looping);
    $conn = Propel::getConnection();
    $query = ‘SELECT * FROM `my_table`;’;

    $statement = [...]

jQuery wildcard selectors – update

Posted by: Stephen Gray on: 24 April, 2009

Hello all,
On my first post on this blog I posted a small snippet to use a small regex pattern in jQuery selectors.
You can find the post here: http://colourgray.wordpress.com/2008/08/05/jquery-wildcard-selectors/
I was reading through some comments and posts on some incoming links and it seems it wasn’t working for anyone anymore. I just tested it myself and unfortunately [...]

Symfony “Database “” does not exist.” error

Posted by: Stephen Gray on: 2 March, 2009

Hello,
It’s definitely been too long since I posted here! I will try and post more regularly over the coming months…
Firstly, we came across this issue after writing a number of plugins for a symfony project. Each of these plugins had their own schema.yml files and therefore we didn’t need our own custom schema.yml file at [...]