hi,
i have VM 2.0.20b and J 2.5.11 on my site. i would like to change the product lists ordering on frontpage.
by default product are listed like this:
1. featured products
2. latest products
3. popular products
but i want this lists to be ordered like this:
1. latest products
2. featured products
3. popular products
how can i do this and rearrange this order?
thanks
regards,
franci
Mod edit: bump message removed. http://forum.virtuemart.net/index.php?board=114.0
Hello, is there any way to change the products layout order? I want latest products beneath top ten products. Thanks
Quote from: tobe on December 11, 2014, 23:43:21 PM
Hello, is there any way to change the products layout order? I want latest products beneath top ten products. Thanks
/components/com_virtuemart/views/virtuemart/view.html.php
Up
$latest_products_rows = VmConfig::get('latest_products_rows');
$latest_products_count = $products_per_row * $latest_products_rows;
if (!empty($latest_products_count) and VmConfig::get('show_latest', 1)) {
$this->products['latest']= $productModel->getProductListing('latest', $latest_products_count);
$productModel->addImages($this->products['latest'],1);
}
Down
$topTen_products_rows = VmConfig::get('topTen_products_rows');
$topTen_products_count = $products_per_row * $topTen_products_rows;
if (!empty($topTen_products_count) and VmConfig::get('show_topTen', 1)) {
$this->products['topten']= $productModel->getProductListing('topten', $topTen_products_count);
$productModel->addImages($this->products['topten'],1);
}