# Overview

Create PDF, file, embeded YouTube, and mp4 video  attachments to your products, categories, manufacturers

## Descriptions

The Product Attachments plugin for nopCommerce is a powerful tool that allows you to add a variety of different file attachments and media to your product pages, making it easy for customers to access important information about your products. With the ability to create PDF or file attachments, as well as embed YouTube and mp4 videos directly on your product pages, you can offer a rich and engaging shopping experience that helps your customers make informed purchase decisions.

The plugin makes it easy to manage your attachments, with the ability to show attachments for all products in selected categories and manufacturers. You can also export all attachments to a CSV file, making it easy to manage your attachments outside of your store's admin panel. And if you need to add new attachments, you can import them via CSV file, or upload many PDFs and other files at once using a ZIP file.

The Product Attachments plugin also includes many widget zones that you can use to display your attachments in different parts of your product pages. And with the ability to create custom icons for your attachments, you can ensure that they look great and fit seamlessly with your store's design.

## Features

* Create PDF or File attachments on your product page
* Show YouTube embeded video attachments along with your products
* Show embeded mp4 video attachments along with your products
* Show attachments for all products in selected categories, manufacturers
* Export all attachments to CSV file
* Import new attachments via CSV file
* Upload many PDFs, and other files via ZIP file
* Many widget zones for your attachments to select from
* Create custom icons for your attachments
* Responsive display on your product page
* Limit attachments to only certain customer roles, stores, languages

{% hint style="info" %}
In case you encounter an issue, you can contact us via <support@foxnetsoft.com>
{% endhint %}


# Installation process

## Supported versions

Currently Order Export Manager supports following versions of nopCommerce: 4.80, 4.70, 4.60, 4.50. With new releases of nopCommerce we will try to update our plugin as soon as possible.

## Installation

After downloading plugin, head to **Configuration** section of your nopCommerce **Admin Pannel**. Select **Local Plugins** page and click on **Upload plugin on theme**. Locate Product Attachments ZIP file and upload it to your website. Reload your nopCommerce website and go to the same **Local Plugins** page. Scroll to locate **Product Attachments** and click **Install** next to it.

After successful installation a **FoxNetSoft** section would appear in your **Admin Panel**. Click on it to reveal **Product Attachments** and its settings.

{% hint style="danger" %}
Unregistered version would work only for 15 days, limiting amount of attachments to 15.
{% endhint %}

{% hint style="info" %}
In case you encounter an issue, you can contact us via <support@foxnetsoft.com>
{% endhint %}


# Updating plugin

## Why updating?

Although any version of the plugin that was released on our website is fully operational, we constantly add new features and fix existing issues.&#x20;

It is worth to update your plugin in the following scenarios:

1. When you update nopCommerce
2. When you encounter any issues with the plugin
3. A month after a new release of a nopCommerce, even if you are not updating nopCommerce

This would ensure that you are using the best version of the plugin.&#x20;

{% hint style="info" %}
Updating will not erase any data that you created for your imports
{% endhint %}

## Where to download the latest version?

You can find the latest version on our plugin page, by clicking Download Trial. Note, if you have bought the plugin, a full version will be downloaded.

## How to update the plugin

Process of updating the plugin is exactly the same as the first plugin installation. You can navigate to [this section of documentation](/installation-process#installation).


# Create new attachment

This section describes how to create new attachment in admin pannel, and what properties you can specify for an attachment

## Overview

To create new attachments, navigate to the **Attachments page** of the plugin, and click on **Add new** in top right corner.

You will be redirected to the attachment setup page. This page has two blocks with different settings for your attachments.

{% hint style="warning" %}
You need to fill **Main** block, then click **Save and continue edit**, and then fill **Mappings** block
{% endhint %}

### Main block

<table><thead><tr><th width="180.5">Setting</th><th>Explanation</th></tr></thead><tbody><tr><td>Published</td><td>Whether the attachment is published and displayed in the store</td></tr><tr><td>Associated to</td><td>Attachments can be associated to Products, Categories, or Manufacturers. If an attachment is associated to Categories or Manufacturers, it will be associated to all products in these categories/manufacturers.</td></tr><tr><td>Icon</td><td>What icon to show next to attachment. Note, if your attachment is a YouTube/HTML5 video, an icon will not be shown.</td></tr><tr><td>Attachment type</td><td>The plugin supports 4 attachment types. <br>File<br>URL<br>Embed YouTube<br>HTML5 Video (mp4)</td></tr><tr><td>Attachment parameters</td><td>Every attachment type has their own attachment parameters. Url, Upload file, etc.</td></tr><tr><td>Name</td><td>The display name of the attachment. Note, YouTube and HTML5 videos will be shown without Name, just thunbnail.</td></tr><tr><td>Display Order</td><td>Order in which to display attachments on website</td></tr><tr><td>Language</td><td>You can select language that this attachment will be applied to</td></tr><tr><td>Customer roles</td><td>You can select customer roles that this attachments will be showed to</td></tr><tr><td>Limit to stores</td><td>You can select stores that this attachments will be showed on</td></tr></tbody></table>

{% hint style="warning" %}
Name and Icon will not be shown on HTML5 or YouTube Video. Only thumbnail will be shown.\
You can use URL attachment type to make a video with a name, but then thumbnail will not be shown, only name, as a link to that video.
{% endhint %}

### Mapping block

After you fill Main block to your needs, and click Save and continue edit, you will be able to select Products, Categories, or Manufacturers in the Mapping block.


# Embeded YouTube

How to add embeded youtube video

To add emxeded YouTube video you need to:

1. Open the video on YouTube
2. Click **Share** under the video, and select **Embed**.
3. Copy the code you will see. It should look like this:\
   `<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>`
4. Make adjustments to this code. The values you might want to change is width and height. By default it is 560 by 315 pixels.\
   You can set it to any values, but it is recommended to keep the ratio the same as original (16:9) for a good look.
5. Paste this code on Create Attachment section of the plugin.


# Importing via CSV

You can import a lot of attachments via CSV file at the same time

## How to create CSV file for import

Even though you can use any utility to create CSV files, the best option is to use Microsoft Excel.

We would recommend creating several attachments manually, then [exporting the file to CSV](broken://pages/Bzp3WzhaOKuD3OLCsRZh) to understand the structure of the file. Alternatively, you can download sample file below.

{% file src="/files/rrSLC5nTnbImNJSMWAjw" %}
Sample file
{% endfile %}

{% hint style="info" %}
When you import CSV file, attachments will be **added to existing** attachments. If you want to **overwrite** old attachments, make sure to delete old attachments via **Delete All** button next to Import buttons.
{% endhint %}

## Structure of import file

<table><thead><tr><th width="182">Column name</th><th>Explanation</th></tr></thead><tbody><tr><td>Published</td><td>True or False</td></tr><tr><td>Icon</td><td>Filename of the icon. Default icons have names with <strong>.png</strong> extension. <br><br>For example for pdf icon use <strong>pdf.png</strong></td></tr><tr><td>File name</td><td>Fill only if importing File.<br><br>This is only for the display in admin pannel.</td></tr><tr><td>AttachmentMode</td><td>File<br>FileUrl<br>HTML5Video<br>EmbedYoutube</td></tr><tr><td>File URL</td><td>If importing File, type URL on your store. Usually it would be <code>https://yourstore.com/files/attachments/file_name.pdf</code><br><br>If importing FileUrl, type URL<br><br>If importing HTML5Video, type URL to the video.<br><br>If importing YouTube Video, type <a href="/embeded-youtube">iframe tag</a>.</td></tr><tr><td>Name</td><td>Display name for the attachment. Will be shown on product page.</td></tr><tr><td>ProductSource</td><td>To which entity map attachment.<br><br>Products, Categories, or Manufacturers</td></tr><tr><td>Ids</td><td>If mapping to Products, use SKUs of the products separated with <strong>SPACE</strong><br><br>If mapping to Categories, use <a href="https://importmanager.docs.foxnetsoft.com/what-is-id">Category Ids</a> separated with <strong>SPACE</strong><br><br>If mapping to Manufacturers, use <a href="https://importmanager.docs.foxnetsoft.com/what-is-id">Manufacturer Ids</a> separated with <strong>SPACE</strong></td></tr><tr><td>Language</td><td>Fill language Id (number). 0 means all languages.</td></tr><tr><td>Width</td><td>Fill only if using HTML5Video. </td></tr><tr><td>Height</td><td>Fill only if using HTML5Video. </td></tr></tbody></table>

{% hint style="warning" %}
If you are importing YouTube video, do not use Width and Height parameters. Use width and height in iframe directly.
{% endhint %}


# Importing via ZIP

Importing via ZIP is used to import main CSV file, along with other PDFs to the server

{% hint style="info" %}
It is recommended to place files directly to the files/attachments folder on your server, if possible, and import only CSV file.
{% endhint %}

Zip file should contain any amount of PDF files and one CSV file. CSV file should have exactly the same structure as described on [previous page](/importing-via-csv).


# Widget Zones

## Overview

Widget Zone setting is located on Configure page of the plugin.

Widget Zones allow you to select where to put the attachment block on product page.

## Possible widget zones

<figure><img src="https://3870843390-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9cNqeRBWPLY1WjaJxQO3%2Fuploads%2FoW66D3pywhJ1U9neOo8X%2FScreenshot%202023-02-21%20at%206.15.18%20PM.png?alt=media&amp;token=bb4d4bcf-2ef5-4e42-bc74-b66807f1b62b" alt=""><figcaption><p>Widget zones</p></figcaption></figure>


