Page 1 of 2
home page featured products
Posted: Tue Jun 16, 2009 11:13 pm
by edwardsharp
i know this has been asked a few times (that i've seen) BUT i want to put particular products on the open cart home page- not just the latest products.
i tried to install the featured products module by fido-x but that did not work with my new version of opencart (i got php errors about not finding the featured module class) and a few hours of panic later got my open cart installation back to normal.
i think i could hard code some products, but i (and other admins) would like to easily rotate them out. i thought that changing date available might do it but the products are listed by their ID and those are incrementally generated after each product addition. it might be possible to discount a product for the same price and get all the "discounted" products to show up on the home page...
or perhaps there's a better way?
Re: home page featured products
Posted: Tue Jun 16, 2009 11:42 pm
by edwardsharp
or i could create a category for things on the home page...
how would i display products from a particular category on the home page?
Re: home page featured products
Posted: Tue Jun 16, 2009 11:52 pm
by 2smart
I too am desperately trying to figure this out. I cannot even get to the featured products module.
Re: home page featured products
Posted: Wed Jun 17, 2009 4:13 am
by Daniel
what do you mean featured?
you mean you tick a box in the products page and it shows on the home page?
Re: home page featured products
Posted: Wed Jun 17, 2009 4:50 am
by edwardsharp
well, essentially. i'd like for the products on the home page to be products i pick (featured). not just the recent additions (latest).
Re: home page featured products
Posted: Wed Jun 17, 2009 5:12 am
by readyman
FidoX and his website are down and I checked his 'patch' on the contributions & it's incomplete. I guess you can only get the full package from his website.
Here's a quick hack to replace the latest products with & display products by category - you just have to replace one line in catalog/controller/common/home.php
Around line 27
Code: Select all
foreach ($this->model_catalog_product->getLatestProducts(8) as $result) {
change to
Code: Select all
//foreach ($this->model_catalog_product->getLatestProducts(8) as $result) { //get latest products
foreach ($this->model_catalog_product->getProductsByCategoryId(18,'','','',8) as $result) {
Keep the current code there for later... this is just a quick hack.
The
18 represents the category you want to show - just rollover your category menu to find out what id it is.
The 8 represents the number of products you want to limit this display to.
Hope this helps
Re: home page featured products
Posted: Wed Jun 17, 2009 5:27 am
by edwardsharp
that's exactly what i needed! thank-umz.
Re: home page featured products
Posted: Wed Jun 17, 2009 6:12 am
by readyman
And to hide the new 'featured category' from your category listing go to
catalog/controller/module/category.php and in the getCategories function look for the following:
Code: Select all
foreach ($results as $result) {
if (!$current_path) {
add the line in between to exclude the category - 18 represents the category id.
Code: Select all
foreach ($results as $result) {
if ($result['category_id'] != '18') { //added to exclude from listing
if (!$current_path) {
Then close it just before the if($results) call
From this:
Code: Select all
$output .= $children;
$output .= '</li>';
}
if ($results) {
$output .= '</ul>';
}
return $output;
To this:
Code: Select all
$output .= $children;
$output .= '</li>';
} //end category inclusion
}
if ($results) {
$output .= '</ul>';
}
return $output;
Re: home page featured products
Posted: Wed Jun 17, 2009 6:31 am
by edwardsharp
mhmm dandy. thanks again.
Re: home page featured products
Posted: Wed Jul 08, 2009 11:07 pm
by gavin m
Is the original being updated? I'd like ot have this feature too, but I'm getting weary about changing PHP stuff. THe joys of actually being the shop owner and not a developer........
Re: home page featured products
Posted: Sun Jul 19, 2009 1:18 am
by wutang107
I have tried changing the code matching this post, but all I get "Latest Products" with no items. I have tried changing the categories number, but still nothing shows up. I noticed that in the beginning of the post they tried the patch, but was unsuccessful. Any one have this same issue with the code? Thanks!
Re: home page featured products
Posted: Thu Mar 18, 2010 11:04 am
by ryannelson
I got it so I could choose what category shows up on the homepage using readyman's instructions. Does anyone know if I can have multiple product loops on the homepage? One showing a specific cateogry, and the other showing the standard latest products?
Re: home page featured products
Posted: Tue Apr 26, 2011 2:37 am
by tinkeringmonkey
I tried everything to get this to work. Finally got it done using this extension:
http://www.opencart.com/index.php?route ... blueorange
Works like a dream. Hope that helps!
Paula
Store:
http://www.tinkeringmonkey.com
Re: home page featured products
Posted: Thu Jun 30, 2011 2:23 am
by 100degrees
No one is mentioned which version of open car they are using.
I'm using 1.5.4 and tickermonkeys advise on using this addon doesn't work. It just crashes.
Re: home page featured products
Posted: Wed Nov 23, 2011 10:02 am
by lenore
I had updated some new products,but there is no change in the home page. Like the Feature box which show the product , there is nothing different with it. How do I work this out ?
Re: home page featured products
Posted: Tue Dec 13, 2011 4:43 am
by duramba
Main Menu >> Extentions >> Modules >> Edit "Featured"
Type your product name, auto-complete will drop-down a list of choices as you type. Select to add to list. Click 'X' to remove from list.
Pretty slick way of doing it.
Version 1.5.1.3
Re: home page featured products
Posted: Tue Dec 13, 2011 5:14 am
by GoGo OpenCart
I don't know what exactly do you want to make, but you might take a look at the following extensions:
http://www.opencart.com/index.php?route ... on_id=3921
DEMO for 1.5.x:
http://www.youtube.com/watch?v=ZF-rqtJaslk
DEMO for 1.4.9.x:
http://www.youtube.com/watch?v=SqqZP1wM4es
http://www.opencart.com/index.php?route ... on_id=3982
DEMO for 1.5.x:
http://www.youtube.com/watch?v=mZ-hjJCWA4Y
DEMO for 1.4.9.x:
http://www.youtube.com/watch?v=nWg_RzETNlE
You'll get by 3 separate independent boxes (6 with the two extensions), which you can rename it, and call it whatever you want to call it, and use it for whatever you want to use it
PM me if you want those two as a bundle, and you'll get a discount

Re: home page featured products
Posted: Sun Jan 15, 2012 6:03 pm
by ateetagrawal
Hello,
The autocomplete function do not work in Featured products for me. Mbstring is installed on the server. you can check it at
www.theheadphones.co.uk/info.php
The opencart version i am using is 1.5.0. Not sure what the problem is. Have been behind it since days. Please help.
Regards,
Atit Agrawal
Re: home page featured products
Posted: Sun Jan 15, 2012 11:02 pm
by Johnathan
You can also try the
Products Module, which allows you to create as many product modules as you want, each with their own heading and products.
Re: home page featured products
Posted: Mon Jan 28, 2013 3:48 pm
by urace