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!
Merry xMas & Happy New Year sale! Get 50% OFF for your purchase on today! Coupon code: XMASNEWYEAR Redeem Now