จึงอาจมีปัญหากับความลงตัวกับtemplate และจำนวนcategory ของเราได้ จึงคิดว่าวิธีแก้นี้น่าจะมีประโยชน์บ้าง
โดยเข้าไปที่ administrator/components/com_virtuemart/html/shop.index.php
และ administrator/components/com_virtuemart/classes/ps_product_category.php
แล้วแก้ที่
Code: Select all
if( $db->num_rows() > 0 ) {
$iCol = 1;
$categories_per_row = 4;
$cellwidth = intval( 100 / $categories_per_row );
$html .= $VM_LANG->_PHPSHOP_MORE_CATEGORIES.'<br/>';
$html .= '<table width="100%" cellspacing="0" cellpadding="0">';