How to reduce the size of the product image in the basket virtuemart_2 ? By default, preview is displayed, but it is large.
<span class="cart-images"> <?php if (!empty($prow->image)) echo $prow->image->displayMediaThumb('', false); ?> </span> How to reduce the size of the product image in the basket virtuemart_2 ? By default, preview is displayed, but it is large.
<span class="cart-images"> <?php if (!empty($prow->image)) echo $prow->image->displayMediaThumb('', false); ?> </span> Everything turned out to be much simpler: added to vm.css
.cart-images img{ width: 100px; } I suspect you want something like this:
str_replace('img', 'img width="100"', $subject)$prow->image->displayMediaThumb('', false)); Just add the width to HTML or CSS.
Source: https://ru.stackoverflow.com/questions/433574/
All Articles