Currently browsing

Magento Core Bugs and Patchs

Categories are not appearing when editing products Apply to Magento 1.5 CE File path app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php Function public function getSelectedCategoriesPathIds($rootId = false) Related problem : categories do not expand in admin,  categories suddenly disappear,  categories do not show when edit product Patch public function getSelectedCategoriesPathIds($rootId = false) { $ids = array(); $collection = Mage::getModel(‘catalog/category’)->getCollection() ->addFieldToFilter(‘entity_id’, array(‘in’=>$this->getCategoryIds())); foreach ($collection as …

Magento – How to Add JQuery/Ajax Add-To-Cart

So, the thing Ajax and all being, I was hunting for a way to an item to add the car with a Ajax call in Magento. Recently, I noticed there was a module that apparently either did not I, but had not seen it or did not exist when I wrote this, so I hacked my way through it.

PHP is not my primary language – I'm from the ASP, ASP.Net, C # world, but Magento was convincing enough that I took the plunge. I'm sure there are many things I do better / differently than here, so if you could get some suggestions, I'm all ears!

MVC Developers Part 5 – Config Resources

A rapid software development project, the task of tracking the development and production databases in sync become a sticky wicket. Magento has a version number system to a source migration scripts that can help your team much this often controversial part of the development to make.

The following is part of a longer series on Magento aimed at developers familiar with PHP MVC development. Although each article can be read stand alone, each article is based on concepts and code covered in previous articles. If you are confused, especially to catch up on the earlier work first.

MVC Developers Part 6 – Entity Attribute Value

In our last article we told you there were two types of models in Magento. Regular, or “simple” models, and entity attribute value (or EAV) model. We also told you this was a bit of a fib. Here is where we come clean.

The following is part of a longer series on Magento aimed at developers familiar with PHP MVC development. Although each article can be read stand alone, each article is based on concepts and code covered in previous articles. If you are confused, especially to catch up on the earlier work first.

MVC Developers Part 7 – Custom System Configuration

One of the most powerful elements of the Magento e-commerce system is the System Admin Config section. As a developer, will it allow you to quickly and easily set, elements that allow your end-users to their system and your Magento custom modules to configure.

Like a lot of things in Magento can be intimidating the first time you try to install a new configuration section from scratch, but once you done it once the power of (almost) code will form a less addictive. Let us begin.