Forums / General Questions / How to make featured items show up on home index page?

How to make featured items show up on home index page?

Started by hookah on 11 Jun 2011, 7:10 PM · Views: 1,609

Results 1 to 8 of 8
11 Jun 2011, 7:10 PM
#1
hookah avatar

hookah

New Zenner

Join Date:
Oct 2008
Location:
Oregon
Posts:
57
Plugin Contributions:
0

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

The Hookah Store www.TheHookahStore.com

11 Jun 2011, 7:37 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: How to make featured items show up on home index page?

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

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

11 Jun 2011, 8:26 PM
#3
hookah avatar

hookah

New Zenner

Join Date:
Oct 2008
Location:
Oregon
Posts:
57
Plugin Contributions:
0

Re: How to make featured items show up on home index page?

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.

The Hookah Store www.TheHookahStore.com

11 Jun 2011, 8:30 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,890
Plugin Contributions:
20

Re: How to make featured items show up on home index page?

Have you cleared your cache? I'm seeing 8 Featured Products:dontgetit

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

11 Jun 2011, 8:40 PM
#5
hookah avatar

hookah

New Zenner

Join Date:
Oct 2008
Location:
Oregon
Posts:
57
Plugin Contributions:
0

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.

The Hookah Store www.TheHookahStore.com

11 Jun 2011, 8:54 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,890
Plugin Contributions:
20

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?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

11 Jun 2011, 9:53 PM
#7
hookah avatar

hookah

New Zenner

Join Date:
Oct 2008
Location:
Oregon
Posts:
57
Plugin Contributions:
0

Re: How to make featured items show up on home index page?

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.

The Hookah Store www.TheHookahStore.com

11 Jun 2011, 10:22 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,890
Plugin Contributions:
20

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com