A
A
Andrey Kotosin2019-03-29 17:01:29
opencart
Andrey Kotosin, 2019-03-29 17:01:29

How to make a link to a download file?

There is a directory on OpenCart 3.x, I want to insert a link of the form A into the header in the admin panel, upload a file somewhere, which will be converted and located along the /price.xls path (well, or in any subfolder). I saw there are built-in "Download" capabilities, but the file is attached to the product and only after the "purchase" is available for download, etc. but I have a catalog (without a basket, orders, etc.) so I need to somehow give the opportunity to download the price list. PS> The price itself is not generated from the catalog, but loaded manually (third-party price, different from the one on the site)
<a href="/price.xls">Прайс-лист</a>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2019-04-01
@av_kotosin

You are not using the Downloads for their intended purpose. Remove token generation in filename in admin/controller/catalog/download.php
Replace with
The file will be in system/storage/download/{filename}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question