Reading list Switch to dark mode

    Guide for Magento 2 Dependent Custom Options

    Updated 25 October 2023

    Magento 2 Dependent Custom Options enable the admin to make dependent options for products. These options will be presented on the product page and will be dependent on one another.

    The buyer will see the next choice for the product that is related to the prior one in this sort of selection. The given chained choices can also be unassigned by the store merchants. The store owners can create multiple dependent options for a single product.

    Check the video mentioned below for checking the workflow:

    JHjvBNLCR_U

    Features

    • Admin can define a group of custom options that are interdependent.
    • Admin may easily apply custom options to products.
    • The admin can also unassign custom options from products in an easy way.
    • The extension is compatible with the Hyva Theme.

    Installation

    #1 Download Module

    Firstly, you need to log in to Webkul Store, go to My Account>My Purchased Products section, verify and then download and extract the contents of this zip folder on the system.

    #2 Upload Folder

    Once the module zip is extracted, follow path src>app and then copy the app folder into the Adobe Commerce Cloud root directory on the server as shown below:

    Searching for an experienced
    Magento 2 Company ?
    Find out More
    m2_installation-2

    #3 Run Commands

    After uploading the module folder, you need to run the following commands in the Magento 2 root directory:

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    php bin/magento indexer:reindex
    php bin/magento cache:flush

    Language Translation

    For translating the module language, navigate through src/app/code/Webkul/ChainedCustomOption/i18n and edit the en_US.csv file. Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.

    Magento 2 opencart connector language translation

    Now, upload it to the path src/app/code/Webkul/ChainedCustomOption/i18n where the installation of Magento 2 is on the server. The module gets translated into the Arabic Language. It supports both RTL and LTR languages.

    The user can edit the CSV like the image below.

    screenshot_from_2023_06_22_09_52_46

    Admin Configuration – Dependant Custom Options

    The admin will navigate through Stores>Chained Custom Options>Manage Chained Custom Options to make a general configuration.

    M2-Chained-Custom-Options

    Now, the admin will click on the Add Chained Custom Option button to create custom options.

    M2-Chained-Custom-Options-1

    Here, the store admin will have to enter the below details to add a custom option.

    M2-Chained-Custom-Options-2

    Title- Enter the option title.

    Input Type- Select the dropdown menu as the input type.

    Is Required- Select Yes in the option Is Required.

    Sort Order- The sort order needs to be selected as per choice.

    Now click on the Save Chained Custom Options and the option will get created.

    M2-Chained-Custom-Options-3

    Furthermore, the admin can also edit the option after the creation. They can add new rows to give the selections for the dependent option.

    Note:

    If the changes made in the existing Chained custom options show the old custom options as well along with the newly added (options) template too when re-assign the updated template to the respective products.

    Hence to remove the old custom option admin has to unassign that custom option from the particular edit product page in the admin panel.

    These rows will contain the columns named title, price, price type, sort order, and children. Now by clicking on Save Chained Custom Option the changes will get saved.

    M2-Chained-Custom-Options-4

    Likewise, the admin can create more custom options such as size that will be depended on the first created option.

    In this custom option, the admin will have to select the parent option as per the given screenshot.

    M2-Chained-Custom-Options-5

    Now, the admin will have to click on the Save and Continue Add/Edit Options button. Once the admin clicks on the button Add New Row option will display.

    M2-Dependent-Custom-Options

    This time the admin will view the Select Children option additionally to create the dependent option. Here, the admin needs to click on the checkbox to add the children option.

    Similarly, the admin can create more dependent options that will depend on the previous one as shown below.

    M2-Chained-Custom-Options-10-1

    Now all the options will display with ID, title, sort order, and action as shown below image.

    M2-Chained-Custom-Options-8

    The store admin will assign these options to the product by navigating through Chained Custom Option>Chained Custom OptionAssigned to Product.

    The admin can assign the options by the Actions dropdown menu. By clicking on Action, there will be two options will display named Assign and Unassign.

    The admin will have to select the Assign option and it will open the created dependent options as shown below.

    M2-Chained-Custom-Options-9

    The admin can assign the custom options to the product one by one selecting each option. In case the admin wants to remove the assigned option then he can use the Unassign option.

    Customer View – Magento 2 Dependent Custom Option

    The created dependent custom options will display to the buyers on the product page as per the below image.

    M2-Chained-Custom-Options-11

    Once the customer selects the custom options and adds the product, it will display to the mini cart also as per the image.

    chained custom option product page

    That is all about the Magento 2 Dependent Custom Options. If you have any queries regarding the plugin send email to [email protected]

    Moreover, if you require development assistance, you can Hire Magento 2 Developers for your project work.

    Also, check our complete range of Magento 2 extensions. that add more features and functionalities to your online store.

    Current Product Version - 4.0.1

    Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Table of Content