1. WooCommerce Variation Prices
  2. Getting Started

Changing the variation price format

The WooCommerce Variation Prices plugin lets you change the format for your variation prices, or even hide it completely.

The following options can be configured on the plugin settings page at WooCommerce → Settings → Products → Variation prices. They control the price that your store displays for the overall variable product. Depending on your theme, this normally appears on your shop and other product listing pages, and under the product name at the top of the single product page.

Price display format

Options

Select an option from the dropdown:

  • Price range e.g. $50 - $100 (the default)
  • Starting price (long) e.g. From $50
  • Starting price (short) e.g. $50+
  • Maximum price e.g. Up to $100
  • List all variation prices
  • Hide the price until a variation is selected
  • Custom

Price range separator

This option only appears when the 'Price range' option is selected. By default, WooCommerce will display a hyphen/dash between the low and high variation prices, e.g. "$50 - $100". You can replace this by adding an alternate character - for example, if you set the price range separator to / then the price will appear as "$50 / $100".

Custom format

This option only appears when ‘Custom’ is selected. It displays two plain text fields which you can use to add any text that you would like to display instead of the usual variation price, in any order:

  • Custom format for products with different variation pricesUse this field to change the price format for any products where different variations have different prices. The following merge tags are supported:
    • {min} - displays the price of the least expensive variation.
    • {max} - displays the price of the most expensive variation.
  • Custom format when all prices are the sameUse this field to change the price format for any products where all the variations are exactly the same price. You can display the price by using either the {min} or {max} merge tags (it doesn't matter which one because all the variations are the same price).

For example, from {min} to {max} + VAT would display the price as: "from $50 to $100 + VAT".

Product type

Use this option to choose which product types the variation price format are used for. You can select variable products, grouped products, or both.

By default, this is enabled for variable products and disabled for grouped products.

Hide the main price on the single product page until a variation is selected

Enable this to hide the overall price for the variable product when the page first loads. When the customer selects a variation, the price of that variation will appear.

Show selected variation price

This option is enabled by default. When the customer selects a variation, it updates the main price on the product page with the price of that variation.

If a product has multiple variation dropdowns then the variation price will appear as soon as the customer selects enough options for the price to be confirmed. For example, if a product has size and color attribute dropdowns - and the price depends on size but not color - then the price will appear as soon as the customer chooses a size.

Note: WooCommerce provides an option to set a default variation for each product. If 'Show selected variation price' is enabled then any products with default variations will always show the price for that variation instead of the price for the overall product.

Disable on Shop page

Enable this option if you do not want the new variation price format to appear outside of the single product page. For example, this option prevents the plugin from changing the way that variable pricing is displayed on the main Shop page, product category pages, and in related products listings on other pages.

Use in admin

This option allows you to choose whether the amended variation price format is used in the WordPress admin, or just on the front end of your website. The option is disabled by default.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.