Installation
Before installing the extension, please make sure to Backup your web directory and store database
You will require to install MageDelight Base Extension first. If it is not installed then please download it from https://www.magedelight.com/pub/extensions/magedelight-base.zip and unzip the package file into the root folder of your Magento 2 installation.
Root Directory is - "app/code/magedelight/#YourExtensionName#"
- Unzip the extension package file into the root folder of your Magento 2 installation.
- Connect to SSH console of your server:
- Navigate to the root folder of your Magento 2 setup
Run command as per below sequence,
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
- log out from the backend and log in again
If you are using Magento 2.3 or later then you do not need to activate license. Extension will be activated with silent activation mechanism and does not require activation keys to be entered manually.
Backend Configuration (Admin side)
Go to, Admin Control Panel > Stores > Configuration > Magedelight > Product Attachment > General Configuration.
- Show tab on Product Page: Enable option to display attachment tab on product detail page.
- Tab Title: Write title to show on frontend for product attachment tab.
- Attachments View: Either display attachments in table or list view.
- Below settings are only for Table View -
- Show File Icon: Enable the option to display file icon for the attachment.
- Product Attachments Code -
- For Magento version 2.3.x: Add given code to content section of product edit page from catalog tab in admin. It will display product attachment block on the product detail page on frontend.
- For Magento Version 2.1.x and 2.2.x: Add given code in the file mentioned in the image wherever you require.
Backend Functionality
Manage Attachments
Go to, Admin Control Panel > Product Attachment > Attachment tab.
- View and manage list product attachments from above grid in admin.
- Click on "Select" link from Action column in the grid to edit or delete the attachment.
- Click on "Add New Attachment" button to upload new attachment document on product detail page.
Add New Attachment
- Status: Enable/disable attachment status.
- Upload Attachment: Upload the document to be displayed on product page.
It supports majority of file types like .doc, .docx, .xls, .xlsx, .pdf, .csv, .jpg, .jpeg, .png etc. And Audio, video and executable files are not supported.
- File Label: Write relevant file name. This is for internal usage for admin only.
- Customer Group: Select customer groups to whom attachment tab should get displayed.
- Product Condition: Select conditions using product attributes to enable the product attachment tab for them.
- Product Listing: This option will get enabled once the attachment is saved. Then on edit, it will display all products which matches the condition criteria and admin can select/deselect the products from that list.
Manage Icons
Go to, Admin Panel Control > Product Attachment > Icon.
- View and manage list product attachment icons from above grid in admin.
- Click on "Select" link from Action column in the grid to edit or delete the icons.
- Click on "Add New Icon" button to upload new icon to display relevant to the attachment uploaded on product detail page.
Add New Icon
- Status: Enable/disable icon status.
- Icon Image: Upload the image to get displayed on product page along with attachment.
- Icon type: Write icon type. This is for internal usage for admin only.
- File Extensions: Mention file extensions (comma (",") separated) to display icons for the type of files uploaded as attachment(s).
Product Attachment on Catalog Product Page
Go to, Admin Control Panel > Catalog > Products and click on product for which you want to view or delete the product attachments from Product Attachments section.
- View or delete the product attachments created for the product.
Create and Edit product attachment is possible only via Product attachment > Attachment tab (extension feature).
Frontend Functionality
Product Attachment on Product Detail page
- Product attachment tab created using extension configurations.
- Product attachment tab created using attachment static block code.
Thank you for choosing MageDelight!