DEV3 AI Product Options & Add-Ons for WooCommerce

WooCommerce plugin for extra product options: 25 field types, conditional logic, steps, repeaters and safe price formulas, with a live price in the browser and the authoritative price on the server.

by DEV3 TechnologiesVerified Author(0) 0 downloads 0 viewsUpdated 29 Oct 2026
1 / 7

WooCommerce plugin for extra product options: 25 field types, conditional logic, steps, repeaters and safe price formulas, with a live price in the browser and the authoritative price on the server. Free download: sign in and click Download ZIP. Add your own Google AI Studio (Gemini) API key to switch on the AI features; the documentation says which features work without one.

How it works

We built DEV3 AI Product Options & Add-Ons as a WooCommerce plugin in PHP, with a React option-set builder and a storefront script that shares its pricing engine with the builder's live preview.

Key design decisions

  • One grammar, two parsers, no eval. Price formulas are tokenised and parsed by a small recursive-descent parser written twice, in PHP and JavaScript, with ten whitelisted functions (min, max, round, ceil, floor, abs, sqrt, pow, if, clamp), a 500-character limit and division by zero defined as 0.
  • The server is authoritative. The browser shows a live total, but on add to cart the server re-parses the posted values, re-runs conditions and validation, stores only the visible values, and recalculates prices in woocommerce_before_calculate_totals for both the classic and block cart.
  • Shared fixtures from an independent reference. 127 pricing cases are generated by a separate Python implementation of the rules. Both the PHPUnit and Jest suites must reproduce every expected unit price, one-off fee and total.
  • A logic checker that needs no AI. It finds conditions that can never be true, loops (including loops through steps and sections), price conflicts and structural errors before a set is published.
  • Global sets with precise assignment. Sets apply by category (including sub-categories), tag or product, with priorities, exclusions, per-product overrides and an "own fields only" mode.
  • AI drafts only. With the Google Gemini API connected, DEV3 AI can draft a whole option set from a product description, review the logic, turn a plain-language rule into a formula, write labels and translations, and check uploaded images. Every result is a draft the merchant accepts or rejects.

Architecture

Option sets are stored as normalised field lists. The storefront renders them as accessible, translated markup (swatches, image pickers, steps, repeaters, uploads) and recalculates the total on every change with the shared engine. Uploads go to a protected folder with random names, type, size and minimum-resolution checks, and are deleted after a retention period if never ordered. Options flow into the cart, checkout, orders, emails and the admin, can be edited from the cart, and survive "order again". The API client, encrypted key storage and usage logs come from a shared core used across DEV3's plugins.

What's in the download

  • The installable plugin zip: upload it through Plugins → Add New → Upload Plugin.
  • Full HTML documentation (installation, settings, hooks, FAQ).

Requirements

  • WordPress 6.0 or newer and PHP 7.4 or newer
  • WooCommerce 8.0 or newer, active (classic and block cart/checkout and HPOS are supported)
  • Optional: a Google Gemini API key for the DEV3 AI tools. Every field, condition, price type and upload works without one
  • On Nginx, a deny rule for wp-content/uploads/dev3po-uploads/ so customer uploads can't be opened directly (Apache is covered automatically)

Learn more

Frequently asked questions

The complete source code (version 1.0.0) as a download from your account, with the setup and usage guides shown on this page. It is free: sign in to download it.

More from this author

View all

Related in CMS Extensions

View all