1. Home
  2. Knowledge Base
  3. WooCommerce Bulk Variations
  4. 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. This is aimed at developers and if you don't know how to use it then you can use our plugin customization service.

add_filter( 'wc_bulk_variations_single_variation_header', function( $header ) { 
    return 'Quantity';
} );

Related Articles

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