-
AuthorPosts
-
January 24, 2011 at 9:18 am #159209
I have over 150 product pictures on my site. Is there any way to limit the number of pictures that are displayed in the vmproductslide ?
Have it set to ‘ Type of Product to Display – “Latest” ‘
Cause it shows the newest pics i add and then continues to show every other pic thats on my website, 150+.
Causing my site loading time to be about 22 seconds.
Please Help
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
January 26, 2011 at 10:34 am #373877Dear brew5454,
You can try as following to show a limit on products on your module
Open the file of modulesmod_ja_vmproductslideja_vmproductslideapplication.php
Looking for these lines of codes
[PHP]$query .= ($this->_typeproduct == 1 ) ? ‘ AND product_special =”Y” ‘ : ”;[/PHP] and add below it
[PHP] $query .= “limit 5″;[/PHP] Then looking for
[PHP] $query .= ($this->_typeproduct) ? (($this->_typeproduct == 1 ) ? ‘ AND p.product_special =”Y” ORDER BY p.product_name DESC ‘ : ‘ORDER BY p.cdate DESC ‘) : ‘ORDER BY p.product_name DESC ‘;[/PHP] Add below it
[PHP] $query .= “limit 5”;[/PHP] Notice that you should replace the number of 5 to the limit you want.May 9, 2012 at 4:47 am #452152i settup mod_ja_vmproductslide have a error!
Please help me!
Thank off all!http://banchothue.com/joomla/ja-error.jpg
AuthorPostsViewing 3 posts - 1 through 3 (of 3 total)This topic contains 3 replies, has 3 voices, and was last updated by banchothue 12 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
ja_vmproductslide need help
Viewing 3 posts - 1 through 3 (of 3 total)