Page 1 of 1

s10e02 - Product Uploads SUPPORT / QUESTIONS / CHAT

Posted: Wed Dec 08, 2021 9:54 am
by Kofod95
Addon:
Allows shopowner to attach documents to products.

Download:
viewtopic.php?f=28&t=968




--

Just a small note:
On Chrome, PDF's are opened as default instead of downloaded. This would make the customer leave the shop, to look on a document. An annoyance for them, and could be bad for conversions.
For that reason, I added

Code: Select all

target="_blank" rel="noopener"
to line 9 in includes/modules/content/product_info/templates/tpl_cm_pi_uploads.php making that line look like this:

Code: Select all

      $pi_uploads .= '<a href="pub/' . htmlspecialchars($v['file']) . '" target="_blank" rel="noopener" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">';
//Daniel

Re: s10e02 - Product Uploads

Posted: Sun Mar 26, 2023 12:17 pm
by Moxamint
Hi,

Has anyone got this add-on to work on the latest Phoenix v1.8.20? I ran the SQL script and uploaded the files, but see no new tab on the product edit page.

Thanks for your time and help.
Eddy

Re: s10e02 - Product Uploads

Posted: Mon Mar 27, 2023 8:14 am
by 14Steve14
As a test, I have just uploaded the files and added the sql code that come with the Pro 1.0.8.20.zip files and it seems to work fine.

Re: s10e02 - Product Uploads

Posted: Mon Mar 27, 2023 8:24 am
by 14Steve14
14Steve14 wrote: Mon Mar 27, 2023 8:14 am As a test, I have just uploaded the files and added the sql code that come with the Pro 1.0.8.20.zip files and it seems to work fine.
It could do with a PI module being made rather than the standard one but apart from that seems to be good.

Re: s10e02 - Product Uploads

Posted: Mon Apr 03, 2023 4:29 am
by Moxamint
14Steve14 wrote: Mon Mar 27, 2023 8:14 am As a test, I have just uploaded the files and added the sql code that come with the Pro 1.0.8.20.zip files and it seems to work fine.
It turned out that I uploaded the add-on to the incorrect folder...:oops: now it works flawlessly.

Thank you very much for testing it out for me.

Eddy