Zen Cart Logo
Forums / Basic Configuration / Adding a home link inside the categories sidebox?

Adding a home link inside the categories sidebox?

Views: 1,111

Results 1 to 3 of 3
15 Apr 2013, 12:03 PM
#1
34ford avatar

34ford

New Zenner

Join Date:
Jul 2011
Location:
North Carolina
Posts:
14
Plugin Contributions:
0

Adding a home link inside the categories sidebox?

Would it be possible to add a link to the stores home page in the categories side box?

15 Apr 2013, 1:19 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Adding a home link inside the categories sidebox?

Using your templates and overrides you can edit the file:
/includes/templates/your_templates_dir/sideboxes/tpl_categories.php

and add the code in RED:

  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
[B]  $content .= '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . HEADER_TITLE_CATALOG . '</a>' . '<br />' . "\n";
[/B]  for ($i=0;$i<sizeof($box_categories_array);$i++) {
15 Apr 2013, 5:53 PM
#3
34ford avatar

34ford

New Zenner

Join Date:
Jul 2011
Location:
North Carolina
Posts:
14
Plugin Contributions:
0

Re: Adding a home link inside the categories sidebox?

Super. Works great.

Thank you again.