A customer can edit their details from Account Details (edit account) page, under My Account section of WooCommerce. Customer can edit their first name, last name, display name, email address and password from there. These fields are all required, when someone tries to edit. Our goal is to make the… Read More »
Category: WooCommerce
Don’t redirect to WooCommerce product single page after “add-to-cart” error
When you face an error during adding a product to cart on WooCommerce shop or any other archive page, it redirects you to the product single page with an error message. Today our goal is to stop that redirect and stay on the shop or the archive page – wherever… Read More »
Add new WooCommerce checkout field
WooCommerce checkout page is modular. We can easily add new checkout field or edit existing fields or remove existing fields. There are two ways to add custom field in checkout page. They are: using woocommerce_checkout_fields filter and adding a custom field on certain locations. woocommerce_checkout_fields makes it very easy to… Read More »
Update shipping fee on state and postcode change on WooCommerce checkout page
Some theme may already come with the option of automatically updating shipping fee/checkout totals when updating state and/or postcode on WooCommerce checkout page. This is very useful to get proper shipping fee during order. I will say this should be a mandatory option for all themes. But unfortunately, it is… Read More »
Empty WooCommerce cart after successful order
WooCommerce by default empties cart when an order is placed successfully. But there are some plugins and/or themes, which alter this default functionality, and keep items on cart even after an order was completed with successful payment. While this can be useful for more sales, it is also can be… Read More »
Show used coupon details in WooCommerce order email
You may need to show coupon details in the WooCommerce order email. This option is not available by default. We can use woocommerce_email_after_order_table action hook to show used coupon details in order email. This will show coupon details after the order table in the order email. We can get coupon… Read More »
Show sold out badge on WooCommerce search result
Previously we have learned how to show sold out badge on WooCommerce store and archive pages. But that method does not work on search results. We have used woocommerce_before_shop_loop_item_title action hook for store page and category/archive pages. But this hook is not available on search result page. So we will… Read More »
Exclude out of stock WooCommerce products from search result
WooCommerce out of stock products can be excluded from search result by using the _stock_status meta key of products. This meta key checks if a product is in stock or not. We can modify search query using pre_get_posts action hook and load only instock products. Code goes in the functions.php… Read More »
Show sold out badge to WooCommerce Store
If you are looking for a sold out badge for WooCommerce store out of stock products without a plugin, you are at the right place. Keep going through the article to easily accomplish your goal. A nice ‘sold out’ badge on products image, on the shop page or product category… Read More »
How to add purchase note to WooCommerce order email
During checkout on WooCommerce, customer can add a note. This note is visible for admins on order edit screen of WordPress admin. After placing the order, customer receives an email with order details. This email does not contain that purchase not. But did you ever needed to show this note… Read More »