Jason | 21st November 2013
Magento CE 1.7.0.2 Magento offers an excellent store view selector which is easy to hook into for custom module development. I wrote an article on that over here. However, today I needed to add a store view selector to a custom script for Magento that interfaces with the store database. Don’t ask. So I wrote […]
Jason | 31st October 2013
Magento CE 1.8.0.0 Sometimes we want to retrieve a list of all categories on site to populate a select input field in admin. Here’s one way this can be achieved. I’m assuming we have a custom module called My_Module in the community folder. File: app/code/community/My/Module/Helper/Data.php 12345678910111213141516171819202122232425262728… public function getAllCategoriesArray($optionList = false) { $categoriesArray […]
Jason | 31st October 2013
Magento CE 1.8.0.0 I recently needed to build the full URL for Magento from a relative path. I wrote this little function for my helper and I thought someone else might want to use it. 1234567891011121314151617181920212223242526272829public function buildFullPathUrl($path,$type) { $relative = ltrim($path, ‘/’); switch ($type) { case […]
Contact Me
Please fill out the form below and I will reply ASAP. I aim to answer all emails in 48 hours or less.