Thumb at Opencart 1.5.6.4 Checkout
Posted: Tue Dec 08, 2015 4:36 am
Hello, i was trying to get a small thumb image at checkout page. Found something in the forum but i think it was another version of Opencart . The problem is, that i get an extra field in front of the product link, but it just shows the name of the product with link to it and not the picture, although i tried to copy the image thumb code of the cart page. At the cart page the code works but i think it won´t work at checkout because the thumb is too big ?
Does anybody know how to add the product picture at OC 1.5.6.4 at checkout page `?
I know there are a few extension to buy , but i just had problems with extensions i bought before, because my theme is not 100% compatible, so it would be great if i can do it on my own.
This is the code i tried at checkout.tpl, which showed just a text of the product
<td class="name"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo
$product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
<td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<?php foreach ($product['option'] as $option) { ?>
<br />
<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
<?php } ?></td>
<td class="model"><?php echo $product['model']; ?></td>
<td class="quantity"><?php echo $product['quantity']; ?></td>
<td class="price"><?php echo $product['price']; ?></td>
<td class="total"><?php echo $product['total']; ?></td>
</tr>
As well i tried to put this code from cart.tpl in front of it, which didn´t worked, although i changed <td class="image"> to "name" or even tried other things.
<td class="image"><?php if ($product['thumb']) { ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
Thank you in advance, i hope somebody can help me..
Does anybody know how to add the product picture at OC 1.5.6.4 at checkout page `?
I know there are a few extension to buy , but i just had problems with extensions i bought before, because my theme is not 100% compatible, so it would be great if i can do it on my own.
This is the code i tried at checkout.tpl, which showed just a text of the product
<td class="name"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo
$product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
<td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<?php foreach ($product['option'] as $option) { ?>
<br />
<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
<?php } ?></td>
<td class="model"><?php echo $product['model']; ?></td>
<td class="quantity"><?php echo $product['quantity']; ?></td>
<td class="price"><?php echo $product['price']; ?></td>
<td class="total"><?php echo $product['total']; ?></td>
</tr>
As well i tried to put this code from cart.tpl in front of it, which didn´t worked, although i changed <td class="image"> to "name" or even tried other things.
<td class="image"><?php if ($product['thumb']) { ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a>
Thank you in advance, i hope somebody can help me..