Menu Close
    Hire Us Request Quote Reading List Switch to Dark Mode

    Magento 2 Product Attachment

    Product Attachment for Magento 2: The module is equipped with product pages with a special attachments block where the admin can upload various files such as user guides, certificates, licenses, and many others.

    Upload icons relative to the specific attachment type so that the customer can easily specify the attachment files. Upload an unlimited number of any file types like gif, png, jpg, jpeg and make product pages as informative as possible.

    There are often some essential additional data on the offerings that must be provided to the customers in a most convenient and transparent manner. Adding files allows for making pages maximally informative & taking the deal further.

    Features

    • The admin can upload Product attachments.
    • The admin can assign and upload the attachment from the products Grid as well.
    • The admin can see uploaded Product attachments in Product attachment Grid.
    • The admin can Enable or Disable uploaded Product attachments.
    • The admin can upload Product attachment Icons.
    • The admin can Enable or Disable uploaded Product attachment icons.
    • The customer can see the product Attachments in product details tab and product overview.
    • The admin can configure to display alias name instead of the attachment name.
    • The admin can set the maximum number of attachments to display in the product overview.
    • The admin set attachment size will be displayed at the front end or not.
    • The admin can set the default color for attachment title.
    • The admin can save the Product Attachments according to Store.

    Installation

    Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder. You need to transfer this app folder into the Magento2 root directory on the server as shown below.

    After the successful installation, you have to run these commands in the Magento2 root directory:

    First command – php bin/magento setup:upgrade

    Second Command – php bin/magento setup:di:compile

    Third Command – php bin/magento setup:static-content:deploy

    After running the commands, you have to flush the cache from Magento admin panel by navigating through->System->Cache management as shown below.

    Configuration For Multi-Lingual Support

    For the multilingual support, the admin will navigate through Store->Configuration->General ->Locale Options and select the locale as German (the language into which admin want to translate his store content).

    Module Translation

    If you want to translate their module language from English to German then follow the path app/code/Webkul/ProductAttachment/i18n in their unzipped Magento2 Preorder folder and then you will get a csv file with name “en_US.csv”. Now, rename that csv as to your region code and language code “de_DE.csv” and translate all right side content after a comma in your language. After editing the CSV, save it and then upload it to the path app/code/Webkul/ProductAttachment/i18n where you have installed Magento 2 on their server. The module will get translated into your desired Language. It also supports RTL and LTR languages.

    The user can edit the CSV like the image below.

    Module Configuration

    After the installation of Magento 2 Product Attachment, the admin will find the configuration settings panel by navigating through Stores->Configuration->Product Configuration per the snapshot below.

    Under the Product Attachment Configuration option there are two settings for configuring this module:-

    General settings 

    In the general settings, the admin can-

    • Set the FTP path for File Uploading.
    • select the file types in Attachment Allowed Extensions field.

    Display Settings

     

    In the display settings, the admin can-

    • Enable the module by selecting “Yes” or Disable it by selecting “No“.
    • Specify a customer group for which the attachment will be visible on the frontend.
    • Set as “Yes” to display attachment block only if the product has been ordered, and “No” to display attachment block always.
    • Set Block Title for Attachments.
    • Set as “Yes” to display alias name instead of the attachment name.
    • Set as “Yes” to display attachment size at the front end.
    • The admin can set the default color for attachment title.
    • Set as ‘yes’ to display attachments in the product overview on the front end.
    • Set Block Title for Attachments Overview.
    • Enter the maximum number of attachments to display in the product overview.

    After configuring the module, click on “Save Config“.

    Configuring Product Attachments

    After configuring the module general & Display settings. The admin from the Dashboard will navigate to the Product Attachments Management to manage the product attachment & Icons.

    Manage Product Attachment

    Under this, the admin can find the list of all existing product attachments.

    From here the admin can manage the product attachments. In order to update any attachment click on “Edit“. As shown below.

    Can manage the existing attachments &  also can add a new attachment by clicking on the “Add Attachment” button.

     

    For adding a new attachment, product attachment information need to be entered by the admin-

    • Need to add attachment name.
    • Enter the Alias Name.
    • Upload the attachment file.
    • Enter Alt Text in order to effectively search the attachment file.
    • Add a description for the attachment.
    • Can “Enable” or “Disable” the status of attachment to make it visible on the frontend.
    • Choose the store view to display the attachment.
    • Enter a sort order to set position for the attachment.

    Manage Attachment Icon

    Under this tab the admin can manage the existing attachment icons as well can add a new icon for the attachments. When the file is uploaded, the icon on the frontend indicates the file format to the customer. This informs the customers what file type they are about to download.

    Edit the Icon

    The admin can edit the existing icon by clicking on” Edit” as shown below –

    Add New Icon

    Here to add the icon for attachment, the admin needs to enter-

    • Name of the icon.
    • The alias name.
    • attachment extension file type
    • Choose an icon file to upload.
    • Enter alt text for the icon.
    • Select status for the icon i.e, Enabled or Disabled.
    Upload & Attach Files

    The attachments can be associated with the products in two ways.

    Upload file from product grid view

    Here the admin can add attachments to the product just by clicking on upload option available on every product from the grid only.

     

    After clicking on the ” Upload Files“, the next screen will open consisting of existing attachments. From here the admin will select the attachment which is required to be attached with the product, then select the dropdown “Assign selected files” and save it.

     

    Also, from here the admin can directly add and upload an attachment. For this first click on “ Upload Attachment” then select the specific file to upload from the system, then the selected file will show with other existing attachments just select the desired attachment and assign it to the product.

    Upload from Product Page

    This is the standard method in which the admin can upload files and restrict their access to specific customer groups from product edit sheet.

     

    Here the admin need to provide-

    • Name for the attachment.
    • Alisa Name of the attachment.
    • Browse the file from the system.
    • Select the specific customer group.
    • Can select as “No” to Show the attachment to the customer every time whether the product is ordered or not, and if selected as “Yes” then the attachment will be visible only if the product has been ordered once.
    • Can select whether to make attachment visible or not and then save the product.
    • Color code for the attachment title.

    Frontend Workflow

    After successful configuration done by the admin, let see the frontend of the web store. Here on the product page, the customer can easily find the product attachment overview and product attachment section.

     

    By clicking on Details option, the customer can see the attachment information as shown in the below screenshot.

     

    As the customer clicks on the attachment, the file will open in a new tab, from where the customer can take a preview of the attachment.

    That is all for the Magento 2 Product Management still, have any issue feel free to add a ticket and let us know your views to make the module better at webkul.uvdesk.com

    Current Product Version - 2.1.1

    Supported Framework Version - 2.0.x,2.1.x,2.2.x,2.3.x

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close

    Table of Content

    Hide Index