How to Add Fees to Attributes (Per Product)

If you’re looking to add fees to attributes in your WooCommerce store, but want to do it on a per-product basis, you can do so with Attribute Swatches.

For example, if your customer chooses a material of ‘Gold’ for your product, you can add $10 to the base price of the variation.

example of fees with attributes

To add fees to your attributes on a per-product basis, take the following steps:

Note: This guide presumes you already have your attributes set up. If you don’t, you can follow our global or per-product attribute guides.

  1. From your WordPress dashboard, go to Products > All Products and click to edit the product you want to add attribute fees to.
  2. Scroll down to the Product Data section of the edit product page and click the Attribute Swatches tab on the left.
  1. Once here, you’ll see all the attributes you’ve asigned to your product. Expand the Swatches section underneath the heading of the attribute you’d like to add fees to by clicking on it, or hovering over it and clicking the black down arrow.
  1. Next, expand the Fees section underneath the heading of the attribute you’d like to add fees to by clicking on it, or hovering over it and clicking the black down arrow, and enter your fee beside each attribute value.
  1. Once happy with your additional fees, scroll to the top of the page and click the blue Update button in the Publish section to publish your changes.

Now when viewing the product on the frontend of your store, those attribute values will have additional fees assigned to them.

additional fees to attributes woocommerce

Note:

  • If you’re using the default select dropdowns, the fees will not be listed in the dropdown. The fees will still be applied when adding to cart. This should change in WooCommerce 3.6.0 and the fees will be presented alongside the attribute value label.

WooCommerce Attribute Swatches

Turn your WooCommerce product options into color, image, or text swatches. Instantly enhance your customers’ online experience.

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.