maniegrove
Forum Replies Created
-
Hi,
Issue was resolved by updating the subject of subscription confirmation email from default subject to custom subject text.
Hi,
I found solution for that. If any field selected by user only display/added on checkout/order page/email and if not chosen doesn’t add it.
Solution (src->Woocommerce->Product.php):
Just additional condition should be added in condition checking,if (isset($cart_item[‘wckalkulator_fields’][$name]))
to
if (isset($cart_item[‘wckalkulator_fields’][$name]) && $cart_item[‘wckalkulator_fields’][$name] != ”)if (isset($order_fields[$name]))
to
if (isset($order_fields[$name]) && $order_fields[$name]!=”)Hi Pawel,
Awesome.! Works perfectly as what I expected..
Set “next-on-click” class into radio styling. And added below code into forminator form page. works great..
jQuery(document).ready(function($) { $(document).on('after.load.forminator', function(e, form_id) { var next_button = document.querySelector('.forminator-button-next'), click_event = new CustomEvent('change_evt'), clickable_elements = document.querySelectorAll('.next-on-click .forminator-radio'), radios = document.querySelectorAll('.next-on-click input[type="radio"]'); clickable_elements.forEach( clickable_element => { clickable_element.addEventListener('click', wpmudev_clickables_event_callback) } ) function wpmudev_clickables_event_callback() { radios.forEach(radio => { radio.addEventListener('change', wpmudev_change_evt_callback) }) } function wpmudev_change_evt_callback(e) { if (e.currentTarget.checked) { $('.forminator-button-next').trigger('click'); } } }); setTimeout(function() { $('.forminator-custom-form').trigger('after.load.forminator'); }, 100); });
Thanks..
- This reply was modified 2 years, 9 months ago by maniegrove.
Hi Patrick,
Update on above reply. If pagination format changed to steps will come with this class “forminator-step”. But script code output is not as much expected. It simply add display:block to div tag. not a regular behavior like next button click event.
Thanks.
Hi Patrick,
Thanks for your valuable reply for saving my time. But above script code not working to me. From my analyzed “var all_steps = document.querySelectorAll(‘.forminator-step’);” this code not detect properly. Due to there is no class “forminator-step” in form. Is manually i should give this class in each steps or anything wrong correct me.
Thanks Adv.
Hi Nithin,
My requirement is skip the user behavior of click the next button in radio enabled quiz. Simply user need to click anyone radio options it should be redirect to next page/step.
Adv. Thanks.
Hi Nithin,
Thanks for your reply. yes, I known about your suggestions with payment integration field. But In our registration form, have to do some calculation from previous inputs & display result as charts on before payment step. (Like html field with javascript support. so that we can achieve desired result).
Thanks.