Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Want to list all products on index page

Locked

Started by wormgineer on 12 Jun 2010, 10:32 PM · Views: 1,092

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
12 Jun 2010, 10:32 PM
#1
wormgineer avatar

wormgineer

New Zenner

Join Date:
Jun 2010
Location:
Oregon
Posts:
19
Plugin Contributions:
0

Post #1 by wormgineer

Hi, I'm new to ZenCart, have experience in cpanel, phpBB, php, CSS, AJAX, etc. Brand new install (v 1.3.9d), everything works, you guys rock on the support docs. Thank you.

I have a nice html/CSS site put together and just need ZenCart in a simple form to start out. I will take advantage of many of the fabulous features, but in the meantime . . .

I only have about 8 products to start with, and I want the index page to show them all. The only facility I see to list products is to enable display of New, Featured, Special or Upcoming Products. My products are none of these, they are the 'standard' products, which I would create under Products/Categories. Right?

All my products will be 'Product - General' (from the dropdown box when adding a new product).

So how do I turn on display of all my products on the index page? I tried to find an attribute to set, or a configuration option. Searched the FAQs. To no avail. So I need to post this question. :-)

tia

13 Jun 2010, 1:59 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Post #2 by frank18

Admin > Configuration > Layout Settings

Click on 'Main Page - Opens with Category' and make your changes accordingly.

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

13 Jun 2010, 3:38 AM
#3
wormgineer avatar

wormgineer

New Zenner

Join Date:
Jun 2010
Location:
Oregon
Posts:
19
Plugin Contributions:
0

Post #3 by wormgineer

frank18:

Admin > Configuration > Layout Settings

Click on 'Main Page - Opens with Category' and make your changes accordingly.

Thanks, Frank. I believe the correct expression is "good on ya mate!"

But that does not quite do what I expected - by turning on the main page categories, somehow the greeting and the content provided in define_main_page goes away. I wanted that content to stay there and then list the products in the two categories.

I'm checking out the php and don't see how that happens.

On index.php I see the code:

if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
// This section deals with product-listing page contents
(etc)

but I don't see what is going on. Does Store_status have something to do with it?

Plus it looks like I can only list one category for the main page - what is the syntax for listing multiple category IDs?

tia

13 Jun 2010, 4:25 AM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,761
Plugin Contributions:
0

Post #4 by Kim

Instead of trying to re-code things ... how about just making all of your products members of the Featured products and show them in the Featured Products box?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

13 Jun 2010, 4:35 AM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Post #5 by frank18

Seeing you only have 8 products for now, you could make them all 'Featured Products'.

Next you open your includes/languages/your_template/english.php file and look for the define 'Featured Products'. Change that to an empty string only leaving the 2 single quotes.

Then you could set Featured Products to be displayed on the main page - in your case without the heading 'Featured Products' because you blanked that out in the second step above.

This would leave all other bits and pieces intact on your main page.

Not an elegant solution but your visitors would not notice that.

PS: I see Kim has beaten me to that idea :blush:

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

13 Jun 2010, 5:36 AM
#6
wormgineer avatar

wormgineer

New Zenner

Join Date:
Jun 2010
Location:
Oregon
Posts:
19
Plugin Contributions:
0

Post #6 by wormgineer

Thanks folks. What a great community you've got here.

Looks like the answer to my query is "that's the way it is", and that's totally cool.

I'm adaptable, I will have them choose between the two categories, which is one extra click, but worth it because when they hit that landing page I can tell them what they need to know to navigate between my html site and the secure cart.

IOW never mind, I can make it work just fine no worries.

Thanks again, keep up the good work, much appreciated, maybe after I get rich I can help out here.