[vQmod] - 1.4.x & 1.5.x Show Random products for modules
29 posts
• Page 1 of 2 • 1, 2
[vQmod] - 1.4.x & 1.5.x Show Random products for modules
Created vqmods for random latest, featured, bestsellers, and specials using the new no-strain method
What does "no-strain" mean?
Normally items are randomized by using the "rand()" mysql command. The problem with this is that the more products you have, the more items that must be randomized on the database. If you have a lot of products, it puts a large strain on the database having to randomize them all first, then only grabbing 10 of them.
So this mod uses a better method. It will pull more than the limit set and randomize them with php which is much faster and less intensive. Then return only the limit requested. Removing strain from the database.
What does "no-strain" mean?
Normally items are randomized by using the "rand()" mysql command. The problem with this is that the more products you have, the more items that must be randomized on the database. If you have a lot of products, it puts a large strain on the database having to randomize them all first, then only grabbing 10 of them.
So this mod uses a better method. It will pull more than the limit set and randomize them with php which is much faster and less intensive. Then return only the limit requested. Removing strain from the database.
- Attachments
-
Randomize_Latest_Products_NoStrain.xml- (1.42 KiB) Downloaded 1236 times
-
Randomize_Specials_Products_NoStrain.xml- (1.46 KiB) Downloaded 777 times
-
Randomize_BestSeller_Products_NoStrain.xml- (1.28 KiB) Downloaded 739 times
-
Randomize_Featured_Products_NoStrain.xml- (1.11 KiB) Downloaded 1105 times

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18237
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [vQmod] - Show Random products for modules
Updated the files to support 1.4.x and 1.5.x

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18237
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [vQmod] - Show Random products for modules
Great addition, thank you very much.
- fsit
- Posts: 25
- Joined: Sun Jul 24, 2011 4:44 pm
Re: [vQmod] - Show Random products for modules
can u please tell me where to upload this xml file to get it working?
- tunnu
- Posts: 31
- Joined: Sun Jun 05, 2011 3:38 pm
Re: [vQmod] - Show Random products for modules
tunnu wrote:can u please tell me where to upload this xml file to get it working?
viewtopic.php?f=23&t=24529

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18237
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [vQmod] - Show Random products for modules
Best sellers mod not working on 1.4.9.4. i want to show random products as best sellers, because i dont have any products sold in my site as the site is new.
just 1 product is coming up in bestsellers. Instead, i need to show many products randomly, purchased or not purchased
just 1 product is coming up in bestsellers. Instead, i need to show many products randomly, purchased or not purchased
- tunnu
- Posts: 31
- Joined: Sun Jun 05, 2011 3:38 pm
Re: [vQmod] - Show Random products for modules
tunnu wrote:Best sellers mod not working on 1.4.9.4. i want to show random products as best sellers, because i dont have any products sold in my site as the site is new.
just 1 product is coming up in bestsellers. Instead, i need to show many products randomly, purchased or not purchased
Bestseller products are exactly that "bestsellers". If you haven't sold anything, nothing will show in the bestsellers module.

If you're not living on the edge ... you're taking up too much space!
Multi-Vendor Plugin for OpenCart 1.5.1.x
Have I helped you?
-

fido-x - Posts: 1960
- Joined: Fri Jun 27, 2008 5:09 pm
- Location: Tasmania, Australia
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
How to show random products on 1.5.1. without vqmod?
- peecha85
- Posts: 158
- Joined: Tue May 11, 2010 2:28 pm
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
Ok, had to try before asking- that was easy...
- peecha85
- Posts: 158
- Joined: Tue May 11, 2010 2:28 pm
Number of items in Featured DB Pull?
Hi.
Just to be clear I have installed VQMod (working) and amaware where to place the xml files thanks to clear instructions on other posts.
My question is fairly simple, I believe I may have missed the point of this mod - correct me please if I am way off but this mod is designed to randomise the pull of the featured products from the db - using the list as populated in the admin section in the backend.
However - despite my searching and checking I can find no relevant input in the admin that allows me to limit the number of items per random page pull - for instance : if I choose 30 products to 'feature' I would expect some form of requester to limit the items per page (in a similar fashion to specials) otherwise the random nature of the pull would only usefully be to affect the ordering?
It is of course highly likely that I need to do some extra coding work to alter the sql query in the first place - however it is my understanding that the VQMod xml is designed cleverly to circumnavigate that nessecity?
Would it be possible to some kind person to indicate how one can achieve the limitation of the 'displayed' number of featured items within the product pull? Also - is there an acceptable way to prove that VQMod scripts are being imlpemented? Just in case mine is not actually working as expected!
Open Cart Version: 1.5.0
Mods already installed: VQMod - Price Redux & (Non VQ Mod) Showcase Pro.
Link to cart: http://www.bantastic.co.uk
Just to be clear I have installed VQMod (working) and amaware where to place the xml files thanks to clear instructions on other posts.
My question is fairly simple, I believe I may have missed the point of this mod - correct me please if I am way off but this mod is designed to randomise the pull of the featured products from the db - using the list as populated in the admin section in the backend.
However - despite my searching and checking I can find no relevant input in the admin that allows me to limit the number of items per random page pull - for instance : if I choose 30 products to 'feature' I would expect some form of requester to limit the items per page (in a similar fashion to specials) otherwise the random nature of the pull would only usefully be to affect the ordering?
It is of course highly likely that I need to do some extra coding work to alter the sql query in the first place - however it is my understanding that the VQMod xml is designed cleverly to circumnavigate that nessecity?
Would it be possible to some kind person to indicate how one can achieve the limitation of the 'displayed' number of featured items within the product pull? Also - is there an acceptable way to prove that VQMod scripts are being imlpemented? Just in case mine is not actually working as expected!
Open Cart Version: 1.5.0
Mods already installed: VQMod - Price Redux & (Non VQ Mod) Showcase Pro.
Link to cart: http://www.bantastic.co.uk
- sitesurfer
- Posts: 2
- Joined: Tue Sep 06, 2011 10:26 am
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
Ok I went off and figured out how to use vQmod instead 
Brilliant! Added a new function to the model and an update to featured on the fly.
Wow. Just Wow.

Brilliant! Added a new function to the model and an update to featured on the fly.
Wow. Just Wow.
- sitesurfer
- Posts: 2
- Joined: Tue Sep 06, 2011 10:26 am
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
sitesurfer wrote:Ok I went off and figured out how to use vQmod instead
Brilliant! Added a new function to the model and an update to featured on the fly.
Wow. Just Wow.
Can you tell me what did you do? I have the same problem. Thanks
- gamersmarket
- Posts: 24
- Joined: Mon Aug 29, 2011 7:21 am
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
gamersmarket wrote:sitesurfer wrote:Ok I went off and figured out how to use vQmod instead
Brilliant! Added a new function to the model and an update to featured on the fly.
Wow. Just Wow.
Can you tell me what did you do? I have the same problem. Thanks
I think I have found it: http://forum.opencart.com/viewtopic.php?f=110&t=40068&p=193030&hilit=random+featured#p192834
- gamersmarket
- Posts: 24
- Joined: Mon Aug 29, 2011 7:21 am
Re: [vQmod] - Show Random products for modules
fido-x wrote:tunnu wrote:Best sellers mod not working on 1.4.9.4. i want to show random products as best sellers, because i dont have any products sold in my site as the site is new.
just 1 product is coming up in bestsellers. Instead, i need to show many products randomly, purchased or not purchased
Bestseller products are exactly that "bestsellers". If you haven't sold anything, nothing will show in the bestsellers module.
buy something from your own store...
maybe..
-

Eva30 - Posts: 30
- Joined: Fri Sep 09, 2011 8:17 am
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
Perfect!
It worked perfectly in version 1.5.1.3.1
Thank you for sharing.
Hugs.
It worked perfectly in version 1.5.1.3.1
Thank you for sharing.
Hugs.
-

Demartini - Posts: 1
- Joined: Sun Aug 21, 2011 4:33 am
- Location: Anápolis - Goiás - Brasil
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
Works fine on 1.5.1.3 but I want to limit the list of Featured. How I do it?
- idan
- Posts: 6
- Joined: Thu Dec 22, 2011 10:52 am
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
idan wrote:Works fine on 1.5.1.3 but I want to limit the list of Featured. How I do it?
I want the same feature.
I know nothing about PHP and SQL, but I still try my best to understand it.
-

allenshea - Posts: 223
- Joined: Mon Dec 14, 2009 2:01 pm
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
i devided do develop this mod, if you want:
http://www.opencart.com/index.php?route ... order=DESC
http://www.opencart.com/index.php?route ... order=DESC
- idan
- Posts: 6
- Joined: Thu Dec 22, 2011 10:52 am
Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
limit field for featured module added to 1.5.2

Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
-

Qphoria - Administrator
- Posts: 18237
- Joined: Mon Jul 21, 2008 7:02 pm

Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules
hellow...
works for me...many thanks:)
using OC 1.5.3.1
works for me...many thanks:)
using OC 1.5.3.1
- xlam
- Posts: 24
- Joined: Sun Dec 25, 2011 6:58 am
29 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 12 guests













