Coming up: 24 Sep - Magento PWA Studio training

Yireo - Trainings & extensions

Open main menu

Installing and configuring the RalOption extension

The RalOption extension for Magento allows you to add a color option to products, so that customers can pick a specific color when they add the product to cart. This guide tells you how to setup RalOption in your Magento site.

Installing the Magento extension

The RalOption extension can be downloaded from within your Yireo Account. Either install the MagentoConnect package by uploading the file (with extension tgz) to your Magento site using your Magento Downloader application. Or download the ZIP-file, extract it locally and upload the files and folders to your Magento root.

After installing the extension, make sure to flush the Magento cache. Afterwards, logout from the Magento Admin Panel and log back in.

Configuring a product for RALoption

Open the product in the Magento backend and select the tab Custom Options. Add a new custom option. Select in the dropdown box Input Type the value RALoption Color.

Advanced options

If you want to have a certain color selected by default, there are various options to allow for this. You can either override one of the palette helper-classes and return the default colorcode through the getDefault() method - this requires a bit of PHP knowledge. Or you can choose as Input Type the value Text > Field instead. When you set the Title of the option to include the tag {{RAL}}, the custom option will get the same functionality as when using as Input Type the value RALoption Color. The tag can then be extended with the default value: {{RAL5021}} - in this case the default color will be 5021 (#00747D).

Setting prices per RAL color is also possible. For this, the helper-class needs to be overridden. See the guide Overriding the colors of RalOption for details.

Posted on 24 April 2014

Looking for a training in-house?

Let's get to it!

Do not miss out on what we say

This will be the most interesting spam you've ever read

We don't write too commercial stuff, we focus on the technology (which we love) and we regularly come up with innovative solutions. Via our newsletter, you can keep yourself up to date on all of this coolness. Subscribing only takes seconds.

Sign up for the Yireo newsletter


Legal information

Other Yireo sites

Get Social

About Yireo