Product File Attachments

Installation

  • Unzip and paste the extension file into your root Magento folder.
  • Connect to your server by SSH.
  • Go to your Magento root folder.
  • To install the extension, perform this command:
php bin/magento setup:upgrade
  • To switch the extension on/off, perform these commands:
php bin/magento module:enable Aitoc_ProductFileAttachments
php bin/magento module:disable Aitoc_ProductFileAttachments

You can activate/deactivate several Aitoc extensions at once by specifying their names separated by space in the command.

Creating a widget

CONTENT > ELEMENTS - WIDGETS

NOTE

Create a new widget to add a new block with attachments to product pages.

CONTENT > ELEMENTS - WIDGETS - ADD WIDGET

NOTE

Select ‘Aitoc Product File Attachments’ on the ‘Type’ dropdown menu.

NOTE

Set your current theme.

CONTENT > ELEMENTS - WIDGETS - ADD WIDGET - STOREFRONT PROPERTIES

NOTE

Add a widget title for internal reference.

NOTE

Assign the new block to those Store Views where you want to display it.

NOTE

Set the order for the widget if it appears in the same location as other content elements.

CONTENT > ELEMENTS - WIDGETS - ADD WIDGET - STOREFRONT PROPERTIES - LAYOUT UPDATES

NOTE

Configure the widget’s position on product pages. Please note that this widget may be added only to product pages. Enable this block either for all product types, specific product types or products. You can add the widget with file attachments on different product types.

CATALOG > PRODUCTS - PRODUCT - ADVANCED INVENTORY

NOTE

Add a custom widget title to be displayed on the storefront.

General settings

STORES > SETTINGS > CONFIGURATION > AITOC EXTENSIONS - PRODUCT FILE ATTACHMENTS

NOTE

You may configure the extension per Store View.

NOTE

Select Customer Groups attached files will be shown to.

NOTE

You may hide attached files from customers who haven’t purchased the product.

Uploading attachment icons

CATALOG > PRODUCT FILE ATTACHMENTS > ICONS

NOTE

There are 8 icons associated with different file extensions in the library. You may edit existing icons and add new ones for other file formats.

NOTE

You may delete icons individually or in bulk from the grid.

CATALOG > PRODUCT FILE ATTACHMENTS > ICONS - ADD NEW ICON

NOTE

Upload an icon image file. We recommend using jpg, jpeg, gif, png, or svg file formats.

NOTE

Specify a file extension to be associated with the icon.

Adding attachments to the product

CATALOG > PRODUCTS > PRODUCT - PRODUCT FILE ATTACHMENTS BY AITOC

NOTE

Product attachments can be configured per Store View.

NOTE

Assign a custom title to the attachment that will be shown on the storefront.

NOTE

You may track file downloads and link clickthroughs.

NOTE

Leave the ‘Customer Group’ field unchanged to use General Settings.

NOTE

Check the box to make the attachment visible on the storefront.

NOTE

Check the box to hide the attachment from customers who haven’t ordered the product.

Tracking file downloads

REPORTS > PRODUCTS - ATTACHMENTS

NOTE

Hit this button to generate a report for the period of time specified below.

NOTE

Lifetime statistics for file downloads and link clickthroughs on all the product pages are available on this page.

NOTE

You can export the report to a CSV or Excel XML file.

Front-end view: a product page