Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Magento 2 Multi Vendor Attribute Set Mapping

    Magento 2 Multi-Vendor Attribute Set Mapping module, allows the admin to map the store categories with the attribute sets for the sellers.

    While creating the product, this module will automatically assign an attribute set to the product as per the selected category. The module will let the sellers use only the enabled set of attributes.

    Note-

    Features

    • Map attribute set with the store categories as per the choice.
    • The admin can map multiple categories to a single attribute set.
    • The parent category of selected category will also appear checked/ selected on add product page
    • A Default Attribute Set will appear when no mapping exist for category.
    • The seller can add products with attributes mapped with the category.
    • Attribute set will get assigned automatically to the product as per the selected category.
    • The seller can use only the enabled attributes along with the default attributes.
    • Default attribute set gets assigned if the category is not mapped with an attribute set.
    • The module supports Simple, Configurable, Virtual, Downloadable, Bundle and Grouped product types.
    • The module supports text field, text area, date, yes/no, multiple select, drop-down, and price input types.

    Installation

    Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder. You need to transfer this app folder into the Magento2 root directory on the server as shown below.

    After the successful installation, you have to run these commands in the Magento2 root directory.

    First command – php bin/magento setup:upgrade

    Second Command – php bin/magento setup:di:compile

    Third Command – php bin/magento setup:static-content:deploy

    After running the commands, you have to flush the cache from the Magento admin panel by navigating through->System->Cache management as shown below.

    Multi-Lingual Configuration

    For Multilingual support, please navigate to Store>Configuration>General >Locale Options. And select your desired language from the Locale option.

    Language Translation

    For module translation, navigate to the following path in your system  app/code/Webkul/MpAttributeMapping/en_US.csv. Open the file named en_US.CSV for editing as shown in the below screenshot.

    Then replace the words after the comma(,) on the right in the file with your translated words.

    After editing and translating the CSV file, you need to save the translated file name according to your region language and country code such as – de_DE.CSV. Followed by uploading the translated file to the same folder from where you have obtained it. Now your module translation is complete.

    Module Configuration

    After the installation, the admin will configure the module settings. For this, the admin will navigate to Stores -> Configuration -> Webkul -> MpAttribute Mapping as shown below.

    Here, the admin will configure Enable Marketplace Attribute Mapping & Category Settings-

    Enable Marketplace Attribute Mapping

    • Enable Module On Frontend: Select Yes to enable the module. Else, select No to disable the module.

    Category Settings

    Show Category Parents Selected:  The admin sets this fields as ‘Yes,’ then the parent category, of the category chosen shall also appear as checked on add product page.

    Default Attribute Set ID: Whichever Attribute Set is chosen by the admin against this field will appear when no mapping exist for category.

    • The dropdown list against this field will display the Attribute Sets which are chosen under Marketplace configurations.

    Case 1: 

    If the admin does Not Save the configurations after Choosing the Attribute Set under Marketplace configurations-

    • Then, the first option of the Attribute Set will appear against the Default Attribute Set ID field under Category Settings.

    Case 2: 

    If the admin Saves the configurations after Choosing the Attribute Set under Marketplace configurations-

    • Then, the selected attribute set will appear against the Default Attribute Set ID field under Category Settings.

    Category & Attribute Set Mapping

    The admin will map the store categories with the attribute sets by navigating to MpAttribute Mapping -> Category and Attribute Set Mapping as shown below.

    This will navigate the admin to a new page as per the below image.

    Here, the admin will-

    • View the complete list of mapped categories and attribute sets.
    • Remove the selected mapping by selecting the Delete option from the Actions drop-down list.
    • Edit the mapping by clicking the View link available.
    • Map the categories and attribute sets by clicking the Add Mapping button.

    Add Mapping:

    Clicking the Add Mapping button will navigate the admin to the mapping page. Here, the admin will have two sections-

    Map Attributes Set:

    For mapping, select the desired attribute set from the Attribute drop-down list and category from the Category drop-down list which the admin wants to map with.

    Map Attributes:

    Under this section, the admin will select the attributes which the admin wants to enable for the seller to use. For successful mapping, hit the Save button.

    Note: The seller can use the default attributes and the enabled attributes only.

    The admin can map multiple categories to a single attribute set ie; many to one type mapping.

    And, even if the admin tries to map the category which is already been mapped with some other attribute set. Then, it will display an error message.

    Seller End

    For adding the product, the seller will select the Category and the Product Type as shown below.

    And at the Product Edit page, the attribute set will get selected automatically as per the selected Category. The sellers no more require to select the attribute set manually.

    Note: The module supports Simple, Configurable, Virtual, Downloadable, Bundle and Grouped product types.

    The enabled attributes of the “Attribute Set” will get displayed on the Product Edit page along with the default attributes.

    WHAT IF THE SELECTED CATEGORY IS NOT MAPPED WITH ANY ATTRIBUTE SET:

    If the selected category is not mapped with any attribute set. Then, it will first check the parent category mapping. Even if the parent category is also not mapped then, the “Default Attribute Set” which admin selects in the Configurations > Category Settings will display.

    Likewise, in the seller end, the selected attribute set will display as shown in the image below. 

    WHAT IF THE SELLER EDIT OR CHANGE THE CATEGORIES ON THE PRODUCT EDIT PAGE:

    If the seller edits or changes the categories on the “Product Edit” page. Then, the attribute set gets assigned according to the first category which the seller will select.

    WHAT IF THE ADMIN ALTERS THE COMPLETE ATTRIBUTE SET :

    The admin can choose to alter or change the complete atribute set mapped to a category.

    In such a case, the attributes will alter as per the newly mapped attribute set.

    • Suppose, the admin has mapped a category C1 with the attribute set A1 and wants to alter the complete attribute set and change it to A2.
    • Then, all the existing attributes of the attribute set A1 will alter and get replaced with the attributes of set A2.
    • The seller can view the attributes and fill in details of the same and further save the details that will update and replace the attribute set.

    WHAT IF THE ADMIN ADDS/ REMOVES ATTRIBUTES IN/ FROM AN EXISTING ATTRIBUTE SET IT REFLECTS LIKEWISE ON THE PRODUCT EDIT PAGE:

    The admin can even choose to add/ remove attributes to an existing attribute set that is already mapped with a category, then-

    • For instance, a category C1 is mapped to attribute set A1 which includes the given attributes- a1, a2, a3.
    • If the admin adds another attribute, suppose, a4 to the attribute set A1, then the changes will reflect and the attribute a4 will display for the mapped category C1.

    Attribute Type Supported

    The module supports the following type of attributes –

    • Text Field: This input type is used to enter a single editable line of text.
    • Text Area: This input type is used for multi-line area for displaying text.
    • Date: This enables the user to enter a date either using a text box or using a date picker interface.
    • Yes/No: This will allow the yes/no input selection type.
    • Multiple Select: This input type is used to select more than one option in the list.
    • Drop-Down: This input type is used to select only one option in the list.
    • Price: This input type is used to create additional price fields.

    Note: The module doesn’t support Fixed Product Tax, Visual Swatch, and Text Swatch input types.

    That’s all for the Magento 2 Multi-Vendor Attribute Set Mapping. If you still have any issue, feel free to add a ticket and let us know your views at http://webkul.uvdesk.com/

    Current Product Version - 3.0.0

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

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close

    Table of Content

    Hide Index