Skip to main content

Style characteristics?

More
7 years 5 days ago #311361 by kyratn
Hi,

We have set characteristics display method to Radio Button.

Any chance you could consider to add additional class like "Active" to label which input is checked or maybe wrap values in span?

Right now in order to have different look for checked label you must wrap each value in span via characteristics edition page. This creates some display issues in back-end and while importing, exporting data.



Thank you

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

More
7 years 4 days ago #311372 by nicolas
Replied by nicolas on topic Style characteristics?
Hi,

Well, the thing is that the radios/dropdowns are actually displayed by Joomla there.
HikaShop only calls the display library from Joomla:
$html = JHTML::_('select.'.$characteristic_display.'list', $this->values, $map, 'class="custom-select" size="1"' . $options, 'value', 'text', (int)$value,$id );
in administrator/components/com_hikashop/types/characteristic.php
And the Joomla display library doesn't set a class for the active element nor does it have an option to be able to do that.
So we would have to switch to displaying the HTML ourselves there.
Possible, but it's more complex than just an if.
And it's the same with have a span around the text.
I've noted that on our todo list for now.

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

More
7 years 4 days ago #311373 by kyratn
Replied by kyratn on topic Style characteristics?
Hi,

Thanks for clarification. Any solution is welcome here, even adding new selection method :)

Thanks again

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

Time to create page: 0.213 seconds
Powered by Kunena Forum