Skip to content
Advertisement

Change product name for generated variable products in WooCommerce

TL;DR version

How do I change the name that is automatically generated for variable products?


Detailed version

The product variations all get names based on the variable attributes they generate from.

Example

Let’s say that there’s the varible product: Vase. Vase has the attribute: Condition, with values:

  • ‘New’
  • ‘Refurbished’
  • ‘Used’.

So if I do this (get and output all variation names):

JavaScript

It will output:

JavaScript

How do I change this, so it becomes:

JavaScript

… So adding the attribute-name after the variation-value.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement