VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: suchafan on May 18, 2012, 03:31:55 AM

Title: Displaying ALL products on a page
Post by: suchafan on May 18, 2012, 03:31:55 AM
VM 2.0.6
Joomla: 2.5.4
PHP 5.3.8

In Config>Templates, under "VirtueMart Home Page" I am trying to display ALL of my products on one page in several rows, showing their images with the "Product Details" button.

I have "Show Featured" checked and "Default number of featured products in a row" set to 5. The rest under that category are unchecked because I do not need the other listings (show recent/show latest, etc).

At this point I see ALL of my products in this one row of 5 images. Refreshing the page changes the 5 images to different positions in the same row of 5 but I would prefer to see ALL products in SEVERAL rows. I also would not need them to jump around on this products page whenever I refresh, but that must be a built-in core feature because it happens everywhere else also.

Is there a way to feature product images from several product categories (or all categories) onto one page in several rows of 5 images? I don't wish the user to SEARCH a menu of separate categories. I only want the user to scroll down the rows of ALL images.

Thanks for your help.

Title: Re: Displaying ALL products on a page
Post by: John2400 on May 18, 2012, 08:28:40 AM
you could try this,

http://breakdesigns.net/extensions/vm-product-builder
Title: Re: Displaying ALL products on a page
Post by: dry_crushader on November 16, 2012, 21:31:22 PM
Well, I dont know if this is the best idea for override VM function.
But here's my solution and it works for J2.5 and VM2 (I use 2.0.12f version)

1. Go and find this file at :
http://your-joomla-site/administrator/components/com_virtuemart/helpers
Filename : vmmodel.php

2. Go to line 250, or find this script
$this->_pagination = new VmPagination($this->_total , $this->_limitStart, $this->_limit , $perRow );

3. Change "$perRow" to any number do you want to have.
For example; I want to had 100,000 products on a page. (I dont know why I need to show 100,000 products in one page,, but this is just for a sample ;D )

So the code is :
$this->_pagination = new VmPagination($this->_total , $this->_limitStart, $this->_limit , 100000 );

Save the code now, and refresh the page. Make sure all cache and site preferences cleared first, or you won't see any changes.
Title: Re: Displaying ALL products on a page
Post by: dry_crushader on November 16, 2012, 21:37:24 PM
I found another solution :
http://forum.virtuemart.net/index.php?topic=109043.0