[Skip to main content](#vessel-content)

#   Using images for custom field radio options

##

- **[officezen](/forum/user/32545-officezen "View officezen's Profile")**
- [![officezen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32545-officezen "View officezen's Profile") Topic Author
- [ Offline](/forum/user/32545-officezen)

Less More

- Posts: 21
- Thank you received: 0
-
-

3 years 5 months ago [\#351615](#351615) by [officezen](/forum/user/32545-officezen "View officezen's Profile")  *[Using images for custom field radio options](/forum/26-product-category-display/906374-using-images-for-custom-field-radio-options#351615 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.0 -- PHP version -- : 7.4.33  I've followed the tutorial listed on the following page to add characteristics for colours:    www.hikashop.com/support/documentation/2...isplay-by-color.html  However, when I add the image variants the page stops loading as the total variant number becomes over 800.  So my next thought was to add a custom field to show colour options using images instead.  However, I do not see any way to add image to each radio option within custom field - is this not possible just like you do in characteristics?")* was created by *[officezen](/forum/user/32545-officezen "View officezen's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.10.0
-- PHP version -- : 7.4.33

I've followed the tutorial listed on the following page to add characteristics for colours:

[ www.hikashop.com/support/documentation/2...isplay-by-color.html](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html)

However, when I add the image variants the page stops loading as the total variant number becomes over 800.

So my next thought was to add a custom field to show colour options using images instead.

However, I do not see any way to add image to each radio option within custom field - is this not possible just like you do in characteristics?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYzNzQtdXNpbmctaW1hZ2VzLWZvci1jdXN0b20tZmllbGQtcmFkaW8tb3B0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14264
-
-

3 years 5 months ago [\#351616](#351616) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Using images for custom field radio options](/forum/26-product-category-display/906374-using-images-for-custom-field-radio-options#351616 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.0 -- PHP version -- : 7.4.33  I've followed the tutorial listed on the following page to add characteristics for colours:    www.hikashop.com/support/documentation/2...isplay-by-color.html  However, when I add the image variants the page stops loading as the total variant number becomes over 800.  So my next thought was to add a custom field to show colour options using images instead.  However, I do not see any way to add image to each radio option within custom field - is this not possible just like you do in characteristics?")*

Hi,

It's possible to do something similar with a custom item field. You would have to make it as a "radio" type and then in the values you could use the img tag of an image in the "title" input field, like you did with the values of the characteristic.
However, the CSS presented in this tutorial would have to be different as the custom fields don't use the same classes as the characteristics.
I can see that you have a size characteristic which apparently doesn't affect the price or anything of your product. So you could do it the other way around: instead of having a size characteristic with a color custom item field, you could make a custom item field for the size selection, and use the color characteristic for the color selection. That way, you would keep down the number of variants.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYzNzQtdXNpbmctaW1hZ2VzLWZvci1jdXN0b20tZmllbGQtcmFkaW8tb3B0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[officezen](/forum/user/32545-officezen "View officezen's Profile")**
- [![officezen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32545-officezen "View officezen's Profile") Topic Author
- [ Offline](/forum/user/32545-officezen)

Less More

- Posts: 21
- Thank you received: 0
-
-

3 years 5 months ago [\#351650](#351650) by [officezen](/forum/user/32545-officezen "View officezen's Profile")  Replied by *[officezen](/forum/user/32545-officezen "View officezen's Profile")* on topic *[Using images for custom field radio options](/forum/26-product-category-display/906374-using-images-for-custom-field-radio-options#351650 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.0 -- PHP version -- : 7.4.33  I've followed the tutorial listed on the following page to add characteristics for colours:    www.hikashop.com/support/documentation/2...isplay-by-color.html  However, when I add the image variants the page stops loading as the total variant number becomes over 800.  So my next thought was to add a custom field to show colour options using images instead.  However, I do not see any way to add image to each radio option within custom field - is this not possible just like you do in characteristics?")*

Thanks for your input, nicolas.

Size characteristics do have variable prices, so I could not move them to Custom Fields.

I managed to achieve this with the use of Custom Fields as you first suggested - is it possible to do the same "linking icons to images" with Custom Fields?

[ www.hikashop.com/support/documentation/2...y-by-color.html#link](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#link)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYzNzQtdXNpbmctaW1hZ2VzLWZvci1jdXN0b20tZmllbGQtcmFkaW8tb3B0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14264
-
-

3 years 5 months ago [\#351651](#351651) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Using images for custom field radio options](/forum/26-product-category-display/906374-using-images-for-custom-field-radio-options#351651 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.0 -- PHP version -- : 7.4.33  I've followed the tutorial listed on the following page to add characteristics for colours:    www.hikashop.com/support/documentation/2...isplay-by-color.html  However, when I add the image variants the page stops loading as the total variant number becomes over 800.  So my next thought was to add a custom field to show colour options using images instead.  However, I do not see any way to add image to each radio option within custom field - is this not possible just like you do in characteristics?")*

Hi,

Yes. In the data area of your custom field (when you edit it), in the "title" inputs, instead of entering the name of the icons, enter an img HTML tag with the URL of the icon and it should do it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYzNzQtdXNpbmctaW1hZ2VzLWZvci1jdXN0b20tZmllbGQtcmFkaW8tb3B0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[officezen](/forum/user/32545-officezen "View officezen's Profile")**
- [![officezen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32545-officezen "View officezen's Profile") Topic Author
- [ Offline](/forum/user/32545-officezen)

Less More

- Posts: 21
- Thank you received: 0
-
-

3 years 5 months ago -  3 years 5 months ago [\#351676](#351676) by [officezen](/forum/user/32545-officezen "View officezen's Profile")  Replied by *[officezen](/forum/user/32545-officezen "View officezen's Profile")* on topic *[Using images for custom field radio options](/forum/26-product-category-display/906374-using-images-for-custom-field-radio-options#351676 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.0 -- PHP version -- : 7.4.33  I've followed the tutorial listed on the following page to add characteristics for colours:    www.hikashop.com/support/documentation/2...isplay-by-color.html  However, when I add the image variants the page stops loading as the total variant number becomes over 800.  So my next thought was to add a custom field to show colour options using images instead.  However, I do not see any way to add image to each radio option within custom field - is this not possible just like you do in characteristics?")*

I already completed that part as shown in the attached here.

What I'm asking now is whether or no it is possible to link these values to larger images just like outlined in your documentation under "Link icons and pictures" for characteristics:

*Link icons and pictures
Now, onto the second step. You have your color icons selector displayed, and you want to show different product pictures linked with the color selector. Return to the Hikashop -&gt; Products menu,*

- [ ![screen&#95;2023-05-11.jpg](/forum/attachment/57028) ](/forum/attachment/57028 "...2023-05-11.jpg") [ ](/forum/attachment/57028?download=1 "...2023-05-11.jpg")

Last edit: 3 years 5 months ago by [officezen](/forum/user/32545-officezen "View officezen's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYzNzQtdXNpbmctaW1hZ2VzLWZvci1jdXN0b20tZmllbGQtcmFkaW8tb3B0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14264
-
-

3 years 5 months ago [\#351677](#351677) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Using images for custom field radio options](/forum/26-product-category-display/906374-using-images-for-custom-field-radio-options#351677 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.10.0 -- PHP version -- : 7.4.33  I've followed the tutorial listed on the following page to add characteristics for colours:    www.hikashop.com/support/documentation/2...isplay-by-color.html  However, when I add the image variants the page stops loading as the total variant number becomes over 800.  So my next thought was to add a custom field to show colour options using images instead.  However, I do not see any way to add image to each radio option within custom field - is this not possible just like you do in characteristics?")*

That's not possible easily.
It would require custom javascript coding on the product page layout view to be able to do that.
You would need to have a developer work on that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDYzNzQtdXNpbmctaW1hZ2VzLWZvci1jdXN0b20tZmllbGQtcmFkaW8tb3B0aW9ucz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.268 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
