-- HikaShop version -- : 4.2
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.2
Hi,
I can't find a way to edit this piece of code in product page, section characteristic (those are t-shirt sizes).
<table class="hikashop_product_characteristics_table"><tbody><tr><td>Taglia</td><td><div class="controls">
<label for="hikashop_product_characteristic_13" id="hikashop_product_characteristic_13-lbl" class="radio">
<input type="radio" name="hikashop_product_characteristic[1]" id="hikashop_product_characteristic_13" value="3" checked="checked" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);">XS
</label>
<label for="hikashop_product_characteristic_12" id="hikashop_product_characteristic_12-lbl" class="radio">
<input type="radio" name="hikashop_product_characteristic[1]" id="hikashop_product_characteristic_12" value="2" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);">S
</label>
<label for="hikashop_product_characteristic_14" id="hikashop_product_characteristic_14-lbl" class="radio">
<input type="radio" name="hikashop_product_characteristic[1]" id="hikashop_product_characteristic_14" value="4" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);">M
</label>
<label for="hikashop_product_characteristic_15" id="hikashop_product_characteristic_15-lbl" class="radio">
<input type="radio" name="hikashop_product_characteristic[1]" id="hikashop_product_characteristic_15" value="5" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);">L
</label>
<label for="hikashop_product_characteristic_16" id="hikashop_product_characteristic_16-lbl" class="radio">
<input type="radio" name="hikashop_product_characteristic[1]" id="hikashop_product_characteristic_16" value="6" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);">XL
</label>
</div>
</td></tr></tbody></table>
Specifically I need to change the render code order for "input" and "label" tags.
Now code is like this:
<label for="hikashop_product_characteristic_15" id="hikashop_product_characteristic_15-lbl" class="radio">
<input type="radio" name="hikashop_product_characteristic[1]" id="hikashop_product_characteristic_15" value="5" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);">L
</label>
I need to have render code like this:
<input type="radio" name="hikashop_product_characteristic[1]" id="hikashop_product_characteristic_15" value="5" class="inputbox myclass" size="1" onclick="return hikashopUpdateVariant(this);">
<label for="hikashop_product_characteristic_15 myclass" id="hikashop_product_characteristic_15-lbl" class="radio">
L</label>
Do you have any suggestion about where to do it?
I found almost it in characteristic.php but don't really know if is the right file to do what I need.
Thanks for all your help