Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / catagory thread (displaying it for customer to see)

catagory thread (displaying it for customer to see)

Locked

Views: 1,323

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
24 Nov 2008, 7:45 PM
#1
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

catagory thread (displaying it for customer to see)

hello
I'm fairly happy with my template and set out, but have seen a catagory thread list which I would love on mine.
(its similar to the one you see in this forum... at top)...
ie/ ZenCart Support > Customising the look of your shop > Page layout changes > 'you are here'

I have a catagory sidebar with catagories and subcatagories..... but would like a visual thread to be seen in top of 'live' page.....

Q: How can this be added?

Thanks for any thoughts knowledge
Stephenn

24 Nov 2008, 7:55 PM
#2
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

Its called Breadcrumbs and built into Zen-cart . Admin / Configuration / Layout settings Define Breadcrumb Status. = 1 or 2

24 Nov 2008, 8:13 PM
#3
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

Thanks for reply.... wondered what breadcrumbs was. However it doesnot seem to have any effect on my web....

.... I was hoping it was set to OFF and swithing it ON would therfore provide what was desired.... but on going to admin, I discovered it was already set to ON... but, as mentioned, doesnt show on any pages... have played with the setting a little but doesnt effect (that I can see) the webpage... and still no show of the 'thread listing'.

Thanks for info... sounded an incredibly easy 'learn' and therefore an easy fix... but not to be, it sems.

Kind Regards
Stephenn

24 Nov 2008, 8:27 PM
#4
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

Hmm .. check in your templates folder /common/tpl_main_page.php that :-

Line #96 : <!-- bof breadcrumb -->

Line #97 : <?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>

Line #98 : <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>

Line #100 : <!-- eof breadcrumb --> 

Does exist there.

24 Nov 2008, 8:49 PM
#5
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

had a look and the code is indeed there ( it doesnt have any line numbers, but the flow of code is copy perfect).

... shame really! that sounded another excellent logic, thanks.

24 Nov 2008, 8:54 PM
#6
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

ok .. what about if you bring up your product page , and 'view source' then in the generated html look for something like :

<!-- bof  breadcrumb -->
                                <div id="navBreadCrumb">  <a href="http://www.affixit.co.uk/">Home</a> :: Craft
</div>
 <!-- eof breadcrumb -->

just to see if its actually reaching the page but jsut not showing for some reason.

24 Nov 2008, 9:11 PM
#7
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

yep seems to be there on 'view source'

</div></td>
    <td valign="top">
<!-- bof  breadcrumb -->
    <!--<div id="navBreadCrumb"></div>-->
<!-- eof breadcrumb -->


<!-- bof upload alerts -->
<!-- eof upload alerts -->

<div class="centerColumn" id="indexProductList">

<h1 id="productListHeading">Bargain Section</h1>

page has three columns and this is first of the centre (main column)..... the heading is visible and I am expecting to see the thread appearing just above it.... as it seems to read here!...

.... but no thread shows on page... yet!

24 Nov 2008, 11:32 PM
#8
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

It looks commented out in your source !

<!-- and --> around it .
25 Nov 2008, 12:56 AM
#9
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

ok. I see that now.....

have gone back to the 'main page' and taken the <!-- and --> away from the middle section.... it surrounded the <div id codehere </div> section:

<td valign="top">
<!-- bof  breadcrumb -->
<?php #if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
    <div id="navBreadCrumb"><?php #echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php #} ?>
<!-- eof breadcrumb -->

At first i took it off the ''bof breadcrumb'' and ''eof breadcrumb''... but on the newly edited page it showed the words: ''bof breadcrumb'' and below it ''eof breadcrumb'' Proving it sits in the correct area of the page i was expecting BUT:

BUT: the thread still does not appear

the new view source looks like this:

```
</div></td> <td valign="top"> <!-- bof breadcrumb --> <div id="navBreadCrumb"></div> <!-- eof breadcrumb --> <!-- bof upload alerts --> <!-- eof upload alerts --> <div class="centerColumn" id="indexProductList"> <h1 id="productListHeading">Bargain Section</h1> ```

perhaps narrowing it down a little, thanks for pointers

25 Nov 2008, 1:04 AM
#10
crazycucumber avatar

crazycucumber

Zen Follower

Join Date:
Jan 2006
Posts:
403
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

which would suggest tha the function that is used to create the breadcrumb is not running..
is this a new site , or new template , was it installed from scratch .. just seems odd that the breadcrumb commented out.

If it is a new template , try switching back to classic see if the breadcrumbs appear.

After that I have probably exhuasted all i know . Maybe I would suggest doing a file compare with an original 1.3.8 zip file from zen using beyond compare or simmilar and spot the file differences / code differences. thats a long job !

25 Nov 2008, 1:08 AM
#11
Kim avatar

Kim

Obaa-san

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

Re: catagory thread (displaying it for customer to see)

Your URL?

25 Nov 2008, 1:10 AM
#12
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

CRACKED IT!!!!!

there were '#' marks which i removed:
From This:```

<td valign="top"> <!-- bof breadcrumb --> <?php #if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?> <div id="navBreadCrumb"><?php #echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div> <?php #} ?> <!-- eof breadcrumb --> ```

To This:```

<td valign="top"> <!-- bof breadcrumb --> <?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?> <div id="navBreadCrumb"><?php #echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div> <?php } ?> <!-- eof breadcrumb --> ```

I now have the thread running alaong the top of the pages

Thank you very much for your time. your logic to pinning down the prob was/is great. Thank You, Stephenn

25 Nov 2008, 1:23 AM
#13
stephenn avatar

stephenn

New Zenner

Join Date:
Apr 2008
Posts:
24
Plugin Contributions:
0

Re: catagory thread (displaying it for customer to see)

Just read your comment prior........

yep it was a ready made template with 5 options to change to.... I chose one of the options......

I went back to the orig and pulled that main page out (now I know the areas to look at).... it was identical except the:

<--and--> (which had been sorted as discussed)

then I noticed the two '#' were not in the orig.... so I deleted these from the chosen temp section.... and All OK.

My site is a Shop based on the ZenCart structure.... I would pop it up, but its slowly being tweeked to how I like it.... learning all these millions of little issues.... but am aware it is is kind of live as well (so dont wish to make it vis to general at momment).

Will certainly publicise it to showcase and 'powered by Zen Cart' when done... the structure logic and function of the Zen Cart and its people, gets my vote of loyalty. Superb. Thanks again.

25 Nov 2008, 1:54 AM
#14
Kim avatar

Kim

Obaa-san

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

Re: catagory thread (displaying it for customer to see)

then I noticed the two '#' were not in the orig

OY! I don't know who put those #s in there but that is not the correct way to "comment out" a php statement. You are lucky that you did not end up with a horribly broken page.