Mastering Magento 2 Custom Options: A Step-by-Step Guide to Product Customizable Options
Magento 2 custom options offer a flexible way to enrich product listings, allowing businesses to tailor their offerings with ease and enhance the shopping experience. Customizable options (another term used to define this product feature) introduce extra settings for simple, downloadable, and virtual products in Magento 2 to enable the creation of product variations. Although Magento 2 products with custom options resemble configurable products, they are a unique system element with multiple nuances that we explore throughout the following text.
In this guide, we’ll dive into the essentials of Magento 2 customizable options, from understanding their types and adding them to your product pages, to leveraging their potential on your storefront. Learn the key differences between customizable options and configurable products in Magento 2, and discover how to effectively enhance them for a seamless, customized shopping experience. You will also find a chapter about Magento 2 custom options import. Let’s explore how to make the most of Magento 2’s product customization features for a storefront that truly stands out.
Table of contents
- 1 What Magento 2 Custom Options Are
- 2 4 Types of Magento 2 Custom Options
- 3 How to Add Magento 2 Product Custom Options
- 4 Magento 2 Customizable Options on Storefront
- 5 The Specifics of Magento 2 Customizable Options
- 6 Magento 2 Products with Custom Options vs. Configurable Products
- 7 How to Import Magento 2 Custom Options
- 8 How to Enhance Magento 2 Custom Options & Configurable Products
- 9 Final Words
- 10 Frequently Asked Questions
What Magento 2 Custom Options Are
Magento 2 custom options, also known as customizable options, represent a feature that allows the creation of product variations that are not based on attributes, such as size or color. Instead, you can use text, file, select, and date options. Add any desired options such as a custom text or the delivery date. Your customers will see the additional information and options, such as a drop-down list or a set of checkboxes, above the Add to Cart button on a product page. As a store administrator, you can configure custom options in Magento 2 as optional or required, depending on your purposes.
Note that Magento 2 customizable options are available not only for simple product pages. The nature of the latter expands the functionality of custom options to other Magento 2 areas. Since simple products are building blocks for other product types, more complex products can have custom options, too. Magento 2 simple products become a part of complex entities, such as grouped, bundle, and configurable products, transferring the customizable options functionality to them. To explore product types available in Magento 2, follow these links:
- Magento 2 Configurable Products;
- Magento 2 Grouped Products;
- Magento 2 Bundle Products;
- Magento 2 Downloadable Products;
- Magento 2 Virtual Products.
Consequently, the Magento 2 grouped product custom options are the same as the ones associated with simple products. A Magento 2 bundle product with custom options relies on identical customization options as the other physical goods. The same also applies to non-physical items – downloadable and virtual products. So, what types of custom options does Magento 2 offer?
4 Types of Magento 2 Custom Options
Magento 2 offers the following four types of custom options: text, file, select, and date. Since they offer unique features, let’s see what are the nuances of each group of Magento 2 custom product options:
- Text. This kind of customizable option lets you place a text box on a product page. As a result, your customers can enter a text message or request a product variation. You, in turn, can put a limit on how huge customer inquiries should be with the Max Characters setting. Note that, this Magento 2 custom option is associated with two kinds of display:
- Text Field is a one-line field that lets customers enter a smaller amount of text suitable for putting a name or short message on a product.
- Text Area is a multi-line field suitable for bigger passages in which customers can express their demands.
- File. With this type of custom option, Magento 2 enables your customers to upload files from their devices. As a store administrator, you can specify the supported file types and set the maximum file size. This input type is best for offering such services as printing a custom photo on a product.
- Select. It is the most complex type of customizable option since it consists of the following four input types:
- Drop-down is a list of options, where customers can select only one of them;
- Radio Button is similar to the drop-down option: shoppers can choose only one option from a set of options;
- Checkbox lets customers choose as many options as they want;
- Multiple Select allows buyers to choose various options from a drop-down list by pressing and holding Ctrl.
- Date. This type of Magento 2 custom option lets your shoppers select the date and/or time from a date picker, for instance, the most convenient delivery date and time. The following three options are available for this input type:
- Only date;
- Only time;
- Both date and time.
Below, you can see all four Magento 2 custom option types represented on a product page:
How to Add Magento 2 Product Custom Options
You can add and configure custom product options in the Magento 2 backend as follows:
- Go to Catalog > Products;
- Select a product to add or edit custom options;
- Scroll down the product page to find the “Customizable Options” section.
- Click “Add Option” to add a new customizable option in Magento 2.
The settings section allows you to add multiple options, choose option modes, and get various combinations of options. We explore the nuances of Magento 2 custom option editing in the next chapter.
How to Edit Magento 2 Customizable Options
Editing customizable options in Magento 2 is pretty easy. Follow these steps to configure the desired output:
- When a new option is added, specify its title in the Option Title field.
- Next, select a type from the Type dropdown.
- Next, you can make the option selection a mandatory part of the product purchase. Check Required to make your custom option obligatory to choose.
- Press the Add Value button to add a value for your product customizable option:
- Specify the title of the value;
- Set its price and price type. For the Fixed price type, the custom option price will differ from the base product price by a fixed amount. For the Percentage option, the custom option price will differ from the base product price by percentage.
- Type the SKU for each Magento custom option. Note that Magento 2 adds it to the product SKU as a suffix.
- Repeat the same procedure to add more option values.
- You can add multiple custom options if necessary.
- Once finished, save the product and check the Magento 2 custom options on your e-commerce website.
Magento 2 Customizable Options on Storefront
Below, you can see Magento 2 custom options on a product page:
The shopping cart, in turn, displays Magento 2 customizable options as follows:
The Specifics of Magento 2 Customizable Options
If you want to use product customizable options in Magento 2, these are a few things to consider:
Magento 2 Product Custom Options SKU
As custom options do not have QTY, you won’t be able to maintain full control over the inventory as long as you sell physical products. Custom option SKU adds a suffix to the product SKU and is used purely for order processing and analytical purposes.
Magento 2 Custom Options & Price Rules
Be it a fixed sum or a price percent, custom options simply add extra cost to the base product price. If you want to create discounts, keep in mind Catalog Price Rules reduce only the PRICE of the product, while prices for Magento 2 product custom options remain the same. Cart Price Rules process Total for discounts, so, in this case, both PRICE and custom option price are lowered.
Magento 2 Customizable Options & SEO
Product variations made with custom options are not identified by search engines. Upon an entry, search results won’t show anything except the base product information. And, as a result, those variations are not visible to the Internet.
Magento 2 Custom Options Import
Magento 2 possesses the native import of custom options that can be found in the same section. By clicking “Import options“, you can implement the existing custom options from product to product to save time configuring similar variations for different items.
However, if you need to import customizable options to Magento 2, you will need a third-party solution. We focus on this process below. But let’s see what’s the difference between products with custom options and configurable products.
Magento 2 Products with Custom Options vs. Configurable Products
Taking into account the peculiarities of custom options, the most plausible scenario for composing such product variations would be service providing. Custom options for simple, downloadable, and virtual products can become a useful tool for those who sell courses, membership, season tickets, item modifications, etc. If your business is strongly dependent on storage management, you should turn to more appropriate to the case functionality — configurable products.
Magento 2 products with custom options, however, can be easily confused with configurable products as they serve the same purpose and enable a high level of interaction with customers. Nevertheless, their functionalities are different in the core; the backend routines are distinct for these two, as well.
Both Magento 2 product custom options and configurable products can be the means for creating product variations. Both ways have their specifics, areas of use, challenges, and limitations. First and foremost, we must keep in mind that сustom options and configurable products in Magento 2 are separate.
Custom options are just a modified layer over a product, while configurable product components are products themselves. The gap reflects directly on the setting up process. Configurable products require much more effort from the admin but still provide outstanding flexibility. They are available to customers on all levels of Layered Navigation on the category page and during the search both inside and outside your website. Crawlers index such product pages as trustable and able to satisfy user entries.
Magento 2 custom options, on the other hand, are easy to handle with a strictly limited number of settings involved, which leads to various inconveniences. The absence, of separate SKUs. for instance, makes custom options a mess in terms of inventory records. Moreover, custom options are almost invisible within the store and can be found by customers only on a product page. SEO tools cannot track product variations presented by custom options and, thus, cannot promote them on SERPs.
Below, we compare configurable products and Magento 2 product with custom options side by side:
Criterion | Products with custom options | Configurable products |
Accessibility | Product variations are not available for searching and filtering upon | Product variations are fully independent separate products and have their positions in the store navigation |
Inventory relation | Not manageable | Easily trackable and manageable |
Pricing possibilities | Product price with the addition of a fixed sum or a price percent | Flexible for each child product |
SEO orientation | No | Yes, possesses a full attribute set and visibility terms |
Display mode | Variety of display options. | Can’t be customized. |
Level of admin involvement | Set up per-product | Each variation of a configurable product is a simple product |
Set up custom options if:
- your business does not depend on physical storage;
- you specialize in unique services and need a special form of interaction with customers;
- you don’t put on massive product promotions;
- search is out of your concerns.
Decide on creating configurable products if:
- you are looking for a functionality with full admin control;
- inventory management is a part of your business lifecycle;
- you focus on progressive sales growth and transmit your offers on multiple channels via all available tools, including SEO and price-based marketing.
How to Import Magento 2 Custom Options
You can import Magento 2 customizable options and get full control over transferred data with Firebear Improved Import and Export for Magento 2. The extension allows you to apply custom options to multiple products, decide import behavior, and retrieve data from various sources, including REST and SOAP API, GoogleSheets, file uploads, and many more. Once the entities are implemented, you get the ability to edit any property and adjust prices.
Magento 2 Custom Options Attribute & Its Values
As custom options are a built-in product feature set, their import is impossible without transferring the products they belong to. We start the process by creating a product table with all the necessary product data, including the custom options. Check our
You can import Magento 2 custom options by adding the custom_options column to the data table. This is how the corresponding column looks if add a text area option:
name=OPTION NAME,type=area,required=1,price=3,sku=a1,max_characters=50,price_type=percent
If you plan to import multiple customizable options to Magento 2 per product, divide them with a pipe separator (“|”). A product’s column with text area and date and time custom option types looks as follows:
name=OPTION NAME,type=area,required=1,price=3,sku=a1,max_characters=50,price_type=percent|name=OPTION DATE,type=date_time,required=1,price=1,5,sku=a2,price_type=fixed
In the table below we describe how to insert custom options attributes for Magento 2 import. You will learn the meaning behind each value.
Option Feature | Reference | Value | Value Example |
name | The title of an option. | Alphabetic/numeric format; will be displayed in the frontend | Limited offer |
type | Specifies the type of the added custom option. |
|
file |
required | Implies customers must make a selection to proceed with the purchase. | 1 – yes, value is required,
0 – no, value is not required. |
1 |
price | Product variation price that is added to the base product price. | Price amount | 23 |
price_type | The type of price added to the base product price. | Fixed amount or price percentage. | Percent |
sku | Optional. Adds a suffix to the base product SKU. | Any letter or number sequence separated with underscores (_) and dashes (-). | OPT |
max_characters | The limitations for text length. | Numeric, measured in characters. | 50 |
file_extension | File formats permitted for customer uploads. | Various file formats.
Note that Improved Import and Export does not process multiple file extensions, even if they are separated by a comma. |
png |
image_size_x | Width of an uploaded image | Numeric dimension in pixels. | 620 |
image_size_y | Height of an uploaded image | Numeric dimension in pixels. | 480 |
option_title | The name of each variation you add in a selection mode. | Alphabetic/numeric format; will be displayed in the frontend | First option |
opt_id | The ID of the customizable option, which is used to identify the option during the add/update import | Numeric. | 20006 |
opt_row_id | The ID of the option row, i.e. the place of the current title of the option inside the customizable option | Numeric. | 60016 |
3.5.1 release of Improved Import & Export extension has added opt_row_id and opt_id attributes to customizable options. With these attributes, you can now update required customizable options, instead of always adding new ones during the add/update import procedure. This has been implemented to avoid native Magneto 2 behavior when the import would only add new options and won’t let update existing ones.
Once your CSV with custom options is ready, you can import it to Magento 2.
Magento 2 Custom Options Import Step-by-Step Tutorial
Data transfers with Improved Import and Export are performed via jobs. Each job consists of multiple rules and settings. Thus, job configuration covers all the crucial matters related to import: manual or automatic data updates, imported entity specifics, a preferred way of synchronization, and tools for data modification. See the details in our Magento 2 Product Import guide.
Don’t forget that the Magento 2 custom options import is processed along with the product entity as options are its integral part.
Follow these steps to import customizable options to Magento 2:
- Go to System > Improved Import and Export > Import Jobs > Add New Job.
- Insert a title to highlight the job. Decide whether the job is run automatically via cron updates or manually by the admin.
- Select ‘Products’ in the entity type field.
- Set up how the import data will be implemented in the import behavior section.
- Make up your mind about the import source and select a path to the table with product data, including custom options.
- Customized import data via mapping settings to avoid conflicts and overlapping and add unique elements to data pieces.
- Run the job to import custom options to Magento 2.
How to Enhance Magento 2 Custom Options & Configurable Products
In this post, we’ve compared product customizable options to configurable products. Both entities have their pros and cons, which means there’s room for functionality upgrades. Do you want to expand the use cases for configurable products and custom options? Try Improved Configurable Product. The extension functionality introduces lots of innovations and modifications in configurable product setups.
With the extension, you can manipulate every part of a configurable product page, from the child product name in the title to separate reviews and shipping logic. SKUs are fully adjustable; tier prices can be assigned to all child products. However, the most relevant feature to our topic is the ability to add custom options to configurable products.
You’ve got it right: Improved Configurable Product lets you easily create a Magento 2 configurable product with custom options. Also, you can easily generate and manage bundle products that consist of both products with custom options and configurable products. Thus, fully equipped, you can address your audience with the most personalized purchases.
Final Words
Mastering Magento 2 custom options can be a game-changer, enabling a new level of personalization in e-commerce. By understanding how to add, display, and optimize customizable options and distinguish them from configurable products, you’re well-equipped to offer products that better meet customer needs and preferences. This guide has covered the steps and considerations for making Magento 2 custom options work effectively for your business, ensuring that your storefront not only stands out but also provides a customer-centric experience. Implement these techniques to unlock the full potential of Magento 2 and set your store up for continued growth and customer satisfaction.
Although Magento 2 custom options are easy to create and manage, it is necessary to leverage a third-party extension, such as the Improved Import & Export module, to import them.
Frequently Asked Questions
How to add custom options in Magento 2?
To add Magento 2 custom options, navigate to Catalog > Products in your Admin panel. Select the product you wish to customize or create a new one. In the product settings, find the Customizable Options section, click Add Option, and fill in the details like title, type (e.g., text, file, select), and values if applicable. This feature allows adding unique choices without creating complex product variations, offering a simplified way to add personalization to items.
How do I set product options in Magento 2?
To set product options in Magento 2, you can use either Customizable Options for simple products or create Configurable Products for more complex combinations. For customizable options, open the Customizable Options tab in the product editor and define your choices. For configurable products, navigate to Product Type > Configurable Product during product setup, and specify variations such as size or color, linked to different SKU combinations.
How do I get configurable product options in Magento 2?
In the Magento 2 Admin panel, retrieving or managing configurable product options can be done through the following steps:
Go to Catalog > Products in the Admin panel.
Find and select the configurable product you wish to view or edit.
In the product edit view, go to the Configurations section (found in the left-side menu or within the product setup page).
Here, you’ll see all variations of the configurable product, including each option’s SKU, price, and stock status.
How to get product custom options programmatically in Magento 2?
To programmatically get product custom options in Magento 2, utilize the \Magento\Catalog\Model\Product class. Load the product by ID or SKU, then access its custom options using the getOptions() method. This method retrieves an array of the product’s custom options, which can be used to customize display, pricing, and other product features.
How to import Magento 2 custom options?
To import custom options in Magento 2, you can use specialized import tools like the FireBear Import/Export extension, which streamlines importing custom options with a CSV file. Alternatively, use Magento’s Data Import feature if only basic customizations are needed. Define custom options in your CSV under specific columns, upload the file, and map fields to ensure correct data import.