product ไม่แสดงใน catergory virtuemart 2

วิธีที่ 1 จาก http://www.cheubake.com/joomla/20-how-to-get-virtuemart-category-product-image-to-link-to-product-page

How to get Virtuemart category product image to link to product page


After a lot of people having a issue with this. Here's a little helper on how to get Virtuemart category product image to link to product page.
You have to create a folder into your Joomla template:

/templates/your_template/html/com_virtuemart/

after that you should copy all default.php files from:
components/com_virtuemart/views/category/view.html.php
You then need to place in the your template and changing the name to default.php
/templates/your_template/html/com_virtuemart/default.php

You need to change this bit of code:
<?php /** @todo make image popup */ echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',false,'class="modal"');?>
to
<?php echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),$product->images[0]->displayMediaThumb('class="catImage" border="0"',false));
                  ?>
If you still seem to be having problems with this. You might have a template override in the /html/ folder.
Get in touch if you have any issues.

วิธีนี้ทดลองแล้ว ไม่ได้ผล สุดท้ายใช้การ uninstall virtuemart ออกจากส่วนเสริมทั้งหมดแล้วลงใหม่ ได้ผล เพราะพอ run ปุ๊บ รูป product ขึ้นได้ตามปกติ

การ uninstall virtuemart ออก โดยไปที่ extension manager  เลือก ชนิดเป็น virtuemart แล้ว ย้ายไปถังขยะให้หมด search เพิ่มด้วยคำว่า vm ถ้ายังมีอยู่ ให้ลบออกหมด เช่นกัน แล้ว upload and install virtuemart package ลงไปใหม่