Community Forums

[vQmod] - 1.4.x & 1.5.x Show Random products for modules

Put any free vQmod scripts here.
vQmod details

[vQmod] - 1.4.x & 1.5.x Show Random products for modules

Postby Qphoria » Wed Jan 05, 2011 5:31 am

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.
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
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18237
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] - Show Random products for modules

Postby Qphoria » Thu Jul 28, 2011 7:52 pm

Updated the files to support 1.4.x and 1.5.x
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18237
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] - Show Random products for modules

Postby fsit » Tue Aug 02, 2011 7:48 pm

Great addition, thank you very much.
fsit
 
Posts: 25
Joined: Sun Jul 24, 2011 4:44 pm

Re: [vQmod] - Show Random products for modules

Postby tunnu » Sun Aug 07, 2011 1:59 pm

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

Postby Qphoria » Sun Aug 07, 2011 2:25 pm

tunnu wrote:can u please tell me where to upload this xml file to get it working?

viewtopic.php?f=23&t=24529
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18237
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] - Show Random products for modules

Postby tunnu » Thu Aug 11, 2011 2:52 pm

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
tunnu
 
Posts: 31
Joined: Sun Jun 05, 2011 3:38 pm

Re: [vQmod] - Show Random products for modules

Postby fido-x » Thu Aug 11, 2011 3:01 pm

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.
Image
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?
User avatar
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

Postby peecha85 » Mon Sep 05, 2011 7:22 am

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

Postby peecha85 » Mon Sep 05, 2011 7:30 am

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?

Postby sitesurfer » Tue Sep 06, 2011 10:43 am

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
sitesurfer
 
Posts: 2
Joined: Tue Sep 06, 2011 10:26 am

Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules

Postby sitesurfer » Wed Sep 07, 2011 10:11 pm

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.
sitesurfer
 
Posts: 2
Joined: Tue Sep 06, 2011 10:26 am

Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules

Postby gamersmarket » Sun Sep 18, 2011 6:52 pm

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

Postby gamersmarket » Sun Sep 18, 2011 7:11 pm

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

Postby Eva30 » Wed Sep 21, 2011 11:24 pm

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..
User avatar
Eva30
 
Posts: 30
Joined: Fri Sep 09, 2011 8:17 am

Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules

Postby Demartini » Mon Oct 31, 2011 2:28 pm

Perfect! :)

It worked perfectly in version 1.5.1.3.1

Thank you for sharing.

Hugs.
Att:
Iolar Demartini
twitter.com/iolardemartini
User avatar
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

Postby idan » Mon Dec 26, 2011 11:39 am

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

Postby allenshea » Tue Dec 27, 2011 1:37 am

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.
User avatar
allenshea
 
Posts: 223
Joined: Mon Dec 14, 2009 2:01 pm

Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules

Postby idan » Tue Dec 27, 2011 11:52 am

i devided do develop this mod, if you want:
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

Postby Qphoria » Tue Dec 27, 2011 4:20 pm

limit field for featured module added to 1.5.2
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18237
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: [vQmod] - 1.4.x & 1.5.x Show Random products for modules

Postby xlam » Sat Jan 07, 2012 1:49 am

hellow...
works for me...many thanks:)

using OC 1.5.3.1
xlam
 
Posts: 24
Joined: Sun Dec 25, 2011 6:58 am

Next

Return to vQmods

Who is online

Users browsing this forum: mandamexico and 7 guests

Hosted by Arvixe Web Hosting