หน้า Product list ต้องการเอารูปใหญ่มาทำแบบนี้นะคะ ในไฟล์ list_products/product.php
โค้ด: เลือกทั้งหมด
<?php
if ($product->image)
{
?>
<div class="image_block">
<?php print $product->_tmp_var_image_block; ?>
<?php
if ($product->label_id)
{
?>
<div class="product_label">
<?php
if ($product->_label_image)
{
?>
<img src="<?php print $product->_label_image ?>" alt="<?php print htmlspecialchars($product->_label_name) ?>" />
<?php
}
else
{
?>
<span class="label_name"><?php print $product->_label_name; ?></span>
<?php } ?>
</div>
<?php } ?>
<a href="<?php print $product->product_link ?>">
<!--ส่วนที่แสดงรูป-->
<img class="jshop_img" src="<?php print $product->image ?>" alt="<?php print htmlspecialchars($product->name); ?>" title="<?php print htmlspecialchars($product->name); ?>" />
</a>
</div>
<?php } ?>