Ana Sayfa / Eklentiler / Product Attachments for Magento 2

Product Attachments for Magento 2

Kendi sunucunuzdan önizlemeler, CSV içe aktarma ve otomatik atama kurallarıyla PDF'leri, Office dosyalarını ve videoları Magento 2 ürünlerine ekleyin.

  • Yayın tarihi6 Kasım 2026
  • Nerede çalışırMagento 2.4.x
  • Paket içeriği.php, .css, .json, .md, composer.json, .xml, JavaScript .js
  • Son güncelleme6 Kasım 2026
  • Canlı demoVar
Product Attachments for Magento 2
Ekran görüntüsü 1Ekran görüntüsü 2Ekran görüntüsü 3Ekran görüntüsü 4Ekran görüntüsü 5Ekran görüntüsü 6Ekran görüntüsü 7Ekran görüntüsü 8Ekran görüntüsü 9

Overview

Data sheets, manuals and certificates belong on the product page, not in a support ticket. Product Attachments & Downloads adds an Attachments tab to the product page and gives you three ways to fill it for a large catalogue: mass assignment, CSV import and auto-assign rules.

Technical notes

  • No core rewrites
  • No external services or licence server calls
  • The product page block uses plain HTML, CSS and JavaScript
  • Word, Excel and PowerPoint previews need the MIT-licensed PhpOffice libraries, which are installed with one Composer command. They are not part of the ZIP file

Included

  • Full module source for app/code/STM/ProductAttachments/
  • Installation Guide, User Guide and Reference Manual (PDF, English)

The manuals and the admin menu use the module name STM Product Attachments.

Support

Support is provided in the support section of this item for 12 months after purchase. Installation and server configuration are not included.

Features

Files on the product page

  • Attachments tab with your own title
  • Files, YouTube links and direct videos (MP4, WebM)
  • Inline preview for PDF, Word, Excel, PowerPoint (.pptx), text, CSV, images and video
  • Previews are rendered on your own server, with no external viewer
  • Download counter, file size and file type badge, each optional
  • Sort order and grouping by attachment category

Assigning files

  • Attachments section on the product edit page
  • Central grid under Catalog > Product Attachments > Manage Attachments
  • Mass action Assign Attachment in the product grid
  • CSV import with the columns sku, title and file_path, plus optional category and sort order, and error messages per row

Auto-assign rules

  • Conditions on category, attribute set or any product attribute
  • Match all conditions or any condition
  • Apply on save, or nightly by cron (off by default)
  • The full page cache is refreshed after a rule has run

Access and appearance

  • Limit attachments to selected customer groups. This setting applies to all attachments of a store view, not to single files
  • Separate switch for guest downloads
  • Allowed file types and maximum file size from the admin
  • Own label, colour and icon per file extension

Administration

  • Settings can differ per website or store view
  • German translation included

Requirements

  • Magento Open Source or Adobe Commerce 2.4.x
  • PHP 8.1, 8.2, 8.3 or 8.4
  • SSH access to run bin/magento, and Composer for the PhpOffice libraries

Instructions

  1. Install the libraries for the Office previews: composer require phpoffice/phpspreadsheet phpoffice/phpword phpoffice/phppresentation
  2. Copy the folder app from the ZIP file into your Magento root directory.
  3. The module must end up in app/code/STM/ProductAttachments/ (case-sensitive).
  4. Run bin/magento module:enable STM_ProductAttachments, then setup:upgrade, setup:di:compile and cache:flush.
  5. In production mode, also run setup:static-content:deploy for every active locale.

The Installation Guide in the documentation folder covers verification and troubleshooting.