Monthly Archives

March 2011

Fix for Multi Store View Bug in Magento

Ron Peled 12:54 pm

Fix for Multi Store View Bug in Magento

By | Magento, Magento Code Snippets

There is a pretty nasty bug in Magento if you are using multi store view with configurable products. I have recently patched it nicely with an extension that overrides the original controller method. This is a much nicer fix than actually hacking the core files which can then break in the next upgrade.

Read More

Bulk Copying Product Attributes in Magento

Ron Peled 5:11 pm

Bulk Copying Product Attributes in Magento

By | Magento Code Snippets

This static method can copy attributes between products in Magento very fast and relatively secure. We are bypassing the main Magento architecture and accessing the Database directly, but notice we are using the Zend framework for the db query and we still use DB transactions. It accepts the source product ID (not SKU), destination product ID, the array of attribute codes (‘size’, ‘color’, ‘name’, etc.), and the attribute type (‘varchar’, ‘int’, etc.).

Read More