Page 1 of 1

need to edit thumbnails on checkout

PostPosted: Fri Aug 09, 2019 5:34 pm
by derekwebster@.....com
Hi I ive identified the code for generating thumbnails as echo $this->op_show_image($product['product_full_image'], '', 40, 40, 'product')

But really the code is too cumbersome, Id like to ONLY outout the <img> tag so that I can style it myself.
Is there any other way of getting the thumbnail file location?

Re: need to edit thumbnails on checkout

PostPosted: Mon Sep 02, 2019 1:35 pm
by admin
hello derek, pls see:
\components\com_onepage\helpers\image.php

depending on input parameters the class can be used to get the src.

you can use:
Code: Select all
$src = OPCimage::getSrcImage($product['product_full_image'], '', 100, 0, 'product');
?><img src="<?php echo $src; ?>" /><?php


to get the image src per 100 width and variable height. Or you can use 0 as width (variable) and 100 as fixed height depending what's more appropriate. if you use 100, 100 the largest one will be used.

best regards, stan