Posts tagged with: Magento

Magento hebrew full text search

Proper using hebrew in Magento needs some tuning. I had a problem to find such phrases as: ‘??? ???’ or ‘???’. I have used MySQL 5.1.49. The minimum and maximum lengths of words to be indexed are defined by the ‘ft_min_word_len‘ and ‘ft_max_word_len‘ system variables.
SQL: ‘SHOW VARIABLES;’ I have found that ‘ft_min_word_len’ was 4.
I have changed it to 2 in ‘/etc/mysql/my.cnf‘ in [mysqld].

Continue Reading



Magento new theme for admin part

Magento allows customize admin theme. It’s like new theme for frontend but needs specific configuration in config.xml.
Below is an example:

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <modules>
        <YOURMODULE_Adminhtml>
            <version>0.0.1</version>
        </YOURMODULE_Adminhtml>
    </modules>
    <stores>
       <admin>
           <design>
               <theme>
                   <default>YOURADMINTHEME</default>
               </theme>
           </design>
       </admin>
    </stores>
</config>

Illumination options for configurable products in Magento

The following code allows you illuminate options for configurable products in Magento.

The steps are:

0. Create configurable product with “size”, “color”, “manufacturer” options.

1. Create new field in the table “catalog_eav_attribute”:

ALTER TABLE `catalog_eav_attribute`
ADD `configurable_option_type` TINYINT( 1 ) UNSIGNED NOT NULL

2. Open method Mage_Adminhtml_Catalog_Product_AttributeController::saveAction
and add verification:

//CONFIGURABLE OPTION TYPES
if (!isset($data['configurable_option_type'])) {
    $data['configurable_option_type'] = 0;
}

Continue Reading


Add new image type for product in Magento

The goal of this article is to show to add new image type to product in Magento.

By default Magento has 3 type of images:

  1. Base image
  2. Small image
  3. Thumbnail image

Typically these types of images is sufficient. But sometimes it becomes necessary to add a new type of image. Add a new type of image is easy as Magento in the gallery displays all the attributes for which the attribute ‘input_type’ equals ‘media_image’.

Continue Reading