Post by krikey_uk » Thu Jun 24, 2021 12:18 am

Can anyone help with explaining how the image cache/swap system works? For example, how do I turn off the automatic placeholders if an image is not available?

Newbie

Posts

Joined
Thu Jun 24, 2021 12:15 am

Post by by mona » Thu Jun 24, 2021 4:48 am

Welcome to Opencart - No OC version posted and it is a requirement for all posts please
(4 digits please - you will find it at the bottom of every admin page)

krikey_uk wrote:
Thu Jun 24, 2021 12:18 am
how do I turn off the automatic placeholders if an image is not available?
Replace the placeholder image for a blank one or one of your choice.
root/image/placeholder.png


krikey_uk wrote:
Thu Jun 24, 2021 12:18 am
Can anyone help with explaining how the image cache/swap system works?
you upload an image - you have image sizes in settings - it creates the images for those sizes and places them in the cache folder
root/image/cache/

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


Spinning Social : Links : Menus : Payments : Socials : Ads : Screen Backgrounds : Galleries : Headers : Banners : Promos


Active Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by krikey_uk » Thu Jun 24, 2021 7:35 pm

Thanks for the feedback.

I was hoping to get an insight on how the opencart code handles the swap, not where the copies of the images are kept :)

So for example, where in code does opencart make the decision to add in a placeholder image, if no image path is available?

Opencart 2.3.0.2

Newbie

Posts

Joined
Thu Jun 24, 2021 12:15 am
Who is online

Users browsing this forum: No registered users and 6 guests