- Posts: 3
- Thank you received: 0
Characteristic value in label id
- vinylstation
-
Topic Author
- Offline
Less
More
10 years 7 months ago - 10 years 7 months ago #230543
by vinylstation
Characteristic value in label id was created by vinylstation
-- 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 :
What i want :
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
-- 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 :
Code:
<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 :
Code:
<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
Last edit: 10 years 7 months ago by vinylstation.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #230545
by nicolas
Replied by nicolas on topic Characteristic value in label id
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
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.
- vinylstation
-
Topic Author
- Offline
Less
More
- Posts: 3
- Thank you received: 0
10 years 7 months ago #230590
by vinylstation
Replied by vinylstation on topic Characteristic value in label id
Thank you
Didnt know this was possible.
Your a life saver.
Greetings,
Bo
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.163 seconds