← All plugin documentation

OptionRocket – Add-Ons for WooCommerce

Guide for version 1.0.3 · WordPress 6.4+ · WooCommerce 8.0+ · PHP 7.4+

OptionRocket adds extra fields and paid options to WooCommerce products: gift messages, engraving, sizes, upgrades, dates, checkboxes and customer-set prices. Shoppers fill them in on the product page, see the price change as they go, and every choice follows the order through the basket, checkout, order screen and emails.

The free version has 11 field types, every pricing type except per-letter, option groups, the live total and the importer. Pro adds conditional logic, price formulas, per-letter pricing, image and colour swatches, and file uploads. Compare free and Pro.

1. Install and activate

  1. Make sure WooCommerce is installed and active.
  2. Go to Plugins → Add New Plugin. Click Upload Plugin and choose the OptionRocket zip (for Pro, the zip from your purchase email). Then Install Now and Activate.
  3. With Pro, Freemius asks for your licence key the first time. See Already have a licence key?

OptionRocket’s own screen is WooCommerce → OptionRocket, with the Settings and Import tabs. Fields themselves are added on products and in option groups.

2. Add your first field

  1. Edit a product and open Product data → Options & add-ons.
  2. Click Add field and give it a label, such as “Gift message”.
  3. Choose a Field type. For dropdowns, radio buttons, button choices and checkboxes, click Add choice for each choice and give it a price if it costs extra.
  4. Set a price for the field if it has one, tick Required if shoppers must fill it in, and Update the product.

Drag fields by their header to reorder them. Each field has Duplicate and Delete field buttons, and Expand all opens every field at once.

A product shows its own fields plus any option groups that apply to it. To show only the product’s own fields, tick Don’t show global option groups on this product. The tab lists the groups that do apply.

3. Field types

TypeUse it for
Short textNames, engraving, a short message.
Long textGift notes and instructions.
NumberSizes, quantities of extras, measurements. Can be priced per number entered.
EmailAn address for an e-gift or delivery update.
DateDelivery or event dates, with an earliest and latest date.
DropdownOne choice from a list.
Radio buttonsOne choice, with every choice visible.
Button choicesOne choice shown as tappable buttons, as on the product page mock-ups.
CheckboxesAny number of choices, with a minimum and maximum if you like.
Customer-defined priceDonations, tips and “pay what you like”, with a minimum and maximum.
Heading / textA heading or a line of text between fields. Shoppers don’t fill it in.
Image swatches ProOne choice picked by picture, such as a fabric or finish.
Colour swatches ProOne choice picked by colour.
File upload ProA logo, photo or artwork attached before buying.

4. Field settings

  • Label, and Hide label if the field explains itself.
  • Description: a line of help under the field.
  • Required: the product can’t be added to the basket until it’s filled in.
  • Placeholder and Default value. For choices, tick Default next to the choice that starts selected.
  • Min characters and Max characters for text.
  • Allowed characters: anything, letters only, numbers only, or letters and numbers.
  • Min value and Max value for numbers and customer-defined prices.
  • Earliest date and Latest date for dates.
  • Min choices and Max choices for checkboxes.
  • Field id: a short name used by formulas and conditional logic, such as width.
  • CSS class: for your theme, if you want to style a field differently.

Shoppers get a clear message beside the field if something is missing or out of range, and nothing is added to the basket until it’s right.

5. Pricing

A field, or each choice, can have one of these prices:

PriceHow it’s chargedExample
No extra chargeFree.A free gift message.
Flat fee (once per line)Once per basket line, whatever the quantity.A £3 gift box costs £3 for one mug or ten.
Per item (× quantity)Multiplied by the quantity.Large adds £2 to each mug.
Percentage of product priceA share of the product or chosen variation’s price.Gloss finish adds 10%.
Price × number enteredThe shopper enters a number and pays for each one.Extra wicks at 50p each.
Per letter ProEach character typed. Spaces are free.Engraving at 50p a letter.
Formula ProWorked out from other answers. See price formulas.A sign priced by width × height.

Option prices follow your shop’s Display prices in the shop tax setting, the same as product prices. If a shopper changes the quantity in the basket, prices are worked out again so a flat fee is still charged only once.

6. Option groups for many products

An option group is a set of fields you build once and show on many products, such as “Gift wrapping” across the whole shop.

  1. Go to Products → Option groups and click Add New.
  2. Add fields exactly as you would on a product.
  3. In the Show on box, choose All products, Products in these categories or These products. Use Never show on to leave out particular products.
  4. Set the Position. Lower numbers show first; a product’s own fields are at 10, so a group at 5 shows above them and a group at 20 below.
  5. Publish the group. Drafts never show to shoppers.

7. What shoppers see

  • Fields appear above the Add to basket button. On variable products they appear under the variation choices.
  • Each choice shows its price, such as “+£2.00” or “+£0.50 per letter”, unless you turn that off in Settings.
  • A running total shows what the options add and the final price, and updates with each choice, the quantity and the chosen variation.
  • In shop lists and category pages, products with options show a button (Select options by default) that opens the product page, because options are chosen there.

8. Basket, orders and emails

Each choice is shown under the product in the basket, mini basket, checkout, the order screen in wp-admin and the customer and admin emails, with its price. This works with the Cart and Checkout blocks and with the classic basket and checkout pages. Order again brings the same choices back into the basket. OptionRocket supports WooCommerce’s High-Performance Order Storage (HPOS).

9. Settings

WooCommerce → OptionRocket → Settings.

SettingWhat it does
Shop button textThe button shown in shop lists for products with options. Default: “Select options”.
Show a running totalShows the options total and final price on the product page.
Show each option’s priceShows “+£2.00” and similar next to choices.
File uploads ProThe allowed file extensions (default jpg, jpeg, png, gif, webp, pdf) and the largest file in MB (default 5).

10. Moving from Product Add-Ons or Product Options

OptionRocket can copy fields from WooCommerce Product Add-Ons and from Barn2’s Product Options for WooCommerce. It only reads their data, so you can switch back at any time.

  1. Activate OptionRocket with the old plugin still active. While WooCommerce Product Add-Ons is active, OptionRocket keeps its fields off your shop, so shoppers never see two sets.
  2. Open WooCommerce → OptionRocket → Import. It shows how many products have add-ons and how many global groups were found.
  3. Click Import now. Product add-ons become product fields, and global groups become option groups on the same categories, with their order and prices. Products that already have OptionRocket fields are skipped, so running it twice doesn’t duplicate anything.
  4. Check a few products, then deactivate the old plugin. Your fields go live straight away.

Past orders keep showing their add-ons, because those are stored on the order. Barn2’s Product Options has some field types OptionRocket doesn’t, such as products as options, so check products that used them after importing.

11. Pro: conditional logic

Show or hide a field depending on other answers, such as showing the engraving box only when “Add engraving?” is Yes.

  1. Open the field and tick Use conditional logic.
  2. Choose Show or Hide this field if all or any of these match.
  3. Click Add rule and pick another field and a test: is, is not, contains, is empty, is not empty, is greater than or is less than.

Hidden fields are never required and never charged, even if the shopper filled them in before hiding them.

12. Pro: price formulas and per-letter pricing

Set a field’s price to Formula and type a sum. You can use:

  • [price]: the product or chosen variation’s price.
  • [qty]: the quantity.
  • [width]: the number a shopper entered in the field whose Field id is width.
  • [message.chars]: how many letters were typed in the field message.
  • Operators + - * / ^ ( ), comparisons > < >= <= == != (which give 1 or 0), and min, max, round, ceil, floor, abs and if(test, yes, no).
[width] * [height] * 0.05
max(5, [width] * [height] * 0.05)
if([qty] >= 10, [price] * 0.1, 0)

For engraving, Per letter is simpler than a formula: set the price per character on a text field. Spaces are free.

13. Pro: image and colour swatches

Choose Image swatches or Colour swatches as the field type. For each choice, click Choose image to pick from your media library, or pick a Colour. Each choice can have its own price, like any other choice.

14. Pro: file uploads

Add a File upload field and set the allowed types and largest size in Settings. Shoppers upload the file on the product page before adding to the basket, and the file is linked on the order so you can download it.

Files are stored in their own folder in your WordPress uploads, each inside a folder with a random name. Files that could run on a server are always refused, whatever you allow.

15. For developers

  • Product fields are stored in product meta _optionrocket_fields; option groups are the optionrocket_group post type.
  • Filters: optionrocket_field_types, optionrocket_price_types, optionrocket_product_fields, optionrocket_field_visible, optionrocket_render_input, optionrocket_read_value, optionrocket_sanitize_field, optionrocket_validate_field, optionrocket_entry, optionrocket_entry_text, optionrocket_entry_unit_price.
  • Actions: optionrocket_loaded.

16. Questions

Does it work with variable products?

Yes. Fields show under the variation choices, and percentages and the live total use the chosen variation’s price.

Does it work with the block basket and checkout?

Yes, as well as the classic pages.

Can shoppers add a product with options from the shop page?

No. Products with options link to their page, because the options are chosen there.

Is my data deleted if I delete the plugin?

No. Fields and option groups stay in your database, and past orders always keep their choices.

Already have a licence key?

Install the Pro zip from your purchase email and open WooCommerce → OptionRocket in wp-admin. Freemius shows a licence screen: paste the key from the email and click Activate License. If you started the free opt-in first, click the confirmation link in the email Freemius sent before activating the key. Moving to a new site? Deactivate the licence on the old site from its account page first, or email us.