Fatima Attribute Pricing Builder for WooCommerce

Description

Fatima Attribute Pricing Builder for WooCommerce helps store owners calculate and apply regular prices for existing WooCommerce product variations using a simple pricing formula:

Base price + attribute option values = variation regular price

Instead of manually editing every variation price, you can define a base price for a variable product, set price values for its attribute options, preview the calculated prices, and then apply them to the product variations.

The plugin also lets you set global default prices for WooCommerce global attribute terms. Product option fields can stay empty to use the global defaults, or you can enter product-level overrides for special cases.

It is useful for stores that use repeated option values across many products, such as restaurants, cafes, food stores, gift shops, and customizable product stores.

Key Features

  • Add a base price for each variable product.
  • Set global default prices for WooCommerce global attribute terms.
  • Leave product option fields empty to inherit global defaults.
  • Override global defaults per product when needed.
  • Enter 0 when an option should add no extra value.
  • Reset product option fields back to global defaults.
  • Preview calculated variation prices before applying them.
  • View saved variation price, calculated price, difference, and formula.
  • See a summary of increased, decreased, unchanged, and new prices.
  • Apply calculated values to existing WooCommerce variation regular prices.
  • Uses AJAX preview and apply actions inside the product editor.
  • Works with WooCommerce products and variations only; no order data is modified.

What This Plugin Does

This plugin calculates and applies prices to existing WooCommerce variations.

It is designed for repeated option pricing, such as:

  • Food options
  • Drink sizes
  • Milk types
  • Add-ons
  • Packaging options
  • Product upgrades
  • Custom option price differences

Example:

If the base price is 10 and the attribute option values are:

  • Large: 5
  • Oat milk: 3

The calculated variation price becomes:

10 + 5 + 3 = 18

What This Plugin Does Not Do

This plugin does not create product attributes automatically.

This plugin does not generate product variations automatically.

Before using the price builder, create your attributes and variations using the standard WooCommerce product editor.

How It Works

Global Defaults

Go to WooCommerce > Fatima Attribute Pricing Builder to set default price values for global WooCommerce attribute terms.

For example:

  • Small: 0
  • Medium: 3
  • Large: 5

Any product using these attribute terms can inherit the global values automatically.

Product Overrides

Inside a variable product, open the Price Builder tab.

If a product option field is empty and global defaults are enabled, it uses the matching global default value.

If you enter a number in the product option field, that value becomes a product-level override.

If you enter 0, the option adds no extra value for that product.

Preview Before Applying

Use Preview Prices to calculate prices without saving them to the variations.

The preview table shows:

  • Variation
  • Saved variation price
  • Calculated price
  • Difference
  • Formula

Apply Prices

Use Apply Prices to save the product pricing rules and write the calculated prices to the regular prices of the listed WooCommerce variations.

Screenshots

Installation

  1. Upload the plugin files to the /wp-content/plugins/fatima-attribute-pricing-builder/ directory, or install the plugin through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Make sure WooCommerce is installed and active.
  4. Go to WooCommerce > Fatima Attribute Pricing Builder to set global attribute price defaults.
  5. Edit a variable product and open the Price Builder tab.
  6. Set a base price, preview the calculated variation prices, and apply them when ready.

FAQ

Does this plugin work with simple products?

No. This plugin is designed for WooCommerce variable products and their variations.

Does this plugin create variations automatically?

No. Create product attributes and variations using the standard WooCommerce tools first. This plugin calculates and applies prices to variations that already exist.

Can I set global prices for attribute terms?

Yes. Go to WooCommerce > Fatima Attribute Pricing Builder and set default values for global WooCommerce attribute terms.

Can a product override global prices?

Yes. Enter a value inside the product’s Price Builder tab to override the global default for that product.

What happens if I leave a product option field empty?

If global defaults are enabled for that product, the empty field uses the matching global default value.

If global defaults are disabled, empty fields are treated as 0.

What happens if I enter 0?

Entering 0 means that option adds no extra value for that product.

Does Preview Prices change variation prices?

No. Preview Prices only calculates and displays the expected prices.

Does Apply Prices overwrite existing variation prices?

Yes. Apply Prices writes the calculated values to the regular prices of the listed WooCommerce variations.

Does this plugin change sale prices?

The plugin focuses on calculated regular variation prices. Review your sale price setup separately when running promotions.

Can I use this for restaurant or cafe add-ons?

Yes. The plugin is useful for repeated options such as sizes, milk types, toppings, packaging, and add-ons.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Fatima Attribute Pricing Builder for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial public release.
  • Added base price field for variable products.
  • Added product-level attribute option values.
  • Added global default prices for WooCommerce global attributes.
  • Added product-level overrides.
  • Added option to use global defaults for empty product fields.
  • Added reset fields to global defaults action.
  • Added preview table with calculated prices, differences, and formulas.
  • Added summary badges for price changes.
  • Added apply action to update variation regular prices.
  • Added WooCommerce HPOS compatibility declaration.