WooCommerce: Sort By Featured Products @ Shop

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:15 de novembro de 2023
  • Tempo de leitura:4 minutos de leitura

The “Default sorting” dropdown sorts products by menu_order and then title on the WooCommerce Shop, Category and Tag pages. But what if you want to place the featured products first in the list (I mean, why would anyone set products as featured if you can’t really “promote” them on the Shop page)? In today’s case…

Continue lendoWooCommerce: Sort By Featured Products @ Shop

WooCommerce: Disable “You cannot add another __ to your cart” Message

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:8 de novembro de 2023
  • Tempo de leitura:3 minutos de leitura

When a WooCommerce product is set to “Sold Individually”, you can only add 1 item to the cart. If you try a second time, you will get the “You cannot add another “%s” to your cart” error message, so that the customer is aware that there is already that product in the cart. However, you…

Continue lendoWooCommerce: Disable “You cannot add another __ to your cart” Message

WooCommerce: Filter By Order Status @ My Account Orders

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:8 de novembro de 2023
  • Tempo de leitura:5 minutos de leitura

Here’s a great customization that all store managers should implement on their WooCommerce website! For some reason you can refine the backend orders table if you are an admin, but logged in customers can’t filter by order status under My Account > Orders! This is pretty bad, especially if you run a store where customers…

Continue lendoWooCommerce: Filter By Order Status @ My Account Orders

WooCommerce: Super Simple EU Vat Number Validation (VIES)

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:1 de novembro de 2023
  • Tempo de leitura:4 minutos de leitura

As an EU merchant dealing with VAT customers, I often find myself doing manual checks on the VIES VAT number validation website. Thankfully most of my customers are outside the EU so I don’t use the tool often, but still, for a developer this is just a waste of time! By studying the available options…

Continue lendoWooCommerce: Super Simple EU Vat Number Validation (VIES)

WooCommerce: Variable Product “Cumulative” Stock Quantity

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:1 de novembro de 2023
  • Tempo de leitura:5 minutos de leitura

When a variable product stock quantity is managed at variation level, the stock status is either “In stock” or “Out of stock” without any mention of the quantity. It would be cool, however, and in certain cases only, to show the total stock quantity for all single variations. If variation Red has 3 in stock,…

Continue lendoWooCommerce: Variable Product “Cumulative” Stock Quantity

WooCommerce: Programmatically Rename Variable Product Attribute Options

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:25 de outubro de 2023
  • Tempo de leitura:3 minutos de leitura

I think the easiest way to explain this customization is with a case study. Go to this variable product page, that I use to sell sponsorship packages on the WooWeekly newsletter: https://www.businessbloomer.com/shop/newsletters/wooweekly-sponsorship/ Now, take a look at the “Start in” attribute dropdown. That’s where a company picks the month for when the sponsorship starts. You…

Continue lendoWooCommerce: Programmatically Rename Variable Product Attribute Options

WooCommerce: A/B Testing, Statistical Significance Formula, Case Studies

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:24 de outubro de 2023
  • Tempo de leitura:16 minutos de leitura

If you’ve never run an A/B Test (“Split Test“) on your WooCommerce website, this article is for you. Also, if you want to discover how I run my tests without third party software on this same website, feel free to read on. So, why A/B Testing a WooCommerce website? Because your design, development and business…

Continue lendoWooCommerce: A/B Testing, Statistical Significance Formula, Case Studies

WooCommerce: Filter By Featured @ Products Admin

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:20 de outubro de 2023
  • Tempo de leitura:4 minutos de leitura

Unfortunately, if you still use the “star icon” to feature your WooCommerce products in the admin dashboard, there is no way to “sort by featured” or “filter by featured” in the Products table. If you’ve featured many products, it’s basically impossible to see them all at once, unless you scroll through many pages of products.…

Continue lendoWooCommerce: Filter By Featured @ Products Admin

WooCommerce: Switch User Role If Customer Spent More Than $

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:20 de outubro de 2023
  • Tempo de leitura:4 minutos de leitura

Many businesses allow their customers to unlock benefits and discounts once a certain spend amount is reached. Think about a “VIP club“, where members can get an exclusive 20% discount once they reach $1,000 worth of store purchases. Let’s also say that, when the threshold is reached, you want to promote users from the “customer”…

Continue lendoWooCommerce: Switch User Role If Customer Spent More Than $

WooCommerce: Customize Product Search Form HTML

  • Autor do post:
  • Categoria do post:Woocommerce
  • Última modificação do post:11 de outubro de 2023
  • Tempo de leitura:5 minutos de leitura

The “Search products…” WooCommerce form usually appears in the website header and/or the Shop page sidebar based on your theme settings and widget setup. It usually features an input form with a magnifying glass icon (unless your theme customizes it via CSS), without a visible search button, and on enter it redirects users to the…

Continue lendoWooCommerce: Customize Product Search Form HTML