Chat on WhatsApp

Product Attachments for Magento 2

Attach files, links, and documents to products, categories, and CMS pages in Magento 2 with a full-featured file manager, versioning, download analytics, attachment types, customer group access control, and a reusable widget. Works natively on both Hyva and Luma storefronts.

Magento 2.4.6–2.4.8 PHP 8.1–8.4 Hyva + Luma Ready Free

Key Features:

  • Products
  • Categories
  • CMS Pages
  • Multi-entity

Additional Services

$0.00
In stock
SKU
panth-product-attachments
Links
Pay with Wise
Lifetime Updates Every Magento release
1-Year Free Support Email + WhatsApp
Adobe-Certified Magento 2 Developer
Free Forever No subscription, no upsell
What you get

Everything in the box

Built-in from day one. No add-ons, no upsell, no licence keys to renew.

Products

attach unlimited files or links to any simple, configurable, bundle, grouped, virtual, or downloadable product

Categories

add category-level attachments (brochures, lookbooks, size charts) inherited by child products optionally

CMS Pages

enrich About, FAQ, Policy, or Landing pages with downloadable resources

Multi-entity

one attachment can be linked to many products/categories/pages at once (no duplication)

Overview

Panth Product Attachments is a downloadable files and links extension for Magento 2 and Adobe Commerce that lets merchants attach PDFs, manuals, datasheets, videos, images, and external URLs to any product, category, or CMS page.

The Panth Product Attachments module ships a centralized file manager with version control, attachment types, per-customer-group visibility, and download analytics — so a single uploaded PDF can be reused across hundreds of products without duplication. Files can be attached to simple, configurable, bundle, grouped, virtual, and downloadable products, and category-level attachments optionally inherit to every child product so merchandisers stop re-uploading the same brochure on every SKU.

Versioning preserves old download URLs and history when a file is replaced, so warranty links printed on physical packaging never break. Bulk assign and unassign actions let merchants mass-attach a compliance document to a whole catalog category in one admin action. A reusable widget embeds the attachments block anywhere — product pages, CMS landing pages, FAQ, or About — with a single block insertion.

Storefront templates ship for both Hyvä (Alpine.js + Tailwind) and Luma, and the entire codebase is MEQP-compliant for clean Adobe Commerce extension reviews and marketplace submission.

Best for:

  • Electronics, industrial, and B2B catalogs where spec sheets and manuals drive purchase confidence
  • Fashion and apparel stores that need category-level size guides inherited by every product
  • Regulated catalogs (food, cosmetics, automotive) that must surface compliance documents per SKU

What you get

Panth Product Attachments centralizes every downloadable resource a Magento 2 catalog needs:

  • Attach unlimited files or links to products, categories, and CMS pages — one entity, many parents
  • Centralized file manager with version control, file replacement, and bulk assign actions
  • Per-customer-group visibility plus configurable attachment types for filtering and labels
  • Download analytics — track clicks, downloads, and per-customer-group access on every file
  • Hyvä and Luma storefront templates plus a reusable widget for CMS pages

Key Features

Attach Anywhere

  • Products — attach unlimited files or links to any simple, configurable, bundle, grouped, virtual, or downloadable product
  • Categories — add category-level attachments (brochures, lookbooks, size charts) inherited by child products optionally
  • CMS Pages — enrich About, FAQ, Policy, or Landing pages with downloadable resources
  • Multi-entity — one attachment can be linked to many products/categories/pages at once (no duplication)

Centralized File Manager

  • Upload once, reuse everywhere — single-source file library for all attachments
  • Versioning — upload a new version while preserving old download URLs and history
  • File replacement — swap a file in place without editing every product
  • Bulk assign/unassign — mass-attach files to multiple products from the grid
  • Drag-and-drop uploads — modern admin UI with progress bars

Download Analytics

  • Per-file download counter — see exactly how many times each file has been downloaded
  • Per-customer log — track which customer/guest downloaded what, when, and from which product
  • Date-range reports — filter downloads by day, week, month, or custom range
  • Top-downloaded grid — identify the most popular assets at a glance
  • CSV export — export download logs for BI or compliance

Attachment Types

  • Built-in types — PDF, DOC, XLS, PPT, ZIP, Image, Video, Audio, External Link
  • Custom types — define your own (e.g., "Spec Sheet", "Warranty", "User Manual", "Safety Data Sheet")
  • Type-specific icons — auto-detected file-type icons with customization
  • Filter frontend listing by type — customers can toggle "Manuals", "Videos", "Specs" etc.

Customer Group Access Control

  • Per-attachment visibility — restrict files to Retail, Wholesale, VIP, or custom customer groups
  • Guest vs logged-in — require login to download sensitive documents
  • Login-gated downloads — optional prompt before download triggers
  • B2B-ready — ideal for dealer portals, price lists, contracts

Frontend Display

  • Dedicated product tab — files list rendered in a native Magento product tab
  • Inline block — or display below short description / above add-to-cart
  • Icon + title + size + type — professional table layout with sort & filter
  • Responsive — mobile-first layout, tested on all breakpoints
  • Download counter display — optional "Downloaded X times" badge for social proof

Widget

  • Drag-and-drop widget — place an attachments block on any CMS page, block, or layout position
  • Configurable source — specific product, category, or file IDs
  • Filter by type — show only PDFs, only videos, etc.
  • Layout options — grid, list, or compact views

Hyva & Luma Storefront

  • Hyva-native templates — Alpine.js + Tailwind CSS, no jQuery/KnockoutJS, lightning-fast
  • Luma compatibility — native Magento Luma theme templates, fully responsive
  • Auto theme detection — via Panth_Core helper, no manual config needed
  • No layout conflicts — isolated CSS class prefixes

Security & Quality

  • Secure file delivery — files served through signed controller, direct filesystem paths hidden
  • File type whitelist — admin-configurable allowed extensions, MIME validation
  • Max file size enforcement — server-side check
  • Rate limiting — optional per-IP download throttling
  • MEQP compliant — passes Adobe's Magento Extension Quality Program
  • Zero third-party JS libs — vanilla JS + Alpine on Hyva, jQuery on Luma

Use Cases

  • Electronics & Appliances — user manuals, spec sheets, firmware, warranty PDFs, CAD files
  • Fashion & Apparel — size guides, care instructions, sustainability reports, lookbooks
  • Food & Beverage — nutrition sheets, allergen info, recipe cards, certificates
  • Health & Beauty — ingredient lists, safety data sheets (SDS), clinical studies
  • B2B / Wholesale — price lists, contracts, NDAs, catalog PDFs, dealer-only docs
  • Home & Garden — assembly guides, care manuals, dimension drawings
  • Software / Digital — license agreements, release notes, installer downloads
  • Automotive — compatibility charts, installation videos, parts diagrams

How It Works

  1. Upload files via Panth Infotech → Product Attachments → Manage Files
  2. Assign files to one or more products, categories, or CMS pages via the attachments grid
  3. Configure per-attachment visibility, customer group restrictions, and type
  4. Customers see attachments in the product page tab, category page, or CMS page
  5. Downloads are tracked in real time; view analytics in Panth Infotech → Product Attachments → Download Log
  6. Upload new versions any time without breaking existing URLs

Widget Usage

  1. Go to Content → Elements → Widgets → Add Widget
  2. Select Type: Product Attachments and your theme
  3. Configure the storefront properties and widget options:
  • Source: specific product IDs, category IDs, or all
  • Filter by attachment type
  • Layout: grid, list, or compact
  • Items per row / limit
  1. Place the widget on any CMS page, block, or layout position

Inline CMS usage:

{{widget type="Panth\ProductAttachments\Block\Widget\Attachments" product_id="123" layout="grid"}}

Hyva & Luma Support

This module ships with two parallel template sets:

  • Hyvaview/frontend/templates/hyva/ using Alpine.js + Tailwind CSS utility classes. No jQuery, no KnockoutJS, no RequireJS on the frontend.
  • Lumaview/frontend/templates/ using standard Magento KnockoutJS + jQuery widgets.

Theme detection is fully automatic via Panth\Core\Helper\Theme::isHyva(). No manual configuration is required. You can install this module on a mixed Hyva + Luma multi-store setup and each storefront will render the correct template.


Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 — 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
MySQL 8.0+
MariaDB 10.4+
Hyva Theme 1.3+ (native templates)
Luma Theme Native support
Required mage2kishan/module-core (free)

Tested on:

  • Magento 2.4.8-p4 with PHP 8.4 (Hyva 1.3 + Luma)
  • Magento 2.4.7 with PHP 8.3
  • Magento 2.4.6 with PHP 8.2

Installation

Composer Installation (Recommended)

composer require mage2kishan/module-product-attachments
bin/magento module:enable Panth_Core Panth_ProductAttachments
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the latest release ZIP from Packagist or the Adobe Commerce Marketplace
  2. Extract the contents to app/code/Panth/ProductAttachments/ in your Magento installation
  3. Also install Panth_Core (free dependency) from github.com/mage2sk/module-core
  4. Run the same commands as above starting from bin/magento module:enable

Verify Installation

bin/magento module:status Panth_ProductAttachments
# Expected output: Module is enabled

After installation, navigate to:

Admin → Panth Infotech → Product Attachments → Manage Attachments
Admin → Stores → Configuration → Panth Extensions → Product Attachments

Configuration

Navigate to Stores → Configuration → Panth Extensions → Product Attachments.

Setting Default Description
Enable Module Yes Master toggle for all Product Attachments functionality
Display Position Product Tab Where to render attachments: Tab, Below Description, Above Add-to-Cart, Custom Block
Tab Title Attachments Frontend tab label, translatable
Show File Size Yes Display file size next to each attachment
Show Download Count Yes Display "Downloaded X times" badge
Require Login No Force customer login before download
Allowed File Extensions pdf,doc,docx,xls,xlsx,ppt,pptx,zip,jpg,png,mp4 Comma-separated whitelist
Max File Size (MB) 50 Per-file upload limit
Enable Download Log Yes Track all downloads in the database
Log Retention (days) 365 Automatic cleanup of old logs
Default Customer Groups NOT LOGGED IN, General Groups allowed to download by default

More Information
Module Category Catalog & Products
Best For All Sizes

Need this customised?

Talk to Kishan directly — written quote, scope and timeline within 24 hours. No sales call.

WhatsApp

Product Attachments for Magento 2

$0.00
Step up

Customers usually upgrade to