Skip to content

Docs

Dhyan Product Options Choose a plugin's documentation

Import

Import from WooCommerce Product Add-Ons

Updated

Import from WooCommerce Product Add-Ons into Dhyan Product Options for WooCommerce in a few steps. A scan shows what will and will not carry over before anything is saved. Every imported group arrives as a draft, and Product Add-Ons itself is not changed.

The importer is part of the free plugin, Dhyan Product Options for WooCommerce, from version 1.2.0.

Plugin

Free, version 1.2.0 or newer

Reads from

Product Add-Ons 6.9.0 or newer

Saves

Drafts only

Running it again

Skips groups already imported

Before you start

  • Dhyan Product Options for WooCommerce 1.2.0 or newer, active.
  • WooCommerce Product Add-Ons 6.9.0 or newer, active. The importer reads its add-ons through its own REST API, which was added in 6.9.0. Keep Product Add-Ons active until the import is done.
  • A user who can manage WooCommerce (an administrator or a shop manager).

The importer only reads from Product Add-Ons. It never changes or deletes its groups, its product add-ons or its settings. It does not read or change past orders.

1

Step 1: Open the importer

Go to Dhyan Product Options → Add-On Groups and click Import. Then choose the tab From WooCommerce Product Add-Ons.

You can only see this tab while Product Add-Ons is active. If you have no add-on groups yet, the empty Add-On Groups page also has an Import from WooCommerce Product Add-Ons link.

2

Step 2: Scan

Click Scan Product Add-Ons. The scan reads your global add-on groups first. Then it reads your products, 50 at a time, and shows how far it has got (“Reading products 150 of 400”).

The scan saves nothing, so you can run it as often as you like.

3

Step 3: Check the preview

Before anything is saved, the preview shows:

  • Global groups: how many there are, how many are limited to categories, and how many apply to all products.
  • Products with their own add-ons: each one becomes one group, named “<product name> — add-ons”.
  • Groups to create.
  • Fields: how many carry over exactly, how many carry over with a difference, and how many are not imported, by type (for example “Heading: 5 not imported”).
  • Already imported, skipped: groups that an earlier import already created.
  • What will differ or not carry over: one line for every field or setting that does not carry over exactly.

You make two choices here:

  1. Groups for all products. In Product Add-Ons, a global group with no category applies to every product. Each such group has its own box, Show “<group>” on all products, as in Product Add-Ons. Every box starts unticked. Ticked, the group is set to “All products”; it is still a draft. Left unticked, the group is imported with no product or category, so it shows nowhere. You choose where it appears before you make it live.
  2. Products that hid global add-ons. In Product Add-Ons, a product can untick Use Global Add-Ons?. The preview offers to switch on our product setting Exclude global add-on groups for those products. The box starts ticked; untick it to leave those products as they are.

The preview also reminds you that while Product Add-Ons is active, its fields keep showing on your product pages.

4

Step 4: Import as drafts

Click Import N groups as drafts. The import runs in small steps: first the global groups, then your products 50 at a time.

Every group is saved as a draft, so nothing appears on your storefront yet.

The one setting that takes effect at once is Exclude global add-on groups, on the products where you left it ticked. On those products it hides our groups that are set to “All products”. If you already have such a group live, it stops showing on those products.

5

Step 5: Read the report

When the import finishes, you see:

  • how many draft groups were created and how many were skipped or not imported;
  • how many fields carried over exactly, how many with a difference, and how many were not imported;
  • for how many products Exclude global add-on groups was switched on;
  • one line for each difference, with an Open group #N link to the draft.

Copy report copies the report as plain text, for your records or for a support request. The report is kept until the next import.

Then:

  1. Open each draft group and check its fields, prices and where it shows.
  2. Switch WooCommerce Product Add-Ons off.
  3. Make the groups live. A group for all products asks you to confirm first.

If both plugins are active when your groups go live, shoppers see both sets of fields and pay for both. Switch Product Add-Ons off first.

What carries over

Field types, checks, prices and groups map like this. Anything not listed here is covered under What is different and What is not imported.

Fields

In WooCommerce Product Add-OnsIn Dhyan Product Options for WooCommerce
Multiple Choice shown as a drop-downDropdown
Multiple Choice shown as radio buttonsRadio buttons (see the differences below)
Multiple Choice shown as imagesImage select, with the same images
CheckboxesCheckbox group
Short TextText
Long TextTextarea
File UploadFile upload
Customer Defined PriceCustom price, with its minimum and maximum
Date PickerDate
Field name, description, placeholder, required, orderThe same

Text checks

In WooCommerce Product Add-OnsIn Dhyan Product Options for WooCommerce
Character limits on Short Text and Long TextMinimum and maximum length
Short Text restricted to emailEmail format
Short Text restricted to numbersWhole-number format

Prices

In WooCommerce Product Add-OnsIn Dhyan Product Options for WooCommerce
Flat feeFixed price, once per order line
Quantity basedFixed price, per item
Percentage basedPercentage of the product price, per item
A different price type on each optionEach option keeps its own price
A price on a text, file or date field (“Adjust price”)A price on that field
Negative price (discount)The same negative price

Groups

In WooCommerce Product Add-OnsIn Dhyan Product Options for WooCommerce
Global group name and display orderGroup name and display order (lower numbers show first)
Global group limited to categoriesGroup for those categories
Global group for all productsAll products if you tick it, otherwise no place to show until you choose one
A product’s own add-onsOne group for that product, display order 10

What is different

Each of these gets a line in the preview and in the report:

  • Radio buttons do not get the extra “None” choice that Product Add-Ons adds. If shoppers need it, add an option called None at 0.
  • Image choices: an option that had no image in Product Add-Ons is imported without one.
  • File upload uses our defaults: images and documents, up to 5 MB. Product Add-Ons’ file-type limits are not read. Check the allowed file types and size (see file uploads).
  • Date: no earliest or latest date is read. Set them if you need them.
  • Titles shown as a heading or hidden in Product Add-Ons are shown as a normal label.
  • Descriptions lose their HTML formatting; the text is kept.
  • “Only letters” and “Only letters and numbers” on Short Text become a pattern check that allows no spaces. Check the pattern in the editor.
  • Percentage prices are a percentage of the product price, charged per item. Check one product’s total in the cart.
  • A category that no longer exists is left out of the group.
  • Products that hid global add-ons: in Product Add-Ons, unticking Use Global Add-Ons? hides every global group, category groups included. Exclude global add-on groups hides only groups set to “All products”. So a group for a category still shows on such a product. The report names each product and group where this happens. If it matters, assign that group to products instead of the category.

“Only numbers” on Short Text becomes our whole-number format, which also accepts a leading minus sign. That one has no report line.

What is not imported

  • Quantity fields: Dhyan Product Options for WooCommerce has no quantity field.
  • Heading fields. The report lists each heading’s text, so you can use it as a group or field description.
  • Default choices and pre-filled values: shoppers start with nothing selected or typed.
  • Hidden options: an option that is hidden in Product Add-Ons is left out.
  • A group with nothing left to import, for example a group that holds only headings, is not created. The report says so.

Product Add-Ons has no conditional logic of its own, so there is none to import. After the import you can add show/hide rules with AND/OR conditions in the group editor: see conditional logic.

Running the import again

You can run the import again at any time, for example if a large store stopped half-way.

  • A source group that was already imported is skipped. The report shows “Already imported as group #N, skipped”.
  • If you deleted the draft that an earlier import created, that source is imported again.
  • If the group changed in Product Add-Ons after you imported it, the import still skips it and the report says it changed. To bring in the changes, delete that draft and run the import again. The import never overwrites a draft you may have edited.

Import from WooCommerce Product Add-Ons: FAQ

Does the import change WooCommerce Product Add-Ons?

No. It only reads Product Add-Ons’ groups and product add-ons through its REST API.

Will shoppers see anything during the import?

No. Every imported group is a draft, and nothing shows until you make a group live.

Do I need Dhyan Product Options Pro?

No. The importer is part of the free plugin, and nothing it imports needs Pro.

I already removed Product Add-Ons. Can I still import?

Switch it back on (version 6.9.0 or newer) for the import, then switch it off again. The importer reads only while Product Add-Ons is active.