Remove Add to Cart Button on Condition
-
Working on WooCommerce product with Gravity Forms. In a product we have a multi-page form where we provided save and continue later link. This functionality is added to comeback and finish the form later at the user’s convenience.
Everything works fine, except but when someone saves the form, i want to hide the Submit | Add to Cart button removed or hidden with jQuery or custom function.
This is the page i need to help with: https://www.licensedagents.com.au/product/product-amarnath/#_form_38
Currently the save and continue later link is outputting the following code:
<a href="javascript:void(0);" id="gform_save_39_link" class="gform_save_link" tabindex="10" onclick="if(window["gf_submitting_39"]){return false;} window["gf_submitting_39"]=true; jQuery("#gform_save_39").val(1); jQuery("#gform_39").trigger("submit",[true]);" onkeypress="if( event.keyCode == 13 ){ if(window["gf_submitting_39"]){return false;} window["gf_submitting_39"]=true; jQuery("#gform_save_39").val(1); jQuery("#gform_39").trigger("submit",[true]); }">Save and Continue Later</a>
After the Save and Continue Later link clicked, the page/form updates with a email input field for the user to receive the link to comeback.
And the button’s ID is gform_submit_button_39, which i want to hide on Save and Continue Click event.
Following
Thanks in advance.
AmarnathThe page I need help with: [log in to see the link]
- The topic ‘Remove Add to Cart Button on Condition’ is closed to new replies.