Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Index Page Only Showing Specials

Index Page Only Showing Specials

Locked

Views: 1,337

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
9 Feb 2010, 10:12 PM
#1
leevil123 avatar

leevil123

New Zenner

Join Date:
Feb 2010
Posts:
14
Plugin Contributions:
0

Index Page Only Showing Specials

Hey all,

I don't recall making any changes that would affect this, but for some reason, the index page for our store is only showing the products that are 'Specials'.

I've changed the option to show all products in a Categories box, but where can I find an option to set this for the main page?

Thanks!

9 Feb 2010, 11:13 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Index Page Only Showing Specials

Peek in the Configuration ... Index Listing ... and see what Centerbox settings you have for:
New Products
Featured Products
Special Products
Upcoming Products

where 0 means OFF and any other value is the Sort Order of the Centerboxes in the various sections ...

NOTE: there is also a set in the Configuration ... Stock ... for when the shopping cart is emptied while on the shopping_cart page ...

10 Feb 2010, 5:22 AM
#3
leevil123 avatar

leevil123

New Zenner

Join Date:
Feb 2010
Posts:
14
Plugin Contributions:
0

Re: Index Page Only Showing Specials

Thanks for your response, Ajeh.

I did take a look at those settings and everything appears to be enabled and ordered correctly, but the main page still only shows the 'Monthly Specials'.

Here are the settings that I have for the Index Listing.

I also double-checked the Stock settings page and didn't see anything in there either.

10 Feb 2010, 2:38 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Index Page Only Showing Specials

If you switch to the Classic Template do they show? :unsure:

10 Feb 2010, 11:55 PM
#5
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: Index Page Only Showing Specials

I have the same problem. Monthly specials and featured products are showing up, but new products are not. My new products are activated in index listing to show sort 1. When I switch to the classic template it shows up, but when i switch back to my customized themeStock template the new products disappear from main page (index listing page) - I had this problem before, and sorted it out by editing one of the files, I just don't remember which file it was! It's mind wrecking I've went through every file that seems to matter but nothing... Any ideas your help is much appreciated! :unsure:

11 Feb 2010, 12:44 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Index Page Only Showing Specials

That would tell you that something in your template is breaking things ...

Many template designers just hack away at the templates and code to make their design work with no regards to the proper coding techniques ...

You might try using something like Beyond Compare and compare the clean files to your template files and see where they broke it ...

11 Feb 2010, 12:48 AM
#7
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: Index Page Only Showing Specials

Hey Ajeh, thanks man! I just replaced the template's version of templaes/tpl_index_default.php with the template_default version of tpl_index_default.php and it seems to have fixed it. I friggin compared this thing outright but seriously I don't know what the deal was. But this seems to have sorted the problem. I really appreciate your help man thanks!

11 Feb 2010, 12:52 AM
#8
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: Index Page Only Showing Specials

AHA! Found the little bugger!

In the theme stock template's version this is found in templaes/tpl_index_default.php:

  • display the New Products Center Box
    */
    ?>
<?php **//**require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?>

Those red // guys should not be there! :clap:

11 Feb 2010, 12:57 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Index Page Only Showing Specials

That is correct ... good find ... :cool:

Also, if the template file in your templates and overrides is the identical file in the template_default then you do not need it in your templates and overrides ...

NOTE: The templates and overrides should only hold files that actually are different from the defaults ...

11 Feb 2010, 1:00 AM
#10
yaseent avatar

yaseent

Zen Follower

Join Date:
Mar 2009
Posts:
169
Plugin Contributions:
1

Re: Index Page Only Showing Specials

Yep most of these custom templates from third-party developers are a bit dodgy! Thanks for the heads up!

11 Feb 2010, 7:00 AM
#11
leevil123 avatar

leevil123

New Zenner

Join Date:
Feb 2010
Posts:
14
Plugin Contributions:
0

Re: Index Page Only Showing Specials

I wish it was as simple as some commented out code for me, but I'm having no such luck. I did try changing it back to the default template and got the same results.

Thanks for your help yaseent & Ajeh.

Not sure what's up, but I'll use Beyond Compare and see if I can find anything. :(