Post by edwardsharp » Tue Jun 16, 2009 11:13 pm

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?

Newbie

Posts

Joined
Wed Jun 03, 2009 5:45 am

Post by edwardsharp » Tue Jun 16, 2009 11:42 pm

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?

Newbie

Posts

Joined
Wed Jun 03, 2009 5:45 am

Post by 2smart » Tue Jun 16, 2009 11:52 pm

I too am desperately trying to figure this out. I cannot even get to the featured products module.

User avatar
Newbie

Posts

Joined
Sat May 30, 2009 2:00 am

Post by Daniel » Wed Jun 17, 2009 4:13 am

what do you mean featured?

you mean you tick a box in the products page and it shows on the home page?

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by edwardsharp » Wed Jun 17, 2009 4:50 am

well, essentially. i'd like for the products on the home page to be products i pick (featured). not just the recent additions (latest).

Newbie

Posts

Joined
Wed Jun 03, 2009 5:45 am

Post by readyman » Wed Jun 17, 2009 5:12 am

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

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by edwardsharp » Wed Jun 17, 2009 5:27 am

that's exactly what i needed! thank-umz.

Newbie

Posts

Joined
Wed Jun 03, 2009 5:45 am

Post by readyman » Wed Jun 17, 2009 6:12 am

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;

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by edwardsharp » Wed Jun 17, 2009 6:31 am

mhmm dandy. thanks again.

Newbie

Posts

Joined
Wed Jun 03, 2009 5:45 am

Post by gavin m » Wed Jul 08, 2009 11:07 pm

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........

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by wutang107 » Sun Jul 19, 2009 1:18 am

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!

Newbie

Posts

Joined
Mon Jun 15, 2009 9:54 am

Post by ryannelson » Thu Mar 18, 2010 11:04 am

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?

Newbie

Posts

Joined
Sat Mar 13, 2010 12:35 pm

Post by tinkeringmonkey » Tue Apr 26, 2011 2:37 am

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


Posts

Joined
Mon Apr 25, 2011 4:23 am

Post by 100degrees » Thu Jun 30, 2011 2:23 am

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.

Newbie

Posts

Joined
Mon Jun 20, 2011 6:41 pm

Post by lenore » Wed Nov 23, 2011 10:02 am

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 ?

Newbie

Posts

Joined
Wed Nov 23, 2011 9:56 am

Post by duramba » Tue Dec 13, 2011 4:43 am

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

Newbie

Posts

Joined
Tue Dec 13, 2011 4:36 am

Post by GoGo OpenCart » Tue Dec 13, 2011 5:14 am

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 ;)

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by ateetagrawal » Sun Jan 15, 2012 6:03 pm

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

Newbie

Posts

Joined
Sun Jan 15, 2012 5:56 pm

Post by Johnathan » Sun Jan 15, 2012 11:02 pm

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.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by urace » Mon Jan 28, 2013 3:48 pm


Newbie

Posts

Joined
Mon Jun 04, 2012 7:04 pm
Who is online

Users browsing this forum: No registered users and 62 guests