You're currently on:

Imagine, that you have created new select type attribute and you add some manufacturers to it.

Now you may have a script that imports products and you have absolutely no idea which manufacturers do exist in that product feed

It seems obvious that every time there is a new manufacturer in the product import feed, then it needs to be added as new attribute option value.

Unfortunately Magento uses numeric ID-s to store such data, so we need a method which would return the attribute option ID and if needed, then the same method would automatically add the new attribute option value to the database and return newly created attribute option value id.

Read More
Comments | Posted By Matis Halmann

Magento system.xml Datepicker form field type in custom module

Thursday, June 30, 2011 12:16:03 AM Europe/Minsk

Magento's System configuration supports many types of fields such as 'label', 'multiselect', 'text', 'textarea', etc. Unfortunately there is no field for date. In this tutorial I am going to show you how to create a nice looking form field with Magento's own Calendar Date picker which really works.

Read More
Comments | Posted By Matis Halmann