Print Page | Close Window

Random featured products.

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=2240
Printed Date: 26-June-2024 at 6:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Random featured products.
Posted By: Andy @ Landmarq
Subject: Random featured products.
Date Posted: 11-December-2008 at 9:15am
Hello there,

I am experimenting with adding the featured products to my homepage as we have a wide range of products coming in but it seems to only show the same products each time you visit the page. Does anyone know a way to make featured products change randomly so whenever a customer vists our homepage a new selection is shown.

Thanks in advance Andy,




-------------
Need a bespoke PC built to order? come to www.landmarq.co.uk



Replies:
Posted By: Greg Dinger
Date Posted: 11-December-2008 at 10:18am
We could easily develop that.  Please contact me directly.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: bodyexposed
Date Posted: 11-December-2008 at 1:43pm
Hi Andy,

I have modified the featured products code on my store to do exactly what you have described. A subset of the featured products is shown randonly on each visit. You can see it working on the home page of my site - www.bodyexposed.co.uk



-------------
Richard Bonfield

Underwear store for men

http://www.bodyexposed.co.uk


Posted By: Andy @ Landmarq
Date Posted: 12-December-2008 at 6:08am
Hi Richard,

That's exactly what I am looking for (not the undies though don't have the body for them) LOL Would you be able to let me know how you managed that as that would do just the trick? Also do you know if your mod would work for the 'highlight first product/product of the month' item such as I have active on my testpage https://www.landmarq.me.uk/productcart/pc/andyshome.asp as ideally I would like to have maybe 6/7 products rolling round on the frontpage with one in the highlight box.

Thanks in advance Andy,


-------------
Need a bespoke PC built to order? come to www.landmarq.co.uk


Posted By: bodyexposed
Date Posted: 12-December-2008 at 6:53am
Andy, I've emailed you with the code I used.

-------------
Richard Bonfield

Underwear store for men

http://www.bodyexposed.co.uk


Posted By: Andy @ Landmarq
Date Posted: 14-January-2009 at 6:04am
Hello Richard

Thanks for the code you sent over unfortunately I could not integrate it with my code looks like our products carts base code is pretty different, your code was helpful in showing me where to look so thanks for sending it over.  Been tied up with other things since but I decided to give it another go yesterday and with a bit work have 4 seperate random products boxes running at once to highlight a different product for each range we wish to promote.

Should be on the homepage soon but if anyone wants info on how I did this I will be happy to share my code (messy as it is)


-------------
Need a bespoke PC built to order? come to www.landmarq.co.uk


Posted By: Thornapple
Date Posted: 10-February-2009 at 12:59am
Boo
 
I wants it!!!!
 
I asked about doing the same thing some time back and was told it wasnt able to be done due to database calls and problems.
 
Could I please get the code as well?
 
New site re-skin in the works and would love to roll out random products at the same time.
 
Great work. ... Think I would look rather featching in the tartan man skirt. Well over my tartan pants with boots anywho...
 
Looking forward to seeing the code.
 
Dearly Departed
 
Alex


-------------
All your Dark wee Heart could ever Desire!


Posted By: Andy @ Landmarq
Date Posted: 10-February-2009 at 4:31am
Hello Thornapple,

Been away from work for a few days once I'm on top of things I shall sort the code out and post over what I have.

Regards Andy,


-------------
Need a bespoke PC built to order? come to www.landmarq.co.uk


Posted By: bodyexposed
Date Posted: 10-February-2009 at 7:23am
Alex, if Andy's code is not what you need, I'll send you mine.

-------------
Richard Bonfield

Underwear store for men

http://www.bodyexposed.co.uk


Posted By: Thornapple
Date Posted: 10-February-2009 at 4:48pm
Boo
 
Great! I would love to see booth of your codes as it sounds like they are a lil different.
 
Hmm should post it here so the devs and other people can have a look as well.
 
I think such an option would make product cart stand out even more than other e-commerce software out there currently.
 
Thanks Guys!
 
Alex


-------------
All your Dark wee Heart could ever Desire!


Posted By: Thornapple
Date Posted: 15-February-2009 at 8:44pm
Boo
 
Could I please grab the code guys. Dieing to see it.
 
Thanks
 
Alex


-------------
All your Dark wee Heart could ever Desire!


Posted By: bodyexposed
Date Posted: 16-February-2009 at 7:56am
I've sent it to you Alex.

-------------
Richard Bonfield

Underwear store for men

http://www.bodyexposed.co.uk


Posted By: Andy @ Landmarq
Date Posted: 18-February-2009 at 5:00am
Hello Thornapple,

I have attached my modified code to this post for you and anyone else interested in it. The main changes in mine are to the homecode.asp which I renamed to andyhomecode.asp and point to that in home.asp so as not to ruin the original copy. The other file I changed is pcshowproductH which is now named pcshowproducthfeat.asp to not interfere with the rest of the site and is called for in andyhomecode.asp this was really to change the size of the graphics used and a couple of minor tweaks for our own sites needs.

The randomise works by making four calls to the featured product list but is forced to only show a section of the list for a given range so I have five groups in my featured product list. group 0 contains the **do not delete** and is never included in the math, group 1 contain the first batch, 2 the second and so on. the trick was that you make 3 duplicates of the featured product code with a different name and modify the sections to call the randomisers set at the top of the andyhomecode.asp. then in home code where you normally just have  pcs_FeaturedProducts you also add the other three as seen in my home.asp file. It's not pretty and I'm sure more advanced coders may wince when looking at it but it works well enough for my needs. :) The only other thing to do is set the show featured products to 1 product in the home page manage section of control panel

Take a look at the code and at our homepage on www.landmarq.me.uk to see it on action if you want to use it but get stuck drop me a line on here and I will try and help.

Things to watch for are the randomiser can be a tad twitchy at first if you change the quantities of products as you get group cross over but if you can tweak that out after a couple of goes and the randomise can sometimes show the same things if you try refreshing the page too fastuploads/1372/randfeat.zip - uploads/1372/randfeat.zip

-------------
Need a bespoke PC built to order? come to www.landmarq.co.uk


Posted By: avalight
Date Posted: 01-May-2009 at 6:01pm
Hi Andy - I went to your website and I like the gallery slideshow that you had rotating between 10 images.  Is that public script?  Where is that from?
Thanks
curt


-------------
Curt


Posted By: Andy @ Landmarq
Date Posted: 05-May-2009 at 5:06am
Hello Avalight,

The slideshow is a java based one I got from here http://smoothgallery.jondesign.net/download/ but in it's default state it does not randomise. The modification to make it randomise is here http://smoothgallery.jondesign.net/forums/viewtopic.php?id=98 and look for the modification from noodles on the second post which worked for me although others seemed to have issues getting it to behave.


-------------
Need a bespoke PC built to order? come to www.landmarq.co.uk



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net