Magento utility function: How to easily create a select box for drop-down attributes?

From now onward I will be sharing custom utility functions on a regular basis which will make your programming life easier to some extent at least in case of Magento 🙂 Here I am going to share a utility function which will help you to create a select box for drop-down attributes(manufacturer, color, size, etc.) …

Read more

printing xml of System > Configuration settings in Magento

Magento uses system.xml(app/code/[codePool]/[namespace]/[module]/etc/) for defining configuration section (System > Configuration) in backend. It searches for the file(system.xml) in each module’s /etc folder and merge all those during parsing process. Here i am going to share the code for printing the XML as a result of merging system.xml from all active Magento modules. Code: <?php $mageFilename …

Read more

How to use jQuery Lightboxes Extension for Cms pages/static blocks?

Introduction: There is no doubt that jQuery Lightboxes is one of the best jQuery lightbox extension for Magento’s media gallery(base image & more views). This extension comes with a collection of jQuery lightboxes in one pack: Fancybox, Pirobox & Lightbox clone & many more features. Features: Upgrade proof Module. Checked for Magento Versions 1.3.x – …

Read more

Updating product prices in Magento in an easier & faster way

Updating product prices in Magento 2

Introduction Product prices can be updated via default import profile though but this is very slow and requires lots of CSV fields(besides sku & price) for updating. Today I am going to talk about updating product prices just by using CSV with two fields: sku & price(new) which is very fast enough even for thousands …

Read more