Magento 2 Product Attachments

Magento 2 Product Attachments allows providing detailed information about the product such as user guides, demo, license, presentations, etc. on the Product Page in an attractive manner.


Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. CMS Page Settings
  4. Creating Attachment Categories
  5. Creating Product Attachments
  6. Add Attachments from Product Edit
  7. Product Attachments in Frontend


  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
    • php bin/magento cache:flush
  • That’s it.


  1. Configuration
    For configuring the extension, log in to Magento 2, move to Stores > Configuration > Product Attachments where you can find various settings to enable the extension.
  • Product Attachments: Enable Product Attachments extension
  • Product Attachments Tab Title: Enter the title of the attachment tab in the product page.
  • Product Attachments Heading: Add heading for the attachments.
  • Display File Size: Set “YES” to display file size in the frontend.
  • Display Count of Downloads: Set “YES” to display the number of downloads in the frontend.


  1. CMS Page Settings
    Settings to enable product attachments on CMS pages.
  • Enable CMS Attachments: Select YES to enable product attachments on CMS pages.  
  • CMS Page Attachments Heading: Enter heading for product attachments to show on CMS pages.


  1. Creating Attachment Categories
    You can create attachment categories to properly manage similar attachments under a single category. Go to Catalog > Product Attachments > Manage Attachment Categories to create and manage product attachments.
    • Name: Enter name for the attachment category.
    • Description: Add description to show along with attachments
    • Is Active: Enable attachment category from here.


  • Saved Attachment Categories
    All the created and saved attachment categories are enlisted here. To add a new attachment category, click on the “Add New Category” button.


  1. Creating Product Attachments
    Once you have created attachment categories, you can start adding product attachments. Go to Catalog > Product Attachments > Manage Attachments to create and manage product attachments.
  • Category: Select Attachment Category.
  • Is Active: Enable Attachment.
  • Name: Add Attachment name.
  • Description: Add description for the attachment.
  • Limit number of downloads: Enter numbers to limit downloads.


  • File Upload for Attachment
    • File/URL Switcher: Select attachment type
    • Files: Browse attachment file
    • File Name: The uploaded file name and size will be displayed which can be removed also.
    • Customer Groups: Select customer groups to allow view and download attachment.
    • Store View: Select store views to enable attachment for.


  • Assign Products to Attachment
    Select and assign products to attachment to show on the product page in frontend from the “Assign Products to Attachment” tab in the Attachment Information menu.



  • Assign CMS Pages
    In the “Assign CMS Page” tab from the Attachment Information menu, select and assign CMS pages to attachment to show on CMS pages on the frontend.


  • Saved Attachments
    You can manage and view the saved attachments as shown below. You may also add a new attachment by clicking on the “Add New Attachment”.


  1. Add Attachments from Product Edit
    Apart from the “Manage Attachments” section, you can also assign new attachments to the products. Go to Catalog > Products > Edit Product and click on the “Add Attachments” button under Product Attachments tab as shown below.


  1. Product Attachments in Frontend
  • Product Attachments in the frontend
    Once you configure the above settings, the product attachments will be enabled in the frontend on the product page as shown below. Moreover, the file type attachment is shown with size, download information, and description.


  • URL Attachments in the frontend
    The URL type product attachment with link and description is displayed in the frontend as shown below.


  • Attachment on CMS Page
    The screenshot shows the file attachment on CMS page.