Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Link to products on category page

Link to products on category page

Locked

Views: 825

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
16 Feb 2010, 10:01 PM
#1
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Link to products on category page

I set the default page when the cart is opened to one of the categories (Family) and this seems to have turned off the list of products on that page of racingriverwebs.com/memorialpto . How can I turn it back on?

17 Feb 2010, 2:29 PM
#2
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Link to products on category page

Threads in the forums advise on admin settings and code changes in the tpl_index_categories.php file. I looked at both in my cart and they seem OK. I still don't see links to the product page on the left box menu and in the center column when I click the category. The cart is at racingriverwebs.com/memorialpto.

Thanks

17 Feb 2010, 3:00 PM
#3
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Link to products on category page

PS - should have noted that this is a template from Zenflavor.com named free template 1.

17 Feb 2010, 3:35 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Link to products on category page

Your view source shows```

<div id="indexProductListCatDescription" class="content">$10 Child (18 and under)</div> <br class="clearBoth" /> <div id="productListing">

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="cat3Table" class="tabTable">

</table> </div> ```so the product listing table is displayed (the nav links work) but has no content. Try looking at /includes/modules/your_template/product_listing.php.
17 Feb 2010, 3:53 PM
#5
docrocks avatar

docrocks

Zen Follower

Join Date:
Jun 2005
Location:
Massachusetts
Posts:
148
Plugin Contributions:
0

Re: Link to products on category page

That was it. The section on // add description and match alternating colors was commented out.
Thanks.

17 Feb 2010, 4:17 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Link to products on category page

That just boggles my mind, that someone would publicly distribute a template with such a basic function eliminated in the PHP code. If they thought that product listing pages would be better without the product listings (you make sense of that, I can't), they could have added rules to the stylesheet to hide what they wanted, making it easy for the user (the reason for the template) to adapt it to their needs.

It also annoys me, because (like the hsyong mess) it forces the support forum volunteers to take time fixing someone else's mistake for innocent newbies over and over again.

Okay, amending my comments...
The stock product_listing.php has an old section of code that you describe commented out (it created a display just like the "all products" listing), and that section is not necessary or desired for ordinary product listing function. Uncommenting that would not make the listing work, so there must have been something else in the file that was wrong. It is not possible to say more without seeing the actual file before you "fixed" it.

17 Feb 2010, 4:26 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Link to products on category page

You now have the description duplicated below the main body of the product listing. This was caused by uncommenting that section of product_listing.php.