The Product Attachments extension for Magento 2 adds a dedicated attachments section to your product pages, allowing you to upload a variety of files—user guides, additional images, PDFs, certificates, licenses, and more.
- Manage and add multiple attachments directly from the product edit page
- Import/export attachments for easy data handling
- Assign attachments to products using product grid, IDs, or SKUs
- Display attachments via widget: all, specific, or current product-based
- Include attachments in new order confirmation emails and sitemaps
- Full API support to create, update, retrieve, and delete attachments
- Product API support to assign/remove attachments and fetch data
- GraphQL support to fetch attachments by product ID and retrieve icons
- Upload unlimited attachments with title, icon, and file size display
- Download attachments from the grid or edit form
- Simple attachment management with customer group & store view restrictions
- Add attachments as downloadable links
- Customize attachment labels and visibility of the Product Attachment tab
- Show file size on the frontend
- Choose between table view or list view for displaying attachments
- Hyvä theme compatibility
- Supports various file formats: jpg, jpeg, gif, png, pdf, csv, bmp, txt, doc, docx, xls, xlsx, rtf, ppt, pptx, zip and many more
Check full description on Magento Marketplace
Display all attachments:
{{block class="Mageprince\Productattach\Block\AllAttachment" template="Mageprince_Productattach::all-attachment.phtml" show_icon=1 show_label=1 show_description=0 show_filetype=0 show_size=1 show_download=1 apply_customer_filter=1 apply_store_filter=1}}
Display attachments for the current product:
{{block class="Mageprince\Productattach\Block\AllAttachment" template="Mageprince_Productattach::all-attachment.phtml" show_icon=1 show_label=1 show_description=0 show_filetype=0 show_size=1 show_download=1 apply_customer_filter=1 apply_store_filter=1 current_product=1}}
Display attachments by file type (e.g., PDF, DOC):
{{block class="Mageprince\Productattach\Block\AllAttachment" file_type="pdf,doc" template="Mageprince_Productattach::all-attachment.phtml"}}
Limit the number of attachments displayed:
{{block class="Mageprince\Productattach\Block\AllAttachment" count="10" template="Mageprince_Productattach::all-attachment.phtml"}}
Show specific attachments by ID:
{{block class="Mageprince\Productattach\Block\AllAttachment" attachment_id="5,6" template="Mageprince_Productattach::all-attachment.phtml"}}