How to import product images from external URL in Magento

Introduction Generally, we import the product images by copying all the images to /media/import folder, adding image path relative to /media/import in CSV corresponding to the product SKUs and running the import profile. Sometimes you may need to import images from external URL and this is the case when you are using third-party web services …

Read more

Usage of <can_be_empty> tag for system configuration multi-select field

Suppose say you have following multi-select field in System > Configuration: which is defined by following XML code (partial): File: app/code/local/MagePsycho/Demomodule/etc/system.xml … <allowed_groups translate=”label”> <label>Main Website / Main Store / English</label> <frontend_type>multiselect</frontend_type> <source_model>demomodule/system_config_source_customergroups</source_model> <sort_order>10</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </allowed_groups> … When you try to de-select the only one selected option from the multi-select field(refer the above …

Read more

Setting custom environment variables using .htaccess

If you are familiar with Magento, esp with setting up multiple websites/stores using .htaccess then you may have encountered variables like: MAGE_RUN_CODE & MAGE_RUN_TYPE. Yes they are the custom environment variables. In order to set up custom environment variables using .htaccess, try as follows: RewriteRule ^ – [E=MAGE_RUN_CODE:default] RewriteRule ^ – [E=MAGE_RUN_TYPE:store] Where MAGE_RUN_CODE & …

Read more