How to Prevent the Display of Attribute Fees

WooCommerce Attribute Swatches gives you the ability to add fees to each attribute. These fees are then displayed in the variations section of your product pages. Including the swatch tooltips if these have been enabled.

However, you may not want the attribute fees to be visible on your product pages at all for a variety of reasons.

Fortunately, it’s possible to prevent the fees from displaying in this location with a code snippet. You can add this to your theme’s functions.php file, or by using a code snippets plugin:

 * Prevent the Display of Attribute Fees
add_filter( 'iconic_was_hide_attribute_label_fee', '__return_true' );

Are you using WooCommerce Attribute Swatches yet?

Start your 14-day free trial right now and get instant access to the features described in this article.

or learn more

Was this helpful?

Please let us know if this article was useful. It is the best way to ensure our documentation is as helpful as possible.

WooCommerce Attribute Swatches

WooCommerce Attribute Swatches

Not got the plugin yet? Get instant access right now, free for 14 days.

or learn more

Still need help?

If you haven't found what you're looking for in our documentation, please contact support.

Get Support