WooCommerce custom field based on selected payment method - wordpress

Is there a way to add a field to the checkout only when a certain payment method is selected? My problem is, besides all the other customer details, I'm required to add the Spanish national number to PayPal payments, but not to the other payment methods.
Thank you for your help in advance!

Related

How to add payment link in invoice and pay later option in woo commerce

Is there anyway to send payment method option in order invoice to the customer so the customer can checkout without making any payment in WooCommerce website.
And afterwards customer can do payment through invoice or any button on the invoice that can take them to payment methods option.
I'm using multiple payment methods and I want to show all of them in the invoice.
Also advices if there's any paid or free plugin.
Right now I'm using Rapyd payment gateway with my website (Just for info)
Also please let me know if we can do same thing by using some forms like Gravity etc
Thanks in advance :)
I did tried a lot of free plugins but none of them are working. Right now I'm able to send invoice to the customer without making any payment but it doesn't show any sort of payment options in it.

How do I get order information from the woocommerce payment screen?

Hi i want to woocommerce checkout page get woocommerce-checkout-review-order-table.
How do I get all the information for that order? The important thing is to be sensitive to situations such as VAT, cargo. I just need information.
You can get all the details of the products you've added into cart on checkout page. Please check if you've added tax(VAT) and shipping (CARGO) class to each product from your WP admin.
Here you can refer WC tax rate docs and you can see here to assign products a tax classes.
Similarly, you supposed to create and assign shipping zones and it's rates as well. You can find docs for creating shipping zone from here
You can find many tutorials to set shipping for your desire requirements however, here is the one for quick reference. WooCommerce Shipping Methods
Hope this may help you in your requirements!
Be noted you can't get order information before you placed order successfully. I answer you based on understanding that your need information of tax, shipping cost on checkout page.

Woocommerce Payment form example

I'm trying to create a form using woocommerce that allows a user to
pay an insurance premium. The user can specify the amount they wish to pay.
The form will be simple, a few fields and the amount the user can specify.
Would anyone have a recommendation on how best to do this?
Thanks

How to implement payment gateway/plugin based on total amount in woo commerce?

I want to implement a payment plugin for woo commerce website when the amount exceeds a particular limit.
Use case: My client wants to show only the Cash On Delivery(COD) payment option if the amount is below of Rs.100 but if the amount exceeds Rs.100, then show COD as well as other payment method option too. Is there any plugin for this purpose on WordPress?
WooCommerce Conditional Shipping and Payments premium plugin providing this type of features. Would you please check below links?
Conditional Shipping and Payments
This extension will not create any new payment gateways for you. However, it allows you to conditionally activate existing payment gateways based on conditions such as the selected shipping method, selected billing/shipping country and state, cart/order total, user role, user e-mail, and more.

WooCommerce add delivery date as hidden product in checkout (Third party payment gateway)

Im developing an e-commerce site with wordpress and woocommerce 2.1. Im using a third party payment gateway (Klarna Checkout) which doesn't offer the customer to specify a delivery date/time. I need to make this feature available but the problem is that the gateway only sends the order-meta from their form, which doesn't offer a date field, when the order is completed. In other words, the standard checkout fields in woocommerce won't be passed to the final order.
My idea of solution is to add a hidden free product called Time, with variations for different time spans, on the checkout page and automatically add this product(with selected variation) to the cart when a customer selects a variation. The specified time would then show as a ordered product when viewing the order in wordpress. How could i do this?
If anyone has a better idea of how to solve this problem feel free to contribute :)
Thanks!
Try this free plugin that adds a delivery date on the checkout page: http://wordpress.org/plugins/order-delivery-date-for-woocommerce/

Resources