While developing eSport template We found a problem on VirtueMart Home Page Settings configuration.
As You can see on our demo the "Featured Products" and "TopTen Products" are been display 4 articles on single row.
So we set this configuration on Virtuemart, but no matter layout we added it always displays 5 articles, 4 on 1 row and the 5th on second row.
To fix this we change the following file:
../components/com_virtuemart/views/virtuemart/view.html.php
Changing this 2 lines:
- Code: Select all
$products['featured'] = $productModel->getProductListing('featured', 5);
- Code: Select all
$products['topten']= $productModel->getProductListing('topten', 5);
to
- Code: Select all
$products['featured'] = $productModel->getProductListing('featured', 4);
- Code: Select all
$products['topten']= $productModel->getProductListing('topten', 4);
This file is only changed on quickstart package.
Notice!
This is a bug from VirtueMart and our solution must not be considerate as the correct one.
Users must wait for further VM update version, because this problem will be probably fixed by them.
Cheers