Magento Themes and Magento Extensions

Magento: Mass Exclude/Unexclude Images

Posted on June 27th, 2011 | Posted by admin

By default, Magento will check the ‘Exclude’ box for you on all imported images, making them not show up as a thumbnail under the main product image on the product view. Should you ever want to mass unexclude them (or mass exclude your images), you can simply run one of the following sql commands in your database:

# Mass Unexclude
UPDATE`catalog_product_entity_media_gallery_value` SET `disabled` = '0' WHERE `disabled` = '1';

# Mass Exclude
UPDATE`catalog_product_entity_media_gallery_value` SET `disabled` = '1' WHERE `disabled` = '0';

Magento: New Extension Idea – Product Image Removal

Posted on June 24th, 2011 | Posted by admin

As you most likely know, when you remove an image from a product, or delete a product, the image file actually stays in it’s place on the server. It is not removed. Rare is the case when I want the image to remain there if I am removing it from a product, or deleting a product. I would much rather it be deleted!

I’m thinking about writing a module that would allow you to easily enable or disable image deletion in these two cases. So, if you have it enabled, when you remove an image from a product, or delete a product, the image would be fully removed. Simple.

I’d like to try and gauge if Magento users would be interested in such an extension. If this sounds like something you’d be interested in, please comment and let me know. Feel free to add any additional ideas as well.

Magento 1.4 Development Cookbook Book Review

Posted on June 24th, 2011 | Posted by admin

I was asked by Packt Publishing to review a new book entitled Magento 1.4 Development Cookbook. I was excited for the opportunity to review a recent development book, hoping I might get some new fresh perspectives.

Before I get into the details, I highly recommend avoiding this book. Unless you want a reference of how NOT to develop properly with Magento, do not buy it. Save your money and time and just spend a few hours looking through Magento’s core modules and learn by example. That to me has been the best reference in learning how to develop with Magento.

Why avoid this book

Programmatically create order in Magento

Posted on June 24th, 2011 | Posted by admin

Surprisingly one of the trickiest parts of “under the hood” Magento is how to create order programmatically. At least for me, this was/is the most complex area of Magento development. Reason why it is so difficult is that the order creation process is all but not straightforward. You cannot simply instantiate order model, set some data and call upon the save() method. If you ask me, this is how it should be done.

So why cannot we apply approach like generic one show below?

//$order = new Mage_Sales_Model_Order();
$order = Mage::getModel('sales/order');

Simple Magento Extension generator

Posted on June 24th, 2011 | Posted by admin

Writing Magento modules on a everyday basis can become extremely boring job when it comes to the part where you define your module directories, config file, model, block, helper, etc. What I am trying to say is that there is significant amount of repetitive work being done each time you start new module development. To compensate for this a little bit, I created this little Magento module that helps you create other modules. Hope it does not sound to much confusing.

To access the module functionality you need to install by copy-pasting the content of archive to your Magento installation and then open the http://mystore.loc/alpha url. I realize that using “alpha” for the module name is not much innovative. Basically you can look at this module as being a skeleton upon which you might build your own module generator. The code itself was done in a hasty way so it might need some refactoring if you wish to play with it. I plan on continuing my work on this module. This is just an alpha version  .

Page 5 of 19« First...«34567»10...Last »