简体   繁体   中英

Disable image cache in OpenCart

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

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']; ?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM