How to set up Paypal on WooCommerce?

I've already tried hard to set up Paypal on WooCommerce without success. I wonder what is the actual steps used to set up PayPal on WooCommerce? My problems are: I tested it with my sandbox but,...

How to Hide Payment Method in Woocommerce based on Postal Code

In this woocommerce setup, I have 2 Payment methods, Paypal and Cash on Delivery. Now how can Cash on Delivery be hidden/disabled for certain Postal codes only. This is the code I found on Gist //...

Woocommerce - Hide payment based on selected shipping method

I've been trying to find out how to hide certain payment gateway based on selected shipping. I have been working with this code but nothing so far. Any help with this? add_action(...

How to check payment method on a WooCommerce order by id?

I want to make some changes if the chosen payment method is COD. On existing WC_Order i have used ($order->payment_method_title == 'Cash On Delivery' ? ... : ... ); to retrieve the title. But i...

How to preview and test the order received page?

I want to test how the order received page template looks in woocommerce. The template says Thank you. Your order has been received. and underneath is current order information. How do i view...

Add fee based on specific payment methods in WooCommerce

In WooCommerce I need to apply a custom handling fee for a specific payment gateway. I have this piece of code from here: How to Add Handling Fee to WooCommerce Checkout. This is my...

Mod_fcgid Internal Server Error and No Confirmation Page with Confirmed Stripe Payment on Wordpress WooCommerce Site

Upon placing a credit card error on vabienusa.com, I get an "Internal Service Error" while the payment is successful via Stripe Dashboard leaving users without a confirmation page. Upshot link:...

List all enabled payment methods in Woocommerce

I'm working on mimicking the Orders Page in the Admin side to the UI of the site. It's like a complete rip off of what's on the backend. I'm stucked with listing all the enabled Payment Methods....

Conditionally hiding et showing payment gateways

In Woocommerce, I would like to hide "paypal" gateway on the "checkout" page before the order is created for the first time and just show "cash on delivery" gateway (labeled as Reserve). On the...

Move payment methods in Woocommerce checkout page

I have to move the payment methods in the checkout page of a Woocommerce website above the order review, but I don't know how. The problem is, that I tried using the following...

Reduce stock only for specific order statuses and payment method in Woocommerce

I'm working on a bit of custom Woocommerce functionality for a client. They use the BACS payment gateway to handle manual payments. However, the gateway currently reduces the stock too early for...

Change default order status for COD payment gateway based on user role in Woocommerce

In Woocommerce, when the payment option is COD, the orders go directly to the "Processing" state. Source: https://docs.woocommerce.com/document/managing-orders/#prettyPhoto I need this to work...

Get payment gateway related data in Woocommerce

I have this code to set WooCommerce variables // Defining User set variables $this->title = $this->get_option( 'title' ); $this->description = $this->get_option( 'description'...

Change COD default order status to "On Hold" instead of "Processing" in Woocommerce

I need help with a problem-related to plugin "WooCommerce Pay for Payment" which counting some extra fee in shipping. Problem is, that this plugin sets automatically "processing" status in order...

Different recipients based on product category in WooCommerce email notification

I am setting up a site for a school that sells both virtual products (fees and excursion payments) and Physical (uniforms) however they would like to have order notifications for each category to...

Auto complete orders when a renewal successful payment is made on a subscription in WooCommerce

I am using WooCommerce Subscriptions plugin for subscriptions and it is recurring the order on subscription renewal and what I need is that when the order recurring order is created after...

How to redirect user after a callback of API EndPoint in WordPress?

I'm creating a payment gateway in woocommerce. After sending a request to payment processor server and return Success as a status code. The server will send a GET request to an EndPoint of my own...

Woocommerce Subscriptions get next payment date when subscription is renewed

I’m using Woocommerce Subscriptions plugin in my Woocommerce site. I want to post the new renewal date for a subscription to an external API when a subscription is renewed. I’m trying to use...

Create Woocommerce shortcodes with order details

I am trying to create some shortcodes related to woocommerce order data. I have a custom page where a customer is redirected to on order completed. The guest checkout is disabled, so all...

Update WooCommerce order status via WooCommerce callback

I created a custom payment gateway plugin that caters payment for WooCommerce site orders via a third party payment gateway. Once the third party received the payment of the customer it then sends...

Extra carrier field for shipping methods in WooCommerce cart and checkout

Inspired from https://stackoverflow.com/questions/49159445/shipping-carrier-custom-fields-validation-in-woocommerce-checkout-page/49163797#49163797 answer code, I use following code which displays...

How to retrieve order ID on Order Pay page in WooCommerce

I am trying to modify the Woocomerce checkout page for orders that are failed or pending payment. On those orders the system comes to the checkout with an order already generated, but I am not...

Dokan Stripe Connect Not Charging Shipping With remove_filter( 'woocommerce_cart_shipping_packages', 'dokan_custom_split_shipping_packages' );

We are using Dokan to power a WooCommerce multi-vendor marketplace. This is configured so that the admin receives a commission as a "collected fee" in Stripe as part of the Stripe Connect payment...

How to prevent form stripe validation

I integrated stripe-element directly into a Woocommerce override (payment.php page) only, when submitting the form, if I check everything, but I don't fill in the credit card numbers, I don't have...

How to fill custom checkout field with previously entered value, like default WooCommerce checkout fields?

I have added a custom field using the below code: add_action( 'woocommerce_before_order_notes', 'bbloomer_add_custom_checkout_field' ); function bbloomer_add_custom_checkout_field( $checkout ) { ...

WooCommerce: Order status based on Payment methods

On Woocommerce we have the option for BACS payments. Some orders are coming through as "Paid" and some aren't. I can't understand why as they are using the exact same payment method. The two...

WooCommerce Admin Custom Order Total calculate [Close]

Currently I'm working on a WooCommerce (5.2.2) project. My client want's create a custom input field for Advance payment in Backend (not for customers), so that when my client received a advance...

Woocommerce show modal on checkout button click

I am implementing a custom payment plugin that extends Woocommerce. When the user clicks on the checkout button, I need to fetch a QR code and display it in a popup. public function...

Increase cart item prices based on payment method in WooCommerce

I want to add percentage value to cart item prices based on the selected payment gateway. The problem I am facing is variation product price is not updating for the product price. Initially...

WooCommerce order emails being sent before payment is complete

On my WooCommerce store, I have the WooCommerce PayPal Payments plugin installed. Here is an image of my current payment structure: Now, when I click on the "Pay with PayPal" button, the PayPal...