🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 18, 2026

How to Add Custom Fields to WooCommerce Products (With Prices, Swatches and File Uploads)

GravityExtra
How to Add Custom Fields to WooCommerce Products (With Prices, Swatches and File Uploads)

Personalised products sell. A wallet with initials, a mug with a family photo, a pet tag with a name and a phone number or a tote bag with a monogram can carry a higher price than the plain version and gives customers a reason to buy from you instead of a marketplace. The catch is that WooCommerce was built to sell products with a price and, at most, a handful of variations. As soon as customers need to tell you what to engrave, print or wrap, the standard product page runs out of room.

This guide shows how to add custom fields to WooCommerce products — text, choices, colour and image swatches, dates and file uploads, each with its own price — why the usual workarounds cost more than they seem, and how to set it up step by step with the WooCommerce Option Sets Add-on, including conditional logic, a live price total and the details that keep every order complete.

Why the Standard Product Page Is Not Enough

Variations are made for stock: sizes and colours that you count on a shelf. They are the wrong tool for anything a customer types or uploads. Every combination becomes its own variation, so a tote in two sizes with three production speeds and an optional gift wrap already needs twelve of them — and you still have no place for the monogram. Free text, dates and files cannot be variations at all.

So shops improvise. A note in the checkout that customers forget to fill in. An e-mail after the order asking for the photo. A separate “engraving” product that has to be added to the cart next to the real one. A fee added by hand when someone asks for rush delivery. Each of these works for a few orders a week. At a few hundred, it means orders on hold while you wait for details, engravings that do not match the product they belong to, and extras you forgot to charge.

  • Fields on the product page. Customers give every detail before they add to cart, so no order is incomplete.
  • Prices per choice. Gold plating, a rush service or an extra letter is charged automatically.
  • Rules. Required fields, length limits and dates that can actually be delivered.
  • The details on the order. Whoever packs the order sees exactly what to make, on screen and in the e-mail.

Why Separate Tools and Manual Workarounds Fall Short

One way out is an external product configurator embedded in the page. These services typically cost $20 to $100 a month, add their own scripts to every product page and keep the customer’s choices on their side, so the WooCommerce order holds little more than a reference you have to look up. The other way out is doing it by hand, which costs no licence fee but a lot of time, follow-up e-mails and forgotten charges.

What you need Option Sets Add-on External configurator Manual workarounds
Yearly cost for one store From $39 per site per year $240 – $1,200 a year Free, but hours every week
Choices saved on the WooCommerce order Yes, on each order line Often a reference only In e-mails and notes
Prices per choice, fees and percentages Automatic in cart and checkout Depends on the service Added by hand
Conditional fields and required rules Yes, checked on the server Yes No
File uploads Checked and stored on your site On their servers E-mail attachments
Cart and Checkout blocks, HPOS Yes Varies n/a

The add-on keeps everything inside WooCommerce: the fields are part of the product page, the prices are part of the cart, and the choices are part of the order.

How the Add-on Works

You build option sets: groups of fields such as Personalization or Gift options. An option set can be shown on all products, on chosen products or on whole categories, and any product can have its own extra fields. Customers fill in the fields above the Add to cart button and watch a live total update with every choice. When they add to cart, every value is checked again on the server, the option prices are added to the item price, one-time fees are added once per cart line, and the choices are kept with the item all the way to the order, the e-mails and your admin screen.

Step-by-Step: Adding Custom Fields to Your Products

Step 1: Install the add-on and create an option set

Upload the zip in Plugins → Add New → Upload Plugin, activate it and enter your license key in Products → Option sets settings → License. Then open Products → Option sets → Add option set and call it, for example, Personalization.

Step 2: Add fields and prices

Click Add field, choose Text, label it Engraving text, set a maximum of 16 characters and a price of $0.50 per character — spaces are free. Add a Radio buttons field Engraving font with Classic serif (included), Hand script (+$3) and Block capitals (+$1.50). Other field types work the same way: drop-downs, checkboxes, colour or image swatches, numbers, dates and file uploads.

WooCommerce product page of the Personalized Leather Wallet with the Option Sets fields: Personalization with Engraving text A.J. 2026 at $0.50 per character and the Engraving font Hand script for +$3.00, Gift options with Gift wrap as a $5.00 one-time fee and a gift message, and the live total showing Product $90.00, Options +$14.00, One-time fees +$5.00 and Total $109.00 for two wallets
The product page: engraving priced per letter, a font choice, gift wrap as a one-time fee, a gift message and the live total.

Step 3: Show fields only when they matter

Open Engraving font, tick Show or hide this field depending on other fields and add the rule Engraving text is not empty. In a second option set, Gift options, show the Gift message only when Gift wrap is chosen. Customers see a short, tidy form, and hidden fields are never required or charged.

Step 4: Choose where the fields appear

In the Show on box choose the category Leather Goods for the personalization fields and All products for the gift options. Sub-categories are included, and single products can be left out. For one-off products, use the Product options tab of the product itself — for example a photo upload on a mug, or image swatches with tag shapes for a pet tag.

Step 5: Check the cart and the order

Add a product to the cart: every choice is listed under the item with its price, on the classic cart and on the Cart block, and one-time fees appear as their own line. After checkout the same details are on the order received page, in the order e-mails and on the admin order screen, where an uploaded photo is a download link for shop managers.

WooCommerce Cart block with three personalised items: the leather wallet with engraving text, font, gift wrap and gift message, the stoneware mug with the Ocean glaze and an uploaded photo, and the large canvas tote with the MJR monogram, rush production and a needed-by date, each choice with its price, plus the gift wrap fee in the totals
The Cart block: every choice with its price under the item, and the gift wrap fee as its own line.
WooCommerce admin order screen with the order items: each line shows the customer's choices such as Engraving text, Engraving font, Gift wrap, Gift message, Glaze, Your photo as a download link, Monogram letters, Production and Needed by, followed by the Personalized Leather Wallet: Gift wrap fee and the order totals
The admin order screen: the choices on each order line, the uploaded photo as a download link and the one-time fee.

Pro Tips for Personalised Products That Sell

  • Price the effort, not the field. Per-character pricing for engraving and per-unit pricing for extras feel fair to customers and cover your real costs.
  • Use percentages for services. A rush option at 15% of the price scales with every product and every variation, so you set it once for a whole category.
  • Show the total. A live total next to the Add to cart button removes the surprise at checkout and reduces abandoned carts.
  • Ask only what you need. Conditional logic keeps the form short: the gift message appears only after gift wrap is chosen.
  • Set realistic dates. An earliest delivery date three days from today stops orders you cannot deliver in time.
  • Make order again easy. Repeat customers get the same engraving, colour and photo back in the cart with one click.

Let Customers Personalise Every Product

Engravings, swatches, gift options, dates and file uploads with their own prices and a live total — set up once for whole categories, checked on every order and shown everywhere the order goes.

Frequently Asked Questions

Does it work with the Cart and Checkout blocks?

Yes. The choices and their prices appear on the Cart and Checkout blocks and on the classic cart and checkout, one-time fees included, with HPOS on or off.

Can I use it with variable products?

Yes. The fields are shown for every variation, the live total follows the chosen variation, and percentage prices are calculated on the variation’s price.

Are file uploads safe?

Files are checked for size, extension and real content (no scripts, no SVG), stored under random names in a protected folder and can only be downloaded by shop managers. Uploads that never reach an order are removed automatically.

What happens to existing orders if I change a field later?

Nothing: the choices are saved on each order line when the order is placed. Only new carts use the changed field, and Order again checks old values against the current fields.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr