1. WooCommerce Bulk Variations
  2. Advanced Usage

Can I customize the header of single-attribute grids?

When WooCommerce Bulk Variations generates a variation grid of products that have only one attribute (e.g. the size of a t-shirt), the plugin uses the label “Price” as the header of the row (for the horizontal orientation) or column (for the vertical orientation).

Under certain circumstances, this may become irrelevant or misleading. For example, if you configure the plugin to hide prices of equally-priced variations, the "Price" header wouldn’t reflect the actual content of the cells because there is no actual price displayed in the grid. In this situation, you can customize that header by using the code snippet below:

add_filter( 'wc_bulk_variations_single_variation_header', function( $header ) { 
    return 'Quantity';
} );
We've partnered with Codeable to provide our customers with expert help if required.

Related Articles

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