Forums / General Questions / Show 4 products from a category as a slide show on mainpage

Show 4 products from a category as a slide show on mainpage

Started by vinnyna on 13 Dec 2011, 3:55 PM · Views: 1,507

Results 1 to 6 of 6
13 Dec 2011, 3:55 PM
#1
vinnyna avatar

vinnyna

New Zenner

Join Date:
Nov 2011
Posts:
30
Plugin Contributions:
0

Show 4 products from a category as a slide show on mainpage

Is there a way to have a slide show a group of 4 products from each category on mainpage?
Thanks

13 Dec 2011, 4:32 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Show 4 products from a category as a slide show on mainpage

Sure...with custom coding.

You would need to think through just exactly how you want it displayed, create the images to be used then hire someone as there is no module at this time that will do what you want.

The learning is in the doing.

Potent Products

13 Dec 2011, 4:41 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Show 4 products from a category as a slide show on mainpage

If you are willing and able to set it up yourself and don't need it to dynamically determine the categories and products to use, you could use one of the slideshow mods in Free Addons (like Ultimate Fade-in Slideshow) and make an instance of it for each category in define_main_page.php. That is basically a case of following directions, as long as you are good at following directions.

13 Dec 2011, 4:50 PM
#4
green_couch_designs avatar

green_couch_designs

New Zenner

Join Date:
Mar 2010
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Show 4 products from a category as a slide show on mainpage

I did this which calls the images from a banner group Slider
which could probably be modified for your purposes

<!-- bof Easy Slider 1.7 --> <div id="container"> <div id="content"> <?php

global $db;
$sql = "SELECT banners_title,banners_url,banners_image FROM ".TABLE_BANNERS." z where status='1' and banners_group ='Slider'";
$result = $db->Execute($sql);
$path = HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES;
if ($result->RecordCount() > 0) {
echo '<div id="slider"><ul>';
while (!$result->EOF) {

echo '<li><a href="'.($result->fields['banners_url']).'"><img src="'.$path.($result->fields['banners_image']).'" class="clip" title="'.($result->fields['banners_title']).'" /></a></li>';

$result->MoveNext();
}
echo '</ul></div>';
} else {
echo 'no value';
}
?>
</div>

</div> <!-- eof Easy Slider 1.7 --><div class="clearBoth"></div>
13 Dec 2011, 7:19 PM
#5
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Show 4 products from a category as a slide show on mainpage

thanks for sharing this script it is excellent for slider

bryan

14 Dec 2011, 4:52 AM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Show 4 products from a category as a slide show on mainpage

You really felt this thread needed to be edited? That's a bit too much totalitarian isn't it?

The learning is in the doing.

Potent Products