check out radio button doesen't work

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
2 years 10 months ago #347068

-- HikaShop version -- : 4.7.0
-- Joomla version -- : 4.2.3
-- PHP version -- : 8.0.25

Hi

At the checkout I have an option field where customers can choose the delivery time.

It was working fine but now, by chance I found out that there are no radio buttons anymore and customer can't be choosen the time anymore.

Please find some pics for your reference how my setting is done.

Looking forward to hear from someone soon.

Thanks

Attachments:

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

  • Posts: 84435
  • Thank you received: 13736
  • MODERATOR
2 years 10 months ago #347071

Hi,

After the line:

$use_bootstrap = $admin ? HIKASHOP_BACK_RESPONSIVE : HIKASHOP_RESPONSIVE;
add the code:
if(strpos($options, 'class="') === false) {
			$options .= ' class="hkform-control"';
		} else {
			$options = str_replace(array('class="form-control'), array('class="hkform-control'), $options);
		}
in the file administrator/components/com_hikashop/classes/field.php and it should fix the problem.
It's linked to the way your template styles the elements with the class "form-control" as it doesn't check the type of input when doing so and thus it treats the checkboxes and radios as if they were text inputs. This code modification will revert the class change we made in the 4.7.0 only for radios and checkboxes (we didn't see any issue with that change on our end with the templates we tried before the release of the 4.7.0).

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

  • Posts: 142
  • Thank you received: 3
  • Hikashop Business
2 years 10 months ago #347126

Thanks for the quick respons, works fine again!

The following user(s) said Thank You: nicolas

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

Time to create page: 0.045 seconds
Powered by Kunena Forum