Change or hide the new custom paymentgateway
-
Hi, Really thank you fro this great plugin . And it is working very good . Let me know how to hide the new payment gateway based on location of customer .
Currently i add a custom payment gateway . But i need to hide new one when customer select specified billing_state. For this i write the following jQuery
jQuery("[name='billing_state']").change(function(){ var state=jQuery('[name="billing_state"]').val(); if(state=="123" ){ $("#payment_method_my_new_gateway").hide(); } });
It’s working . But after this an ajax call from the woocommerece for updating the order is happen . checkout?wc-ajax=update_order_review And it will show my new paymentgateway . Please tell to how to modify the result .
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change or hide the new custom paymentgateway’ is closed to new replies.