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?
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?
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?
how would i display products from a particular category on the home page?
well, essentially. i'd like for the products on the home page to be products i pick (featured). not just the recent additions (latest).
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
change to
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
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) {
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) {
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
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:
add the line in between to exclude the category - 18 represents the category id.
Then close it just before the if($results) call
From this:
To this:
catalog/controller/module/category.php and in the getCategories function look for the following:
Code: Select all
foreach ($results as $result) {
if (!$current_path) {
Code: Select all
foreach ($results as $result) {
if ($result['category_id'] != '18') { //added to exclude from listing
if (!$current_path) {
From this:
Code: Select all
$output .= $children;
$output .= '</li>';
}
if ($results) {
$output .= '</ul>';
}
return $output;
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
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!
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?
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
Works like a dream. Hope that helps!
Paula
Store: http://www.tinkeringmonkey.com
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.
I'm using 1.5.4 and tickermonkeys advise on using this addon doesn't work. It just crashes.
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
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
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
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
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
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
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.
Who is online
Users browsing this forum: No registered users and 93 guests