Magento: Removing links in the navigation block by name or by label

Posted by Stuart Forster on 11th May 2012

Sometimes in Magento you may want to remove links from the customer navigation block. What you'll notice is it's actually quite hard to do so because there is no 'remove' method.

In this tutorial I will show you had to extend Mage_Customer_Block_Account_Navigation to include an extra two methods, one to remove links by name and the other by label.

Read more... [Post Comment]

How to set up Ctags for Sublime Text Editor 2

Posted by Dave Thomson on 4th May 2012

"Use the Source, Luke"

Obi-Wan Kenobi

 

Ctags is an excellent plugin for Sublime Text Editor 2 for giving you Jedi like powers.  It enables you to jump through function calls to their definitions in the source code saving you a whole load of parsecs in file navigation.

Setting Ctags up is easy, here's how to in linux...

Read more... [Post Comment]

Extending the Magento API

Posted by Stuart Forster on 27th April 2012

Magento: Extending the API

As UK Magento Developers we often find the need to extend the Magento API. This is actually quite easy to do.

In this article I will show you how to take the sales order API and extend it to automatically capture any payment when an invoice is created through the API.

Read more... [Post Comment]

Howto: Merge Javascript and CSS files in Magento

Posted by Stuart Forster on 13th March 2012
Tagged: magento, js, javascript, merge

During a lot of the Research and Developement I've done on Magento websites, one of the pitfalls I often notice about other peoples magento websites is that they haven't bothered to merge the Javascript and CSS files.

This is a very simple task - and I'll show you how to do it.

Read more... [Post Comment]

How to: Creating your own custom block in Magento

Posted by Stuart Forster on 26th August 2011

Blog - Magento Block

This is a quick 6 step tutorial on how to create a custom block in Magento.

Read more... [Post Comment]

Reusing code and repaying technical debt

Posted by Mike Caisey on 22nd July 2011
Reducing delivery times by reusing code and repaying technical debt in the process.

Read more... [Post Comment]

Black-box testing file uploads using Zend_Http_Client

Posted by Mike Caisey on 15th July 2011
Tagged: TDD
Black-box testing file uploads using Zend_Http_Client with example.

Read more... [1 Comment(s)]

Frameworks and Data Validation: At what stage should the validation occur?

Posted by Stuart Forster on 14th June 2011

One of the questions you may find when attempting even the simplest of form validation is; at what stage should the data be validated? If you have a Controller, a Form (we’ll use Zend_Form in this case) and a Model you’ll find you can choose to validate at all stages, or just the one.

Read more... [1 Comment(s)]

Zend Framework: Disabling the Layout and View Renderer

Posted by Stuart Forster on 16th March 2011
Tagged: zend framework, PHP

Zend Framework Logo (Black)

One of the most common things I do when working with the Zend Framework is disabling the view and/or layout inside a controller (or for a specific action). I always forget how to do this. Here's how I do it...

Read more... [Post Comment]

Using Selenium test tool in our site tests

Posted by Mike Caisey on 4th March 2011
Tagged: TDD, testing

I've recently incorporated the Selenium Java based test tool into our testing suite for some of our projects. “Selenium Remote Control allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser.” Taken from http://seleniumhq.org

Read more... [Post Comment]

< Previous 1 2