Integrations
WooCommerce Product Add-Ons
Sell extras with a product (gift wrap, an engraving, a date, a file to print) with WooCommerce Product Add-Ons' own fields and prices, in the storefront's design.
WooCommerce Product Add-Ons lets a product ask for more than a quantity: gift wrap, an engraving, a delivery date, a file to print, a price the customer names. It draws those fields only on pages WordPress builds. With the Companion plugin, you keep setting Add-Ons up in wp-admin as usual, on a product or as global groups, and the storefront shows them in its own design, priced by the plugin. For the plugin’s own settings, see its WooCommerce.com page.
- Where it shows
- The product page and quick view, product cards, the cart, mini cart and checkout, the order confirmation and the account's order pages
- Configure in
- Each product's Add-ons tab, and global groups under Products → Add-ons
- Requires
- WooCommerce Product Add-Ons 8.0.0 or later; the Companion plugin
- Try it in Demo Mode
- Demo Mode has products with Add-Ons: open Hand-poured soy candle — Fig & Cedar or the Wheel-thrown stoneware mug
What shoppers get
Section titled “What shoppers get”- Every Add-On field above Add to cart. Multiple Choice (as a dropdown, image tiles or radio buttons), Checkboxes, Short Text and Long Text, Customer Defined Price, Quantity, Date Picker and File Upload, grouped under your Headings. The form opens with the defaults you set.
- A running total. Under the form, the product’s subtotal, each priced Add-On and the total update as the Shopper chooses and as the quantity changes. Each option shows its price: “+$5” for a flat fee, “+$5 each” per item, “+10%” as a share of the price.
- Checked before it goes in the cart. Required fields, text length, number and price limits and text restrictions are checked when the Shopper adds the product, with a message on the field: ““Gift note” is required.”. A refusal from the store shows the plugin’s own message.
- File uploads with progress. A file uploads as soon as it’s picked, with a progress bar and a Remove button. Add to cart and Buy now wait for an upload still in progress.
- Quick view and express checkout. The same form opens in quick view. Apple Pay and Google Pay wait until the form is complete.
- Cards that know. A product with a required Add-On shows Select Options on product cards, cross-sells, the compare table and the wishlist, and opens the product page. A product with only optional Add-Ons is added straight from the card, without them.
- Add-Ons on every line. The cart, the mini cart and the checkout list each line’s Add-Ons and prices; an uploaded file shows by name. The same product with different choices is two lines.
- Add-Ons on the order. The order confirmation and the account’s order pages list them, and an uploaded file is a link to it.
How it works
Section titled “How it works”The Companion plugin adds each product’s Add-Ons to the product data the storefront reads: the product’s own and its global groups, merged as the plugin merges them. It receives file uploads into the plugin’s own upload folder, and adds each line’s Add-Ons to the cart and the orders.
The storefront draws the form and previews the price with the plugin’s rules. The price charged is the plugin’s own: WooCommerce prices the line when it goes in the cart, exactly as on a WordPress product page.
It switches on by itself. Add-On forms appear while WooCommerce Product Add-Ons is active and a product has Add-Ons, and nowhere else. There is no StoreFront setting and no environment variable.
What the storefront needs
Section titled “What the storefront needs”Set WooCommerce Product Add-Ons up as its own documentation describes. For the storefront, these are what matter:
- WooCommerce Product Add-Ons 8.0.0 or later is active. Products with Add-Ons show their form on the next page visit.
- Add-Ons are set on the product or in a global group. A product’s own Add-Ons are on its Add-ons tab; global groups are under Products → Add-ons, assigned to categories. Use Global Add-Ons? on a product decides whether global groups apply to it.
- For File Upload fields, WordPress allows the size you need. The storefront accepts files up to WordPress’s own maximum upload size, set by your host’s PHP limits.
- Your backups include the upload folder
wp-content/uploads/product_addons_uploads/(see File uploads). - Test one product end to end: choose its Add-Ons, add it to the cart, pay, and find the Add-Ons on the order in WooCommerce → Orders.
What the storefront follows
Section titled “What the storefront follows”The plugin’s settings decide which fields a product asks for and what they cost. Its look does not: the storefront’s design applies.
| Product Add-Ons setting | On the storefront |
|---|---|
| Multiple Choice, Checkboxes, Short Text, Long Text, Customer Defined Price, Quantity, Date Picker, File Upload, Heading | Followed: all nine types are drawn. A field of a type the storefront doesn’t know is left out. |
| Display as: Dropdown, Images, Radio Buttons | Followed. Picking an optional image tile again clears it. |
| Title format: Label, Heading, Hide | Followed. A hidden title still names the field for screen readers, and its description still shows. |
| Description | Shown, with links, bold and italics kept and other formatting removed. |
| Required field | Followed: marked with an asterisk, and the product can’t be added until it is answered. |
| Adjust price: Flat Fee, Quantity Based, Percentage Based | Followed: a flat fee once per line, a quantity-based price per item, a percentage of the item’s price. A negative amount is a discount. Prices follow your WooCommerce tax display setting. |
| Limit character length, Limit price, Limit quantity | Followed. |
| Restriction: Only Letters, Only Numbers, Only Letters and Numbers, Only Email Address | Followed. A field limited to an email address is an email field. |
| Limit file types | Followed, within the five types the storefront accepts (see File uploads). |
| Default choices | Followed: the form opens with them. |
| Options hidden in the editor, and options without a label | Left out. |
| Use Global Add-Ons? and each global group’s categories | Followed: a product’s own and global Add-Ons show as one form, as the plugin merges them. |
Not used: the plugin’s form styles and templates, and its text-only summary of a cart line (the storefront lists each Add-On itself). The plugin’s emails and the Add-Ons on the order screen in wp-admin work as usual, because storefront orders carry the plugin’s own Add-On data.
File uploads
Section titled “File uploads”- Five file types: JPEG, PNG, GIF, WebP and PDF, checked by the file’s content, not its name. Limit file types can narrow this further.
- Size: up to WordPress’s maximum upload size, shown under the field as “Up to …”.
- A daily cap per cart: 20 files and 100 MB, so a cart can’t fill your disk.
- Where files go:
wp-content/uploads/product_addons_uploads/, in a folder per cart, not in the Media Library and not offloaded to media on R2. - Only the store’s own uploads are accepted. A cart line can only carry a file uploaded through the storefront.
- Clean-up: once a day, upload folders older than seven days that no order, session or saved cart uses are deleted. Files on orders are kept.
Good to know
Section titled “Good to know”- Buy again puts a reordered line back without its Add-Ons. A line that needs them opens a dialog, “Some items need their options chosen again”, with Choose again to open the product.
- Add-Ons can’t be changed from the cart. Remove the line and add the product again with new choices.
- Customer Defined Price takes amounts with two decimal places.
- On a bookable product, Add-Ons are priced together with the booking by both plugins: see WooCommerce Bookings.
- A recovered cart keeps its Add-Ons: the cart recovery link puts them back, and the store checks them again.
- Editing a global group refreshes the storefront’s cached product pages on its own.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Fix |
|---|---|---|
| A product shows no Add-Ons | WooCommerce Product Add-Ons is inactive, or every option is hidden or has no label. | Activate the plugin; check the product’s Add-ons tab and its global groups. |
| A card says Select Options instead of Add to cart | The product has a required Add-On. | Expected: the Shopper chooses it on the product page. |
| An upload is refused | The file isn’t JPEG, PNG, GIF, WebP or PDF, is above WordPress’s maximum upload size, or the cart reached its daily cap. | Use one of the five types; raise the upload limit with your host. |
| Add to cart says a field must be completed | A required field is empty, or a limit or restriction isn’t met. | The message names the field. |
| A reordered line has no Add-Ons | Buy again doesn’t carry them. | Choose them again from the product page. |