codebaby / product-attachments
CodeBaby Product Attachments Magento 2 Module
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 1
Type:magento2-module
Requires
- php: ~5.5.0|~5.6.0|~7.0.0|~7.2.0|~7.4.0
- magento/framework: *
- magento/magento-composer-installer: *
This package is auto-updated.
Last update: 2025-04-07 02:50:08 UTC
README
Add field for product attachments so customers can download on product page (Magento 2 Module)
Install instructions:
Install it via composer:
composer require codebaby/product-attachments
After installation, run the following commands:
bin/magento s:up
bin/magento s:d:c
bin/magento s:s:d
(if on production mode)
bin/magento s:s:d -f
(if on developer mode)
bin/magento c:f
Display Files on Product Page:
To display the files, go to Store > Configuration > CodeBaby Settings > Product_Attachments
and enable display on the desired position
#Display in custom location using xml: Add this block to the desired xml node:
<block class="CodeBaby\ProductAttachments\Block\Product\View\Attachments" name="cb.product.files.tab" template="CodeBaby_ProductAttachments::product/view/product_attachments_tab.phtml"> <arguments> <argument translate="true" name="title" xsi:type="string">Product Attachments</argument> <argument name="sort_order" xsi:type="string">100</argument> </arguments> </block>