VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: WEBYA on January 03, 2012, 21:48:38 PM

Title: More than 5 featured products (SOLVED)
Post by: WEBYA on January 03, 2012, 21:48:38 PM
Hi friend!
I have a problem, :S
My default layout vm2 shows "5 last Virtuemart products" and I need to show "6 last Virtuemart products" as I can configure this?   :-\

CMS: I Used J1.7
Image:
(http://www.online-imagenes.com/pictures/39017ef4e9904e7c93ee292e03f0b8a6.png)
Title: Re: ¿how to configure latest products in Virtuemart Default Layout? (vm2)
Post by: WEBYA on January 09, 2012, 21:20:53 PM
i can't fix it.  :(
Title: Re: ¿how to configure latest products in Virtuemart Default Layout? (vm2)
Post by: PRO on January 09, 2012, 21:29:43 PM
maybe

views/virtuemart/view.html


if (VmConfig::get('show_latest', 1)) {
            $products['latest']= $productModel->getProductListing('latest', 5);
            $productModel->addImages($products['latest'],1);
         }


change the 5
Title: Re: ¿how to configure latest products in Virtuemart Default Layout? (vm2)
Post by: WEBYA on January 10, 2012, 18:50:19 PM
Thanks friend!
I knew it was something, but where was the file in which to edit it.

Fixed!  ;D
Title: Re: ¿how to configure latest products in Virtuemart Default Layout? (vm2)
Post by: PRO on January 10, 2012, 18:58:51 PM
that file will be changed when you update, but its an easy fix. SO, make a note of the "hack"

Thats technically a hack. albeit small