This is a neat custom function that you can use in your WooCommerce customization. It can be helpful to know the list of orders placed by the current user ID, for example, if they are in their “My Account” page and you have a custom tab where you want to show e.g. only failed orders. Sooner or later this is something you’ll need. Enjoy!Continue reading WooCommerce: Get Current User Orders By Status
There are times when doing manual work – such as creating a WooCommerce coupon – is too time consuming. Imagine you need to bulk generate 1,000 coupon codes – sure you have 2,000 minutes at your disposal to do it all by hand?
Well, today, we’ll take a look at how to bulk generate coupon codes from the WordPress backend by using a simple PHP “for“. Once the function triggers, it will just be a matter of seconds!
Enjoy!Continue reading WooCommerce: How to Bulk Generate Coupons Without a Plugin
No matter what you try, but simply adding an HTML input type=”file” won’t work on the WooCommerce Checkout page. I believe this is a security measure and as such, we need to find a workaround.
The only possible solution is to upload the file BEFORE the checkout is submitted, so that upon “Place Order”, the file is already available in the Media section and can be attached to the order as a simple string (URL).
Such upload can happen via Ajax, so that the customer won’t notice anything on the Checkout page – they are actually uploading a file to your website without even noticing it (yes, you need to apply some security measures, of course).
Here’s how it’s done – enjoy!Continue reading WooCommerce: Upload File @ Checkout Page
If you use the official WooCommerce Subscription plugin, one day or another you will need to know what is the list of subscribers for a given subscription product. In my own specific case, for example, I wanted to know who are the “active” subscribers for my private Bloomer Armada membership, so that I can display some conditional content.
There is a neat WooCommerce Subscription function called wcs_get_subscriptions_for_product(), which does exactly that: it returns an array of subscription IDs given a chosen subscription product ID. Once you have the array, you can then loop through each subscription ID in order to get whatever you need – you’ll see below a few examples of the most common data. Enjoy!Continue reading WooCommerce Subscriptions: Get Subscribers By Product
The WooCommerce My Account register form (when enabled) redirects to… itself once a WooCommerce customer registers. So, what if you want to redirect newly registered users to another page?
Also, when you have a custom Registration page, you may need to redirect users to the… My Account page!
Either way, here’s how to change the default redirect behavior. Enjoy!Continue reading WooCommerce: Custom Registration Redirect @ My Account
The WooCommerce My Account login form redirects to… itself once a WordPress user logs in. So, what if you want to redirect logged in users to another page or a different My Account endpoint?
Also, when you have a custom Login page, you may need to redirect users to the… My Account page!
Either way, here’s how to change the default redirect behavior. Enjoy!Continue reading WooCommerce: Custom Login Redirect @ My Account
The WooCommerce My Account > Downloads endpoint features a table which lists the available downloads. This table has 4 default columns: Product, Downloads remaining, Expires, Download (as you can see from the screenshot below).
Now, it’s very likely you may want to rename these headings into something more readable or understandable. On top of that, you may want to change the content of whatever column – you’ll find a workaround for this as well. Enjoy!Continue reading WooCommerce: Rename Downloads Table Column Title @ My Account
Even when the “shipping calculator” is disabled on the WooCommerce Cart page, a “Shipping to…” string will appear in the cart totals if an address has been previously entered or if geolocation is enabled.
Most WooCommerce store owners, however, wish to remove / hide this text, as it can be confusing for the customer. In this quick tutorial, we’ll study two different workarounds to achieve the same result. Enjoy!Continue reading WooCommerce: Hide “Shipping to…” Address @ Cart
There are times when the WooCommerce countries database is simply not enough. While the WooCommerce team is usually very fast at updating its code (though, the newest country is apparently South Sudan, which became independent in 2011, the year WooCommerce launched!), you may need to DIY in certain cases.
Think of Northern Ireland for example. It’s not a “country”, however most Irish businesses would ship to Northern Ireland and not to “UK”, so having “Northern Ireland” in the Checkout page country dropdowns may help.
In this edge case study, we’ll basically take a look at how to add a custom country, how to make sure this custom country shows at checkout as a possible option (and in the shipping zones admin section), and also how to assign to it a custom list of states. You never know!Continue reading WooCommerce: Add a New Country For Billing/Shipping
When building a WooCommerce store, one important factor to keep in mind is offering your customers seamless page navigation and design experience while ensuring faster page speed and performance. It helps boost customer satisfaction and improve business sales.
According to Akamai’s research, even a 1-second delay affects the websites’ conversion rates by 7%, as your store’s page loading speed is one of the important determining Google’s SEO factors.
Thus, to avoid delays and create a beautiful and appealing website, you must choose an excellent WooCommerce theme for your store.
However, considering the wide range of options – selecting a multipurpose, user-friendly, and attractive WooCommerce theme can get challenging and overwhelming. Hence, today, in this article, we review one of the fastest WooCommerce themes – Shoptimizer.
In this article, we’ll review the theme’s overview, interface, important features, and pricing to see if it’s the right fit for your WooCommerce store. Let’s begin!Continue reading WooCommerce: Shoptimizer Theme Review
The customer’s WooCommerce My Account Orders page displays all their orders, no matter the “status” (completed, processing, on-hold, pending, etc.).
It may happen that you, as a WooCommerce store manager, need to hide certain orders, for example the “on-hold” ones, or all orders with a custom order status.
Thankfully, this is very easy with a few lines of PHP. Enjoy!Continue reading WooCommerce: Hide Specific Orders (e.g. On Hold) From My Account Orders Page
Are you looking for ways to raise funds for a charity event or a non-profit organization? There are a multitude number of ways to go about it.
You can host an exclusive or virtual fundraising event, run email campaigns to collect funds, or even encourage friends and families to contribute their parts to the fund. However, these ways require a lot of legwork, including finding a place to host fundraising events, inviting guests, or hiring an email strategist to run marketing campaigns – which is time-consuming and expensive.
The solution? Collecting online donations via WordPress or WooCommerce plugins to effectively raise funds for special causes, such as charities, non-profits, or relief funds.
This article shares the best, easy-to-use, affordable WooCommerce fundraising and donations plugins you can use. Let’s get started!Continue reading WooCommerce: Donation / Fundraising Plugins
The default WooCommerce frontend product search returns results based on whether the search term is present in the product title, SKU, short and long description.
But what if you also want to search inside a custom field i.e. you have a custom field called “_brand” and you also want to search by “_brand”?
Now, I’m not sure I’ve explained this in plain English, so let’s take a look at a practical example. Enjoy!Continue reading WooCommerce: Search By Custom Field
On top of adding products to cart via URL and redirect to checkout, there is a way to also fill out the Checkout page input fields within the same link.
This could be super handy when you know the billing/shipping details of a registered or guest customer and want to speed up the order process.
It’s important to note that the URL will need to contain personal data e.g. email address, billing address, phone number, and so on; you need to make sure the URL is only shared with the specific customer (in an email, for example, as content is tailored to the subscriber; or only when the WooCommerce customer is logged in if you’re using the URL behind a website button).
Once that’s clear, let’s go ahead, and let’s see how my WooCommerce snippet works. Enjoy!Continue reading WooCommerce: Populate Checkout Fields From URL
Many times, ecommerce customers are unable to find what they’re looking for quickly and easily. There are plenty of reasons for this, ranging from poor site design to a lack of search and filtering options.
By improving product filters in your WooCommerce online store, you can help customers narrow down their search. This makes it easier for them to find the products they’re looking for.
In this tutorial, we’ll show you how to add advanced product filters, and explain why you should.Continue reading WooCommerce: Why & How to Improve Product Filters
You launched a new feature on your WooCommerce store or added a subscription functionality for your customers but aren’t sure how your customers will take it, if it’ll help them, and wish to review the functionality yourself first?
Or, do you take remote orders over the phone and need a solution that lets you place orders on your WooCommerce store on behalf of your customers?
Well, there’s a solution. Several “Shop As A Customer” plugins are available in the market today for distinct WooCommerce use cases. They help you review your WooCommerce store’s functionalities for optimal performance.
So, in this article, we’ll review the top Shop As A Customer WooCommerce plugins and their main features. But first, let’s see how shopping as a customer can benefit your business.Continue reading WooCommerce: How to Shop As a Customer
What does “completed” really mean in regard to WooCommerce orders? No one knows. Admins and customers included.
For physical products, usually that’s when the order is shipped (unless you add a custom order status in between “processing” and “completed“). For digital stores, that’s when the downloads are delivered.
Now, wouldn’t it be cool if we could rename this “completed” order status label to something else? This would make everyone’s life easier. Well, thankfully with a few lines of code this is definitely possible… enjoy!Continue reading WooCommerce: Rename “Completed” Order Status
We’ve already seen how to only display products from a single category on the Shop page. Today, we’ll do something similar, but we’ll target the search result.
Code is somewhat similar to the example I linked to above, so it will use once again the “pre_get_posts” filter in order to modify the query before products are returned on the screen. Enjoy!Continue reading WooCommerce: Exclude Category from Search Results
A remarkable and flawless user experience is the key to building a successful online presence for eCommerce businesses. How often do your customers enter your website, get distracted from running other errands, or abandon your store because of confusing age layouts?
According to the statistics, 38% of site visitors stop engaging with websites due to unattractive content and page layout. Thus, attracting customers’ attention and offering a quality experience through an appealing and intuitive page design is important to ensure customer retention and increase sales.
And your store’s theme is one important element that helps hold visitors’ interest and assist their page navigation. While you can choose from multiple themes for your WooCommerce website, choosing a multipurpose theme that delivers great performance, offers high customization abilities, and facilitates user experience is what you need to deliver a quality experience.
This article reviews one such important theme – the Flatsome WordPress theme. We’ll start with its brief overview and see its interface, features, benefits, and cost to help you determine whether it’s the right choice for your eCommerce store. Let’s go!Continue reading WooCommerce: Flatsome Theme Review
If a WooCommerce product comes with weight and/or height / length / width values, these will be displayed by default in the Single Product page, under the “Additional Information” tab.
Should you need to hide them completely from the frontend while keeping the list of attributes below them, thankfully there’s a PHP one-liner you can use. Enjoy!Continue reading WooCommerce: Hide Weight & Dimensions From Additional Information Tab @ Single Product