WooCommerce disable checkout based on shipping info that was added - wordpress

I'm looking for a way to disable the checkout button for all available payment methods based on what information was just added as the shipping address. I tried using the hook woocommerce_checkout_process but I can't disable the checkout methods with this hook and it sort-of lets people checkout (just the order does not goes through) and only shows the message after the credit card information has been added and the user has clicked the checkout button. Any suggestions how I can do this?

Related

WooCommerce updating the shipping method depending on the shipping choice field changes

In my online store, there are sevral shipping methods. I added a plugin for distance delivery (Boxtal Connect)
I would like to be able to autorefresh total amount when a new shipping method is chose on the checkout page.
I think the selector is name=shipping_method[0] and the trigger is jQuery('body').trigger('update_checkout',
I would like to find an code to add on my child function.php to do it.
In fact it works well on the cart page and I think it is a native woocommerce function.
Thanks for you help

Create checkbox option on checkout page for recurring order payment

I need a check-box on checkout page for setup recurring payment.
I want to give ability to the user to select option of autorenew or manual renewal of his subscription using woocommerce checkout page. If they select the checkbox, the subscription should autorenew on next interval. If they don't select it, the subscription should be manual.
I have used woocommerce and woocommerce-subscription plugin for this.

Customizing Woocoomerce Cart page

Hi I want to add checkbox on my Cart page of woocommerce when user check the box it will automatically subscribe them for my product. I have bought woocommerce subcriber plugin but I don't know how to add checkbox which will have this functionality in cart page.
I will try to answer to the best of my knowledge given that I am not proficient with woocommerce. But the general idea is that, you add your checkbox on the cart page of the theme and pass the the value via form data(like name="subscribe" value="True/false") to the data handler(most probably the next page in the checkout cycle which would be delivery or payment options page), which will then call the plugin and pass the subscriber info to it. I would say that it would make sense to put the checkbox where you collect customer info but hey your site, your choice.
Sorry if this is a very generic answer and not a detailed one. I am very new to this myself. Best of luck.

woocommerce check out field

I use checkout by amazon or by paypal express checkout, when user clicks on amazon or on pay pal , when control comes back on my site after logging in paypal or on amazone, I have no extra checkout field, that I created using checkout field editor ('How did you find Us?'), Just the order summary is listed, how can I show my extra created field?
I use woocommerce plugin for shopping cart.
Checkout fields are only shown on checkout, when someone returns from a payment gateway (paypal in your case) by default they are logged in. So in order to show a text area after someone returns from paypal, you will have to edit the order summary template and add a check to it. So if the user is reffered from paypal, only then they will see your custom form.
A better way would be by using "woocommerce_payment_complete" hook and redirect the user to another page where you can add your custom functionality/ Gravity form shortcode or use contact form 7.

Woocommerce: interrupt checkout just before payment step based on user roll

We are looking into adding a wholesale signup to a retail woocommerce website, and would like to make it so that if a customer is already registered as a normal retail customer (or is a new customer), and has items in their cart, and would like to apply to become a wholesale reseller during the checkout process 'that they can check a box (preferred), or press a button just before the final payment step.
I am presently using the "Woocommerce MultiStep Checkout Wizard" plugin that is ajax based, and presents the checkout steps in the following order..
Billing Details
Ship Details
View Order (with cart items and order summary)
Payment
Checking that box in step 3, or pressing that button should interrupt the checkout process and present them with an info & additional wholesale signup page with some extra user meta fields (e.g., fed tax id information, etc) that would gather any additional required information, and change their roll to something like "Wholesale Applicant", and would then postpone the final payment step (based on that specific roll), and will prevent final payment until their roll is either changed to "Wholesale Customer" (accepted), or is rejected by the shop admin. In the latter case, their roll would be manually reset to "Retail Customer".
I also am using the "Varktech Pricing Deals for Woocommerce" plugin to manage wholesale discounts based on the user's roll
An email should also be sent to the shop admin whenever a customer wants to go the wholesale route.
NOTE: the wholesale signup page should have a way to cancel and complete the payment step - in case they change their mind too.
I am not a programmer, but have searched for a plugin that could do this with no luck (so far).
I think sometimes newly added checkout/cart based plugins add/edit/update, Please (Resetting checkout fields ) follow below links
Resetting the checkout fields >>> To reset your fields back to the originals, go to WooCommerce > System Status > Tools and look for the “Checkout Fields” section. Click the ‘reset’ buttons and any customisations to your fields will be removed.
After that check all ... all for the best! ...

Resources