While running your WooCommerce store it might become necessary to refund a large number of customer orders.
Refunding an order is possible via the WordPress dashbord, but if the number of orders is more than 100 you might want to do this programmatically using a script and WP CLI.
Here are some examples of why you might need to refund large numbers of orders:
- An online class is cancelled.
- Vendor did not deliver stock.
- Product stock was incorrect and items were oversold.
- Product price has changed and partial refund will be given to customers.
For this how to you’re going to need shell or ssh access to the server you’ll be working on. In this post I’m going to share parts of a script we use to bulk refund large numbers of WooCommerce orders programmatically.
- Get input for the script
- WooCommerce Helper Functions
- Organizing the WP CLI script
- Programmatically refunding a WooCommerce order
- Check the script output
Now, let’s get started with the script!
A common task for ecommerce sites is needing to add a tracking pixel to the Order Completed, or Thank You page of WooCommerce. This pixel will help report data to an external service like Facebook Ads, Google Ads, Pinterest, or a CRM.
In today’s article I’ll share why the practice of adding code to a template is an issue and how to fix it.
- What is Thank You page code
- Why adding code to the thank you template is a potential issue
- Two alternatives to adding code directly to Thank You page template
If you run a WooCommerce Subscriptions site for long enough you will experience a situation where you need to change the Next Payment date for subscriptions. Knowing how to bulk update the next payment date in WooCommerce Subscriptions is a vital tool for developers and shop managers.
In this article I’ll explain how to change the Next Payment date on one or thousands of subscriptions at one time in a few steps:
- Why would I need to bulk update next payment date on a subscription?
- How to update Next Payment date on a WooCommerce subscription
- How to bulk update Next Payment Date in many WooCommerce subscriptions
Let’s get started!
Howdy WooSesh viewer! WooSesh is a free online conference for all things WooCommerce and I had the opportunity to present on how to improve WooCommerce Subscription Sites.
This how-to is a follow up to the How to Hide Zero and Free Orders post. This is a developer focused how-to, where we will dig into some WooCommerce code.
In this how-to I’ll show you how to hide free orders or orders with a zero total in WooCommerce.
On Tuesday, August 28th, I joined Andrew Taylor for Pantheon’s August Couch Coding.
Webhooks is a term used for sending data to a URL when an event happens. An example is when someone subscribes to an email marketing list, the service that manages the list can send data like the subscriber’s name and email to another system like a Customer Relationship Manager.
In this article, you’ll learn how to add and update WooCommerce Webhooks with these
- Add WooCommerce Webhook
- Test WooCommerce Webhook
In April I gave a workshop at WooConf titled RESTful WooCommerce.
In today’s show, I answer questions about removing checkout blocks, and I review a new plugin in the WordPress.org repository.