VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: p206ab on May 20, 2018, 12:00:07 PM

Title: VirtueMart Products remove ajax loading
Post by: p206ab on May 20, 2018, 12:00:07 PM
Hi all,
I'm using this VirtueMart Products module to display latest products in latest product layout on my homepage.
But I would like to know if there is an option to remove AJAX infinite loading of the list and rather change it to pagination, as this way is not really convenient for UX as users cannot reach the content and links in footer as the product list always expands once they reach the bottom.

Thanks for any useful tips.
Title: Re: VirtueMart Products remove ajax loading
Post by: jenkinhill on May 20, 2018, 12:46:49 PM
??  http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: VirtueMart Products remove ajax loading
Post by: p206ab on May 20, 2018, 12:50:43 PM
Sorry...
VirtueMart 3.0.16
Joomla! 3.5.0
PHP 5.4.23

Page url:
Nevermind the overlapping logo, just scroll down to see what I mean.
Title: Re: VirtueMart Products remove ajax loading
Post by: Studio 42 on May 20, 2018, 16:34:42 PM
@p206ab,
The code is not from virtuemart core. Or it's a template enhancement,a module or a plugin. Virtuemart cannot load more items in this list by default.
You have to modify your code to disable auto loading the items and add a button "see more" for eg.
But perhaps you have this choice in your module/plugin or template.
Title: Re: VirtueMart Products remove ajax loading
Post by: jenkinhill on May 20, 2018, 18:28:14 PM
Yes, looks like something in your template - if you can't find configuration for this then maybe talk to your template developer.

Your Joomla, VirtueMart and PHP versions are well out of date and insecure. Current VirtueMart versions have far more configuration options, but almost certainly would require code updates in your template.
http://forum.virtuemart.net/index.php?topic=118683.0
Title: Re: VirtueMart Products remove ajax loading
Post by: p206ab on May 20, 2018, 18:34:28 PM
Thanks Studio 42 and jenkinhill, found the script inside module template and simply removed it, so  it shows only last 12 products. That'll do for now.