Product Table Attribute Module: Product table attribute module for Magento 2 helps the admin to create a table attribute for the products.
The table attribute allows a multi-dimensional presentation of the product data in the form of a table. It is useful in managing multiple data entries of a single product. The admin can also add multiple tables to the single product page.
The admin can add as many rows and columns to a product table for showing the detailed information about the product which will display at the product page on the front-end.
- The admin can create the product table of a product for the different store views.
- The admin can manage the columns of the table for different store views from the back-end.
- The admin can create a table attribute from the back-end.
- This module helps to show detailed information about the product.
- The product details will show in the form of the product table.
- The details of the product will get visible on the product page under charts.
- The value of the table is entered while creating the product.
- The admin can create as many rows and columns for the table.
- The admin can create the product table of a product for the different stores.
- Multiple tables for a single product.
- This module is compatible with Magento 2.2.*, 2.3.*
The admin will get a zip folder then they have to extract the contents of the zip folder on their system.
Then, the extracted folder has an src folder, inside the src folder you have the app folder.
Now, the admin needs to transfer this app folder into the Magento2 root directory on the server, as shown below:
After the successful installation, then the admin has 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 above commands, the admin has to flush the cache from the Magento admin panel.
By navigating through System>Cache management as shown below in the snapshot:
For translating the module language, navigate through src/app/code/Webkul/ProductTableAttribute/i18n. Then, edit the en_US.csv file.
Now, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. Then after editing the CSV, save it.
Now, upload the file to the path src/app/code/Webkul/ProductTableAttribute/i18n which already have Magento2 installed, on the server.
Now the module will be translated into the Arabic language, which supports RTL & LTR languages.
Creation of Table Attribute
After the successful installation of the module, the admin can navigate through, Stores > Product > Add New Attribute for creating a table type attribute.
For the reference, please check the below image:
After clicking on “Add New Attribute,” the admin will see various options, as per the below image:
Default label- The admin will enter the name of the attribute by which the attribute will get identified.
Catalog Input Type for Store Owner- Here the admin has to choose Input type as “Table,” to create a table attribute.
Values Required- If the admin makes this option as “Yes,” then they have to enter the values in the table attribute while creating the product. Or else it is not mandatory.
- Here the admin needs to enter the column values, which will display at the front-end as per the stores.
- The same column names will be visible during the product creation, where the admin will enter values from the back-end as per the description of the product.
- The admin can create multiple columns for the stores.
Different column values can enter by the admin as per the store.
After setting all the fields, the admin needs to click on “Save Attribute” to save the table attribute.
Assignment of Table Attribute
Once the table attribute gets created, then the admin needs to assign the attribute to the attribute set.
For this, the admin needs to navigate through Stores > Configuration > Webkul > Product Table Attribute as per the below image:
Here the admin needs to select the attribute set from the drop-down of Attribute Set ID.
Let’s assume that the admin selects the “Default” attribute set from the drop-down of Attribute Set ID.
Now, whenever the admin creates a table attribute, it automatically gets assigned into Default Attribute set.
Another method to assign the table attribute:
The admin needs to navigate through, Stores > Attribute set as per the below image:
Now, the admin can select the attribute set in which they want to assign the table attribute.
Let’s suppose the admin selects the Default attribute set to assign the table attribute.
Then, the admin can assign the table attribute to the Default attribute set by Drag and Drop.
The admin will drag the table attribute from Unassigned attributes groups and drop it to the Default attribute groups.
for the reference check the below image:
Use of Table Attribute
Whenever the admin creates a new product by using the attribute set which contains the table attribute, the admin can fill the product attribute table which describes the details of the product.
For the reference, check the below image:
Note: The admin can also create the product table for different store views by selecting Store views while creating the product.
The product description table will appear on the product page under charts as shown in below image:
The customer can also select the different store to see the chart in different language as per the below snapshot:
If the admin has added more than one table in the product, then the customer can see the multiple tables under Charts only as per below image:
That’s all about the Product Table attribute for Magento 2 still have any issue feel free to add a ticket and let us know your views to make the module better http://webkul.uvdesk.com/.
Current Product Version - 3.0.0
Supported Framework Version - 2.2.x, 2.3.x