Manufactures image / download folder (v3.5.4)

Phoca Cart - complex e-commerce extension
Luca_
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Dec 2020, 21:50

Manufactures image / download folder (v3.5.4)

Post by Luca_ » 07 Dec 2020, 22:02

Hi, is there a way to display manufactures images (logos) in product page? Also, is there a way to change default download folder, default is: \phocacartdownload\

Thank you

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43759
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Manufactures image / download folder (v3.5.4)

Post by Jan » 08 Dec 2020, 23:38

Hi, for now there is no option to display manufacturer logo in item view, so the only way for now is add it e.g. to description. And even there is no option to set specific path for download.

Jan
If you find Phoca extensions useful, please support the project

User avatar
voymacao
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2019, 09:06

Re: Manufactures image / download folder (v3.5.4)

Post by voymacao » 15 Dec 2020, 15:31

A workaround on this would be to use a customized Tag.
Its a temporary solution but you may use it if needed.
Image

Create your tag and notice it takes a custom class according to the title you give it.
Then just apply some custom CSS styling like this:

.ph-corner-icon-elagris {
color: transparent;
width: 150px;
height: 50px;
background-color: #fff;
background-image: url('/images/graphics/elagris.png');
background-size: contain;
background-repeat: no-repeat;
}

Obviously you need to replace the image url with yours and play around with the dimensions or change the tag's position.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43759
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Manufactures image / download folder (v3.5.4)

Post by Jan » 15 Dec 2020, 16:15

Hi, great to hear it, yes, this can be the possible way to display the logo.

BTW, sorry for confusing with setting of download folder (I was mistaken when answered the question - answering questions at night takes its toll :-) ). This is possible (mostly helpful when you want to paste your files behind the public_html folder). See options for following parameters

- Absolute Path (Download)
- Absolute Path (Upload)

Image

Jan
If you find Phoca extensions useful, please support the project

Luca_
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Dec 2020, 21:50

Re: Manufactures image / download folder (v3.5.4)

Post by Luca_ » 15 Dec 2020, 18:58

voymacao wrote:
15 Dec 2020, 15:31
A workaround on this would be to use a customized Tag.
Its a temporary solution but you may use it if needed.
Yes, that could be a solution, but with some PHP code would be possibile to customize the product page so it will read the db and show the manufacturer image, if present, and then make a template override, that could be an interesting feature for a future release

Luca_
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Dec 2020, 21:50

Re: Manufactures image / download folder (v3.5.4)

Post by Luca_ » 15 Dec 2020, 19:40

Jan wrote:
15 Dec 2020, 16:15
Hi, great to hear it, yes, this can be the possible way to display the logo.

BTW, sorry for confusing with setting of download folder (I was mistaken when answered the question - answering questions at night takes its toll :-) ). This is possible (mostly helpful when you want to paste your files behind the public_html folder). See options for following parameters

- Absolute Path (Download)
- Absolute Path (Upload)

Jan
Yes, I tested it, but I can't see any link in the product page for the download, Am I missing something?
This Absolute path is referred to the 'download options' in product insert page, where you can see download token, etc.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43759
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Manufactures image / download folder (v3.5.4)

Post by Jan » 20 Dec 2020, 00:45

Hi, all this is about standard download (when user order a product and can download it). Public download files - files which can be downloaded from product page do not have any such parameter.

Image
If you find Phoca extensions useful, please support the project

Luca_
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Dec 2020, 21:50

Re: Manufactures image / download folder (v3.5.4)

Post by Luca_ » 20 Dec 2020, 00:53

Jan wrote:
20 Dec 2020, 00:45
Hi, all this is about standard download (when user order a product and can download it). Public download files - files which can be downloaded from product page do not have any such parameter.

Yes, that's why I asked if there's some settings to change default download folder, I was referring about public download folder that is set to default: \phocacartdownload\ (eg. where you can link the pdf manual of a product for example)

btw I'm the "translator" :)

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43759
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Manufactures image / download folder (v3.5.4)

Post by Jan » 20 Dec 2020, 02:07

Hi, public folder is not assigned to phocacartdownload folder but to phocacartdownloadpublic folder and there is no option to change this location, so this needs to be customized (this is different to phocacartdownload folder as there you mostly need to add files behind the public_html, by public files it is assumed that such public files will be in folder which can even accept direct links).

Jan
If you find Phoca extensions useful, please support the project

Post Reply