Attach PDF files to products
How to attach PDF files such as product sheets, manuals, data sheets, or certificates to your products in Shoporama. Includes an example of how to show them correctly in your theme.
You can attach PDF files directly to your products in Shoporama. This is ideal for product sheets, user manuals, safety data sheets, warranty certificates, assembly instructions, or CE certificates. The files appear as download links on the product page, so customers can open or download them with one click.
How to attach a PDF to a product
- Go to Products and click Edit on the product you want to add a PDF to.
- Find the PDF and files section, and use the top part, PDF.
- Click Upload and choose your PDF file from your computer.
- The file name is used as the link text on the product page, so give the file a descriptive name (for example user-manual.pdf) before you upload it.
- Click Save.
You can attach several files per product. They are shown in the order they were uploaded.

Tip: Give the files names customers understand right away, for example manual.pdf, datasheet.pdf, or assembly-instructions.pdf. The file name is what customers see as the clickable link.
How PDFs appear on the product page
On the product page, each PDF is shown as a download link. The customer clicks the link, and the file opens in the browser or downloads to their computer. The link text is the file name, and the URL points to the public path of the file. Note that where and how the files are shown depends on your theme.
Get PDF files in your theme (for developers)
On a SafeProduct object, you get the PDF files with getPdfFiles(). The method returns a list of SafeProductFile objects. Each object has:
- getFilename(): the file name (used as the link text)
- getUrl(): the public URL of the file
- getMB(): the file size in megabytes
- getBytes(): the file size in bytes
Example of Smarty code in a product template:
<{if $product->getPdfFiles()}>
<ul class="product-files">
<{foreach $product->getPdfFiles() as $file}>
<li>
<a href="<{$file->getUrl()}>" target="_blank" rel="noopener">
<{$file->getFilename()}>
<span class="file-size">(<{$file->getMB()|string_format:"%.2f"}> MB)</span>
</a>
</li>
<{/foreach}>
</ul>
<{/if}>
Note: Use getPdfFiles(), not getFiles(). And use getFilename() as the link text. There is no getTitle() method on SafeProductFile, so give the files meaningful names before you upload them, so the link looks clean and is easy to understand.
Tips for clean PDF attachments
- Use short, descriptive file names without spaces and without special characters such as æ, ø, and å (for example manual.pdf or datasheet.pdf).
- Compress large PDF files so downloads are fast on mobile. Many print PDFs can be cut to a third of their size without any visible loss of quality.
- Check that the file opens on both desktop and mobile before you upload it.
- Keep the content up to date, for example CE marking, certifications, and contact information.
- Keep files of the same type in the same language (for example Danish or English), so customers know what they're downloading.
Other file types and digital products
The file field on products is specifically for PDFs through getPdfFiles(). If you sell digital products, for example e-books, audio files, or images that customers download after purchase, use downloadable products instead. Read more in the article Sell downloadable products.
Tip: If you want to attach a file to the order confirmation email instead (for example general terms or a short user guide), you can do that in the store settings. See Attach a file to the order confirmation.
Frequently asked questions
How large can the PDF file be?
There is no fixed limit in the admin, but the larger the file, the longer it takes customers to download it, especially on mobile. We recommend compressing files over 5 MB. Many print PDFs can be reduced to a third of their size without any visible loss of quality.
Can customers download the PDF without logging in?
Yes. PDFs attached through the file field on a product are publicly available on the product page. If the file should only be available after purchase (for example an e-book), use downloadable products instead.
Can I attach the same PDF to several products?
You need to upload the file for each product. If it's the same PDF (for example a combined brochure for a product series), you can choose to hardcode a shared link in the theme instead of going through the product's files.
Where do I find the button to upload the PDF?
Open the product under Products, scroll down to the PDF and files section, and use the top part, PDF. Click Upload and choose the PDF from your computer.
What happens if I upload a file with the same name again?
The file gets a new unique name on the server, so the new version sits next to the old one. Delete the old file in the admin if you want to clean up, so customers only see the newest one.
Can I control the order of the PDF files on the product page?
The files are shown in the order they were uploaded. To change the order, you can delete a file and upload it again so it moves to the end. Alternatively, your developer can sort them in the theme with Smarty.
Do PDF files count toward my storage?
PDF files on products are stored on Shoporama's servers as part of your store. There is plenty of space for normal use. Contact us if you have a large product database with heavy documents, so we can assess your setup.
Can PDFs be found on Google?
Yes. PDFs in your store can be indexed by Google and show up in search results. That's a good reason to give the files clean, search-friendly names. If you want to keep a specific file out of the index, you can block it in your robots.txt.
Are there bookkeeping requirements for data sheets and certificates?
Safety data sheets and CE certificates belong to the product documentation itself, not the accounts. Keep them up to date with the supplier's latest version, so you meet legal requirements toward customers and authorities. The invoice to the customer is controlled through the PDF invoice settings.
Can I bulk import PDFs to many products?
Yes, through the REST API you can upload files programmatically and link them to a product. This is useful if you have many products with data sheets from a supplier. Read more in the REST API documentation.
Need help? Contact us at support@shoporama.dk.
Related articles
Sell downloadable products (digital downloads)
A guide to selling digital, downloadable products (PDF, audio, video, ZIP, and more) in Shoporama. How the download link works, what the customer...
Attach a file to the order confirmation email
How to attach a file, such as a user manual, size guide, or your terms and conditions, to the order confirmation email in Shoporama.
Edit a product in Shoporama: complete guide to the product page
A guide to the product edit page in Shoporama: the top bar with Edit, Stock, and Sales statistics, how to customize the page with tabs and hidden...
REST API documentation
A link to the documentation for Shoporama's REST API, which you use to integrate your store with external systems.
Attach terms and conditions to the order confirmation email
How to attach your terms and conditions as a PDF to the order confirmation email in Shoporama, and how to show them as text in your store.