Style characteristics?

  • Posts: 1119
  • Thank you received: 114
4 years 6 months ago #311361

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

Attachments:

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
4 years 6 months ago #311372

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.

  • Posts: 1119
  • Thank you received: 114
4 years 6 months ago #311373

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.063 seconds
Powered by Kunena Forum