s10e02 - Product Uploads SUPPORT / QUESTIONS / CHAT

Open to all! Ask other shopowners for help.
Post Reply
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

s10e02 - Product Uploads SUPPORT / QUESTIONS / CHAT

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
Moxamint
Member
Posts: 93
Joined: Fri Nov 06, 2020 10:36 am
Phoenix Version:
Has thanked: 33 times
Been thanked: 3 times

Re: s10e02 - Product Uploads

Post 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
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: s10e02 - Product Uploads

Post 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.
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: s10e02 - Product Uploads

Post 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.
Moxamint
Member
Posts: 93
Joined: Fri Nov 06, 2020 10:36 am
Phoenix Version:
Has thanked: 33 times
Been thanked: 3 times

Re: s10e02 - Product Uploads

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply