need to edit thumbnails on checkout

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

need to edit thumbnails on checkout

Postby derekwebster@.....com » Fri Aug 09, 2019 5:34 pm

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?
derekwebster@.....com
 
Posts: 11
Joined: Tue Jan 27, 2015 5:25 pm

Re: need to edit thumbnails on checkout

Postby admin » Mon Sep 02, 2019 1:35 pm

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
admin
Site Admin
 
Posts: 2593
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x

cron