- Posts: 142
- Thank you received: 3
check out radio button doesen't work
- ePower2007
-
Topic Author
- Offline
Less
More
3 years 11 months ago #347068
by ePower2007
check out radio button doesen't work was created by ePower2007
-- 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
-- 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
Please Log in or Create an account to join the conversation.
3 years 11 months ago #347071
by nicolas
Replied by nicolas on topic check out radio button doesen't work
Hi,
After the line:
add the code:
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).
After the line:
Code:
$use_bootstrap = $admin ? HIKASHOP_BACK_RESPONSIVE : HIKASHOP_RESPONSIVE;
Code:
if(strpos($options, 'class="') === false) {
$options .= ' class="hkform-control"';
} else {
$options = str_replace(array('class="form-control'), array('class="hkform-control'), $options);
}
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.
- ePower2007
-
Topic Author
- Offline
Less
More
- Posts: 142
- Thank you received: 3
3 years 11 months ago #347126
by ePower2007
Replied by ePower2007 on topic check out radio button doesen't work
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.058 seconds