Business Bloomer
  • About
  • WooCommerce Blog
  • Online Courses
  • Login
  • 0
  • About
  • WooCommerce Blog
  • Online Courses
  • Login
  • 0

Tag: My Account

WooCommerce: Hide “Shipping Via ___” @ Thank You Page, View Order Page

Especially when you do a lot of custom shipping, showing the shipping method title may not be a good idea. Honestly, the default “via ___” suffix beside the shipping cost doesn’t make much sense anyway.

So, let’s get rid of it. With a 1 liner. Enjoy!

Continue reading WooCommerce: Hide “Shipping Via ___” @ Thank You Page, View Order Page
Category: WooCommerce Tips
Tags: My Account, Shipping, Thank You Page

WooCommerce: Custom Registration Redirect @ My Account

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
Category: WooCommerce Tips
Tags: Customer Registration, My Account, Redirect

WooCommerce: Custom Login 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
Category: WooCommerce Tips
Tags: Customer Login, My Account, Redirect

WooCommerce: Rename Downloads Table Column Title @ 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
Category: WooCommerce Tips
Tags: Downloadable, My Account

WooCommerce: Hide Specific Orders (e.g. On Hold) From My Account Orders Page

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
Category: WooCommerce Tips
Tags: My Account, Order, Order Status

WooCommerce: Rename “Completed” Order Status

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
Category: WooCommerce Tips
Tags: My Account, Order Status, WooCommerce Admin

WooCommerce: Change Default My Account Tab

As you know, once you log in and go to My Account, WooCommerce displays the “Dashboard” tab content (also called the Dashboard “endpoint”). The Dashboard tab features the default “Hello Rodolfo Melogli (not Rodolfo Melogli? Log out) From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.” message.

Now, what if we want to set another My Account tab as the default one upon login, for example the “Orders” one, or the “Downloads” one for a digital downloads WooCommerce business? Well, there are a couple of quick and not-so-quick solutions, enjoy!

Continue reading WooCommerce: Change Default My Account Tab
Category: WooCommerce Tips
Tag: My Account

WooCommerce: Order Again Button @ My Account > Orders

The WooCommerce “Order Again” button displays for ‘completed’ orders on the Thank You page and View Order page. That’s a pity, because it would be useful to show it on the My Account > Orders page as well, as a custom “action”, same as the “View”, “Pay” (if pending), “Cancel” (if subscription), “Edit” (custom snippet), “Confirm” (custom snippet) buttons.

The good news is that we can code it ourselves! And just reuse most of the code we already wrote, as well as rely on the WooCommerce “listener” for the existing “Order Again” button. Enjoy!

Continue reading WooCommerce: Order Again Button @ My Account > Orders
Category: WooCommerce Tips
Tags: Add to Cart, My Account, Order

WooCommerce: Reorder My Account Tabs

When you add a custom My Account tab, or when you’re not happy with the default My Account tabs order (Dashboard – Orders – Downloads – Addresses – Payment methods – Account details – Logout), you may need to change things around.

Here are two super simple snippets to achieve just that: reorder the My Account tabs, so your customers never miss that super important My Account section. Enjoy!

Continue reading WooCommerce: Reorder My Account Tabs
Category: WooCommerce Tips
Tag: My Account

WooCommerce: Let Customers Complete a Processing Order

An order can be marked as “completed” only by the WooCommerce store manager – manually. In certain cases, this operation may be automatic i.e. for downloadable orders.

However, what if we want our customers to complete (confirm) their processing order instead? Well, this is quite easy: we display a “CONFIRM ORDER” button under My Account > Orders, and on click some code triggers the status change. Enjoy!

Continue reading WooCommerce: Let Customers Complete a Processing Order
Category: WooCommerce Tips
Tags: My Account, Order, Order Status

WooCommerce: Sync Billing Name & WP User Name

When someone places an order via the WooCommerce checkout, there is a function (process_customer) that saves the checkout first & last name to the customer Billing address (WooCommerce). The same function also overwrites that same WP user first & last name (WordPress).

The same happens when someone updates the Billing address via the My Account edit address tab. There is a WooCommerce function (save_address) that copies Billing first & last name to the WP user first & last name.

You’d think that was sufficient to keep billing names and WP user names in sync – well, nope. You can also update billing first & last name from the user edit profile page (WP dashboard). In such case, WP user first & last name is NOT updated, and billing and user names are not in sync.

Today, we’ll study some code to make that happen, so that you never have to worry again about inconsistencies. Enjoy!

Continue reading WooCommerce: Sync Billing Name & WP User Name
Category: WooCommerce Tips
Tags: My Account, WooCommerce Admin

WooCommerce: Redirect My Account Tab to URL

It’s nice to know the stuff I share here is used on my own website! In this case scenario, I have a custom “My Courses” tab under the My Account navigation menu; instead of showing the My Account tab content with a link, I want to save time and immediately redirect users to https://www.businessbloomer.com/woocommerce-online-courses/ instead.

So, how do you redirect My Account tabs to custom URLs? Well, thankfully it’s just a matter of a few lines of code. Enjoy!

Continue reading WooCommerce: Redirect My Account Tab to URL
Category: WooCommerce Tips
Tags: My Account, Redirect

WooCommerce: Horizontal My Account Navigation Menu

The WooCommerce My Account pages feature a “left sidebar” navigation menu (by default, links are: “Dashboard”, “Orders”, “Downloads”, “Addresses”, “Account details”, “Logout”).

A cool (and easy) improvement may be moving such navigation to the top, and displaying it horizontally instead of vertically. You’d think this is a complex PHP customization… but you’ll feel great when you’ll notice you just need CSS for that.

Please note the CSS may change slightly based on your theme, in case it applies custom CSS to the default WooCommerce My Account navigation panel. I will list below a couple of solutions for default WooCommerce and for the Storefront theme, so at least you have an idea of what you could need in terms of tweaking it. Enjoy!

Continue reading WooCommerce: Horizontal My Account Navigation Menu
Category: WooCommerce Tips
Tags: My Account, Storefront Theme

WooCommerce: Login Redirect to Previous URL @ My Account

We’ve already seen how to set a custom My Account login redirect URL by user role – but today we want to cover another case scenario: redirecting users to the previous URL (referrer) after logging in from the My Account page.

Actually, WooCommerce already prints a hidden input field (“_wp_http_referer“) in the login form thanks to wp_nonce_field(), but for some reason this is not enough to allow the actual redirect.

Thankfully, the WooCommerce process_login() function provides another workaround: if $_POST[‘redirect’] is set, the form will consider redirecting to this URL instead of the default My Account Dashboard! This means we can simply add a new hidden field to the login form with that exact name (“redirect”), so that we can make that function trigger the redirect we want.

Easier coded than said, so let’s see how it’s done. Enjoy!

Continue reading WooCommerce: Login Redirect to Previous URL @ My Account
Category: WooCommerce Tips
Tags: Customer Login, My Account, Redirect

WooCommerce: Login Redirect by User Role @ My Account

There are times when you don’t want customers to login and be redirected to the default “My Account” dashboard. Maybe because you have a membership site and you want them to go to a custom “Welcome” page, or maybe you wish to send them straight to their “My Account” > “Downloads” subsection.

No matter the why, for sure figuring out how to achieve a custom redirect once a user logs in from the “My Account” page is quite straightforward. The hook we’ll use is called “woocommerce_login_redirect” and allows us to trigger a safe redirect whenever a customer clicks on the LOGIN button. Enjoy!

Continue reading WooCommerce: Login Redirect by User Role @ My Account
Category: WooCommerce Tips
Tags: Customer Login, My Account, Redirect, User Roles

WooCommerce: Add a Custom Download File @ My Account

If you sell no downloadable products, the Downloads section of the WooCommerce My Account page will always be empty (in this case, you should completely hide the My Account Download tab). Besides, if you do sell downloadable products but customers never purchased such items, the same will happen.

So, what if you wanted to grant at least a default download file to all your customers? Well, the “woocommerce_customer_get_downloadable_products” WooCommerce filter allows us to add files to the list (empty or non empty) of customer downloadable files. Here’s how it’s done!

Continue reading WooCommerce: Add a Custom Download File @ My Account
Category: WooCommerce Tips
Tags: Downloadable, My Account

WooCommerce: Rename “My Account” If Logged Out @ Nav Menu

You could install a free WordPress plugin to enable “LOGIN / LOGOUT” menu links – or you could use a super simple snippet. Once again, the less plugins you use the better, especially if you can replace them with a few lines of code.

In this case study, I have added the “My Account” page to the navigation menu and I want that label to change to “Login” if the user is logged out. Enjoy!

Continue reading WooCommerce: Rename “My Account” If Logged Out @ Nav Menu
Category: WooCommerce Tips
Tags: Logged in, My Account

WooCommerce: File Upload @ My Account Registration Form

You can add first and last name to the WooCommerce registration form (easy, no?). Or maybe a custom radio field. And why not, a file upload input – which is able to load an image from the user’s browser, assign it to the form, and add the image to “Media” in your WordPress install.

And today we’ll see exactly that. Unfortunately the “woocommerce_form_field” function does not allow (yet, maybe) to generate file input fields, so we’ll just use basic HTML. Enjoy!

Continue reading WooCommerce: File Upload @ My Account Registration Form
Category: WooCommerce Tips
Tags: Custom fields, Customer Registration, My Account

WooCommerce: Deny Automatic Login Upon Registration @ My Account

If you’ve enabled customer registration on the My Account page, you will know that a new user is automatically logged in as soon as they successfully register.

This is great – however in certain cases it could be “dangerous” (for example, if you need to manually approve each user).

As I was searching through the WooCommerce plugin code, I found a great action filter that can immediately stop this from happening – I love one-liners! So, here’s the quick fix.

Continue reading WooCommerce: Deny Automatic Login Upon Registration @ My Account
Category: WooCommerce Tips
Tags: Customer Registration, My Account

WooCommerce: Separate Login and Registration Pages

There are times when you need to send logged out customers to a Login page and unregistered customers to a distinct Register page.

As you know, the WooCommerce My Account page, which contains the [woocommerce_my_account] shortcode, has both Login and Registration forms when registration is enabled on the My Account settings.

This is not always a good idea, mostly when you use landing pages or sales pages with a specific goal e.g. user registration.

Clearly, when this happens, you don’t want to have a login form there as well. My solution provides two new shortcodes, one for the login form and one for the register form.

Please be aware that the Registration Page shortcode content is copied from WooCommerce template files – if WooCommerce releases an update or makes a change to these files, you may need to update the snippet as well.

Give it a go, feedback is much appreciated ๐Ÿ™‚

Continue reading WooCommerce: Separate Login and Registration Pages
Category: WooCommerce Tips
Tags: Customer Login, Customer Registration, My Account

Posts navigation

  • 1
  • 2
  • Next
Recent Posts
  • WooCommerce: Edit “Ship to a Different Address?” @ Checkout
  • WooCommerce: Search Products By SKU
  • WooCommerce: How to Make Your Store More Mobile-Friendly
  • WooCommerce: Hide Products Based On Custom Field / ACF Value
  • WooCommerce: Display All Single Variations (Shortcode)
About Business Bloomer

With 100,000 (and growing) monthly organic sessions, Business Bloomer is the most consistent, most active and most complete WooCommerce development/customization blog.

Of course this website itself uses the WooCommerce plugin, the Storefront theme and runs on a WooCommerce-friendly hosting.

Join 75,000+ Monthly Readers & 16,500+ Subscribers.

Become a Business Bloomer Supporter.

Join BloomerArmada and become an Official Business Bloomer Supporter:
easy-peasy, and lots of perks for you.
See your Benefits →
Popular Searches: Visual Hook Guides - Checkout Page - Cart Page - Single Product Page - Add to Cart - Emails - Shipping - Prices - Hosting
Latest Articles
  • WooCommerce: Edit “Ship to a Different Address?” @ Checkout
  • WooCommerce: Search Products By SKU
  • WooCommerce: How to Make Your Store More Mobile-Friendly
  • WooCommerce: Hide Products Based On Custom Field / ACF Value
  • WooCommerce: Display All Single Variations (Shortcode)
Latest Comments
  • Rodolfo Melogli on WooCommerce: Multiple PayPal Accounts (Solved)
  • Rodolfo Melogli on WooCommerce: “Hide Out of Stock Items” Exception
  • Rodolfo Melogli on WooCommerce: Allow Customers To Define the Product Price
  • Rodolfo Melogli on WooCommerce: Hide Specific Orders (e.g. On Hold) From My Account Orders Page
Find Out More
  • Become a WooCommerce Expert
  • WooCommerce Blog
  • WooCommerce Online Courses
  • WooCommerce Weekly
  • Bloomer Armada
  • Affiliate Program
  • Contact
Contact Info

Ciao! I’m Rodolfo Melogli, an Italian Civil Engineer who has turned into an international WooCommerce expert. You can contact me here:

Email: [email protected]

Twitter: @rmelogli

Hire me by the hour: Get Quote ยป

VisaMastercardAmexPayPal Acceptance Mark
Business Bloomer © 2011-2023 - Terms of Use - Privacy Policy