Characteristic value in label id

  • Posts: 3
  • Thank you received: 0
8 years 9 months ago #230543

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- Browser(s) name and version -- : Firefox

Dear hikashop,

I made some characteristics and selected them for my product.
On the product details page you see the characteristics summed up as radio's underneath each other.
They all show the value as text inside the label (See screenshot).

How can i put this text value inside the label id or class?
This way i can use css to hide the text and show a background color for example which represents the color of a product in this case.

I checked the file "characterics" inside the "types" folder but i only see the table getting build up there. But not the building proccess of the labels.

Code example

Current situation :

<label class="radio" id="hikashop_product_characteristic_18-lbl" for="hikashop_product_characteristic_18">	<input type="radio" onclick="return hikashopUpdateVariant(this);" size="1" class="inputbox" checked="checked" value="8" id="hikashop_product_characteristic_18" name="hikashop_product_characteristic[1]">	Wit	</label>

What i want :
<label class="radio" id="hikashop_product_characteristic_18-lbl Wit" for="hikashop_product_characteristic_18">	<input type="radio" onclick="return hikashopUpdateVariant(this);" size="1" class="inputbox" checked="checked" value="8" id="hikashop_product_characteristic_18" name="hikashop_product_characteristic[1]">	Wit	</label>

I hope you can point me the file which generates the labels so i can add the text value inside the id of the label.

Dear regards,

Bo

Attachments:
Last edit: 8 years 9 months ago by vinylstation.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 9 months ago #230545

Hi,

That's the way Joomla display the radios. Changing that would require hacking the code of Joomla.

Rather than doing that, why not follow our tutorial which explains how to achieve the same thing without any code modification:
www.hikashop.com/support/documentation/2...isplay-by-color.html

The following user(s) said Thank You: vinylstation

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
8 years 9 months ago #230590

Thank you
Didnt know this was possible.

Your a life saver.

Greetings,

Bo

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum