Post by josesoares » Wed Sep 04, 2024 5:16 pm

Hi,
I'd appreciate any help and thanks in advance.
Where can I place image assets that will be used in frontoffice and backoffice?
I have come across this problem when trying to add a payment method logo image in the order history (that is viewed in the backoffice and frontoffice) and also to mail sent to the user.
What I found was that if I place the image in the catalog folder, ill have problems when accessing from admin and vice versa.
I have tried to set them at image/payment/myextension/logo.png, but when I run the installer it won't allow it, responding with "The directory image/payment is not allowed to be written to!"
So, isn't there a public folder where I can place assets for this purpose?

New member

Posts

Joined
Mon Jan 23, 2023 5:27 pm

Post by ADD Creative » Wed Sep 04, 2024 5:55 pm

You can see the list of allowed directories at the link below.
https://github.com/opencart/opencart/bl ... #L125-L141

So one of admin/view/image/, catalog/view/theme/ or image/catalog/.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by josesoares » Wed Sep 04, 2024 6:14 pm

Got it, thanks.
Is it correct to assume that I should NOT place extension asset images to image/catalog/?
I would think it's for product images only...

New member

Posts

Joined
Mon Jan 23, 2023 5:27 pm
Who is online

Users browsing this forum: Semrush [Bot] and 25 guests