Disable image cache in OpenCart

喜你入骨 提交于 2019-12-11 05:19:49

问题


I am currently developing an iPad/tablet optimized template of OpenCart.

I have stumbled upon a problem here, all images I am wanting to use are all cached and resized images, and on the iPad template I want the original resolution images to be displayed, especially the main image.

Is there a way I can get the template to show the original uploaded images instead of the resized images? If someone can point me into the right direction I will develop a vqMod for it (as I still want to use the resuzed images for the main website)!

Many thanks Peter


回答1:


The way you will need to do it is to use either HTTP_IMAGE or HTTPS_IMAGE depending on the ssl status. For the main image, it's pretty simple, you basically need to use

<?php echo HTTP_IMAGE . $product_info['image']; ?>


来源:https://stackoverflow.com/questions/11568504/disable-image-cache-in-opencart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!