How to make featured items show up on home index page?
I have a bunch of rather random products showing up on my main home index page. I would like to have some control over which products show up on my home page and would like to do this with featured items.
I have 9 featured items defined, their status is all green, and the date range includes today. Yet, no featured products on the main page.
I do have products on the main page, they just aren't the featured products. How can i control this?
Here is a URL http://www.saintsmobiles.com
Re: How to make featured items show up on home index page
Quote:
Originally Posted by
hookah
I have a bunch of rather random products showing up on my main home index page. I would like to have some control over which products show up on my home page and would like to do this with featured items.
I have 9 featured items defined, their status is all green, and the date range includes today. Yet, no featured products on the main page.
I do have products on the main page, they just aren't the featured products. How can i control this?
Here is a URL
http://www.saintsmobiles.com
admin -> configuration -> index listing -> Show Featured Products on Main Page
Re: How to make featured items show up on home index page
Quote:
Originally Posted by
clydejones
admin -> configuration -> index listing -> Show Featured Products on Main Page
I tried that and it didn't work. I tried these settings...
Show New Products on Main Page = 0
Show Featured Products on Main Page = 1
Show Special Products on Main Page = 0
Show Upcoming Products on Main Page = 0
The result was NO products on main page.
My first thought was to go to Admin -> Catalog -> Featured Products
I there I have 9 products, all with the status being green and all of them show up when I click on the Featured Products link in categories.
Yet, NOT on the main page.
Re: How to make featured items show up on home index page?
Have you cleared your cache? I'm seeing 8 Featured Products:dontgetit
Re: How to make featured items show up on home index page?
This has just become a programming issue, not a configuration issue.
Any zencart coders have any idea how to handle this?
I am using the bluecart template which it seems was coded incorrectly. It has a function called cut_str() which shows a limited amount of the product description followed by "..." and someone put that function inside the /includes/modules/bluecart/new_products.php. This would be all fine and good if it wasn't also needed by featured products, and specials.
The result is, if new_products.php isn't loaded before the rest, php crashes because the function does not exist.
So, I am looking for a reasonable place to move that function to where it will always be available.
Re: How to make featured items show up on home index page?
OK....
Clicked on wrong link:blush:
Lots of bluecarrt template code problems mentioned in the forum and lots on the site.
When the php crashes, does it create any debug files in the cache directory?
Re: How to make featured items show up on home index page?
Quote:
Originally Posted by
dbltoe
OK....
Clicked on wrong link:blush:
Lots of bluecarrt template code problems mentioned in the forum and lots on the site.
When the php crashes, does it create any debug files in the cache directory?
It wasn't the cache, it was a function within the bluecart template module that was only in the new products. As long as new products was on top, everything was working.
Otherwise, it was a php error of not being able to find the function in my server logs. PHP Fatal error: Call to undefined function cut_str()
I removed that function from new products and created a whole new file in /includes/functions/extra_functions/functions_bluecart.php and placed the function there. Now it doesn't matter which order I display things in, i can have just featured products or anything else in any order.
I don't know where I found bluecart but it was a free public domain template so if anyone is using it and has this problem. this solution works.
It is the cut_str() function in modules/bluecart/new_products.php that needs to be moved.
Re: How to make featured items show up on home index page?
When I spoke of the cache, I said the cache directory not like "clear the cache." In the early stages of 1.3.9, a cache directory was added to the root of zen cart and, if the system glitches, a debug file might have been created in that directory. Any debug file there could help in fixing a problem.