5/5 - (1 vote)

Learn how to configure your products details page with a color selector by following this tutorial.

The customer will be able to easily select his favorite color thanks to a preview of each color.

Color setup

Step 1. The first thing you need to do is to go to the Joomla media manager.

Color Setup

Step 2. Here, you create a new folder or choose folder that you will save your color icon.

Displaycolor0.2

Step 3. Click on the “Upload” button to upload your color icons.

Displaycolor

Step 4. Click on the “browse” button, it will open the classic select window of your computer in order to pick your files. Select your files then click on the “start upload” button.

NOTE: You can find here, a link to an archive containing several color icons in png that you can use for this tutorial.

Displaycolor

You will see all your uploaded color icons.

Displaycolor

Display configuration

Step 1. Go on the Hikashop products screen.

Displaycolor

Step 2. Select the Characteristics menu.

Displaycolor

Step 3. Click on the “New” button to create your new characteristics.

Displaycolor

Step 4. Type a name for your characteristics, then click on Add button for each possible value of your characteristic.

Displaycolor

Here is for example the URL of your icon image:

Uelex

Use the HTML code below in your value name :

<img src=“http://www.yoursite.com/medias/coloricon/black.png”/>

Displaycolor

Repeat the last operation for each color icon needed. It will show your color icon(s) as the screenshot below.

NOTE: You must create only ONE “color characteristics” but with all color needed on your website (like the picture below). Later in each product settings, you will be able to select the needed color(s) for that product.

Displaycolor

You have now finished to create your characteristic

Step 5. Go to the HikaShop Configuration page.

Displaycolor

Step 6. Go to  the Product section, find the “characteristics selection method” option and select “Radio Button“. Don’t forget to save it.

Displaycolor

Now you configure your characteristics from your product settings

Step 7. Goback to Hikashop -> Products.

Displaycolor

Step 8. Click on the product for which you want a color selector.

Displaycolor1.1

Step 9. In product settings, find  the Characteristics in Specifications part, and click on the Add (+) button.

Bdisplaycolor

Step 10. In Characteristic namebox, select your new Characteristic, here: “coloricon”.

Bdisplaycolor

Step 11. In Default value namebox, select one color, here for example : “Aqua”.

Bdisplaycolor

Step 12. Save your Characteristics change.

Bdisplaycolor

You can now see “Variants” in a new tab, that’s will appear after you save your Characteristics change.
Step 13. Click on the Variants tab.

Bdisplaycolor

Step 13. Click on the “Add variants” button.

Bdisplaycolor

In this dropdwon, you will see ALL color icon that you had added sooner, select required variant.(2)

And save it.

Bdisplaycolor

Note : Just below the “Add variants” you can see that this variant is set as the default one, it means that this default will be selected when reach the products among several variants.

You can now see “1 Variant” in the “Variants” tab.

Repeat this action for each required color for your product.

Bdisplaycolor

Here, we add an other variant and so, for this example we have “2 Variants” in the “Variants” tab (1).

You can define the Default value, just here (2), you can click on the little icon to change default value

We will check the default value, and so click here (3)

Bdisplaycolor

Note : To delete a variant :

select the variant by picking it (1).

And click on the delete button (2)

Bdisplaycolor

Note : To unpublished variant :

Click here to unpublished the variant.

If you want to change the Default value you can process like for unpublished a variant.

Bdisplaycolor1.61 1

The product variant parameters page is just as product parameter page. You will just notice difference in Main Options.

Bdisplaycolor

On the frontend product page, you will see your icon color selector like this:

Bdisplaycolor

You have your color icons selector displayed, and you want to show different product pictures linked with the color selector. Return to the Hikashop -> Products menu.

Displaycolor

and edit again your product.

Displaycolor

Go back to manage to the “Manage variants” menu.

Bdisplaycolor2.5

Select your variant.

Bdisplaycolor

On “Images” section. Click on the “Upload” button OR on “Add” (+), if the picture is already on your website.

Bdisplaycolor2.52

  • Upload : A new pop up window will be displayed, and so you have to show the path on your computer to upload your product image .
  • Add : A new pop up window will be displayed, and so you have to select the required image among all your website pictures .

Bdisplaycolor

Add your new image that fit your variant color.

Bdisplaycolor2.55

Finally, save it!

Dfltmenu7 5

NOTE : You can have several picture for one variant and delete the picture by clicking cross logo.

Bdisplaycolor2.6

  • Repeat these last actions for each variant so that all the variants of the product get their image.
  • On the product front end page, when you click on a color icon, the picture of the product will change to display the relevant one:

Bdisplaycolor2.61

Create a filter thanks to characteristics

Step 1. Go to Hikashop Configuration screen.

Displaycolor

Step 2. Go to the Display menu, and click on Filters

Displaycolorfilter

Step 3. Here, you create a new filter, so click on the New button.

Displaycolorfilter

Step 4.

– Enter a name to your new filter.
– Choose your type of filter. Here, we choose “radio button”.
– Choose to apply your filter on “Characteristics”
– Select your characteristic, here for example: “coloricon”.
– And in “Extra information”, switch on “yes” the “Submit on click” option

Displaycolorfilter

Step 5. Click on the “Save & Close” or “Save” button to save it.

Displaycolorfilter

The filter should then appear on the products listing and later, you will be able to edit it, unpublish or delete it.

Displaycolorfilter

Now, on the products listing pages, customers will see all the characteristic color icons

Displaycolorfrontfilter

When they will pick a color, the product(s) available with this color (or variants) will be listed.

Displaycolorfilter

How to customize the display

Step 1. Go to Components >> HikaShop >> Configuration.

Displaycolor

Step 2. Click on the Display tab (be careful no to go on the Display menu), and select the CSS section.

Displaycolorcust1.1

Step 3. Edit the CSS just by clicking on the little pen logo.

Displaycolorcust

Step 4. You can read and customize the CSS !

Displaycolorcust

Step 5. Save it.

Displaycolorcust

You will see that your custom CSS will then be selected automatically in the Front-end CSS File dropdown.

Displaycolorcust

Don’t forget to save the main configuration too.

Displaycolorcust4

Example of custom CSS

Now that we saw how to customize the CSS, we will see some examples of useful CSS modifications to optimize for example, your new color icons characteristic selector !

First, the display color in the product page: Before:

Displaycolorfront

In order to change this add at the end of the Css file :

.hikashop_product_characteristics_table td .inputbox {display: none;}

.hikashop_product_characteristics_table td img {border: 2px groove black;}

.hikashop_product_characteristics_table td label {display:inline !important; padding-left: 5px;} 

Edit and Save the Custom CSS and…
This is the result:

Displaycolorfront

And now for the products listing page, the filter display:
Before:

Displaycolorfrontfilter

Just add this at the end of the Css file:
.hikashop_filter_color br{ display: none;}

.hikashop_filter_checkbox label{border: 2px solid black; display: inline-block !important; margin: 4px;}

.hikashop_filter_checkbox a {display: none;}.hikashop_filter_checkbox input{ margin-right:5px; display:none;}

You will see result like this :

Displaycolorfrontcust

If you have any question about this post, don’t hesitate to leave a comment below. And don’t forget to share with your friends if you find it useful! Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

Save 99% money with single purchase! Get All-In-One DEV package: Access all paid products! Unlimited Downloads with more than 300+ PRO items Sign Up Now!
Black Friday & Cyber Monday Sale! Get 50% OFF for your purchase on today! Coupon code: BFCM50 Redeem Now