2017 © Pedro Peláez
 

magento2-module magento2-productattachment

Magento2 Product Attachment Module

image

mageprince/magento2-productattachment

Magento2 Product Attachment Module

  • Friday, June 8, 2018
  • by mageprince
  • Repository
  • 13 Watchers
  • 46 Stars
  • 275 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 25 Forks
  • 1 Open issues
  • 3 Versions
  • 1347 % Grown

The README.md

Download Latest Module with Magento 2.4.x support From Magento Marketplace

Download Link

User Guide

Magento2 Product Attachment

The Product Attachments extension for Magento 2 equips product pages with a special attachments block where you can upload numerous documents such as user guides, extra images, pdf, certificates, licenses and many others., (*1)

New Features

  • You can now manage attachments from the product edit page
  • Add multiple new attachments from the product edit page
  • Assign products to attachment by Product Grid, Product IDs, or by Product Skus
  • Implement widget to show specific attachments, all attachments or by current product
  • API support: Now you can manage attachments by APIs.
    • Create a new attachment
    • Update attachment
    • Get attachment
    • Delete attachment
    • Get attachments data by product id
  • Product API support: Now you can also manage attachments with product API
    • Assign/Remove attachments from the product
    • Get attachments

Check full description on Magento Marketplace, (*2)

Demo

Frontend | Backend, (*3)

Code to show attachments on CMS page or Static Block

1) To show all attachments, (*4)

{{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}}

2) To show attachments of current product, (*5)

{{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}}

3) To show attachments by file_type, (*6)

{{block class="Mageprince\Productattach\Block\AllAttachment" file_type="pdf,doc"
template="Mageprince_Productattach::all-attachment.phtml"}}

4) To set number of attachments to show, (*7)

{{block class="Mageprince\Productattach\Block\AllAttachment" count="10"
template="Mageprince_Productattach::all-attachment.phtml"}}

5) To show attachment by attachment id(s), (*8)

{{block class="Mageprince\Productattach\Block\AllAttachment" attachment_id="5,6"
template="Mageprince_Productattach::all-attachment.phtml"}}

Screenshot

Product Page - Table View

, (*9)

Product Page - List View

, (*10)

CMS Page

, (*11)

Product Edit Page

, (*12)

Add/Edit Attachment

, (*13)

The Versions

08/06 2018

dev-master

9999999-dev https://github.com/mageprince/magento2-productAttachment

Magento2 Product Attachment Module

  Sources   Download

GPL-3.0-or-later

by Prince Patel

14/05 2018

dev-develop

dev-develop https://github.com/mageprince/magento2-productAttachment

Magento2 Product Attachment Module

  Sources   Download

GPL-3.0-or-later

by Prince Patel

04/04 2018

1.0.0

1.0.0.0

Magento2 Product Attachment Module

  Sources   Download

proprietary

by Prince Patel