| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Horizontal Category Links | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello,
I have searched the forum and asked the original poster but have not found an answer or gotten a reply. I added horizontal categories to my site but the links don't work. They are still on the vertical menu also (I wanted to wait to take them off until I got these working) and those work fine. I know how to add a regular link but with the dynamically changing categories, I am lost. I don't want to lose the ability to change category names in the Admin area. Please help.
__________________
X-Cart 4.1.9 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You should modify /skin1/customer/categories.tpl to horizontal layout. Also you should change the place where this templates including - in /skin1/customer/home.tpl.
__________________
Regards, Anthony Holub X-Cart Skins Store ![]() - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#3
|
|||||||
|
|||||||
![]() Moving to Template Editing, as this is not a bug.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Hi tamicampos,
If you want similar functionality to categories.tpl and for them to be displayed horizontally somewhere other than the side columns, for instance, in the main body. Make a duplicate of categories.tpl and name the duplicate something like categories_horz.tpl Then inside the categories_horz.tpl replace everything with this... Code:
and to reference it; plonk the following in a suitable place... (provided that the duplicate was in the same folder as categories.tpl) Code:
Hope this helps.
__________________
Doms kube v4.1.9 |
|||||||||
#5
|
|||||||
|
|||||||
![]() Hello,
I moved my categories to horizontal in the head.tpl and it works great for IE but the links do not work in either Firefox or in Safari. Any idea why? Do you know how I can fix that? The other links work fine (home, shopping cart, search, etc.) My URL is www.kookoomonkey.com . Thanks.
__________________
X-Cart 4.1.9 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() The code isn't forming correctly. IE can be forgiving (misleading) in that department. They're outputting like this...
<a href="home.php?cat=103" </a> Any chance of seeing the code you have entered?
__________________
Doms kube v4.1.9 |
|||||||||
#7
|
|||||||
|
|||||||
![]() Absolutely!! Here it is (fexcerpt from head.tpl)
{*Horizontal Navigation Bar*} <td class="HeadLine" height="45" align="center"> {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} <a href="home.php?cat={$c.categoryid}" </a> <font color="99cccc">{$c.category}{if not %categories.last%} &n bsp;{/if}</font>{/foreach} {else} {foreach from=$subcategories item=c key=catid} <font color="99cccc">{$c.category}{if not %categories.last%} ; & nbsp;{/if}</font> {/foreach} {/if} {if ($usertype eq "C" || $usertype eq "B") && $all_languages_cnt gt 1} <form action="home.php" method="get" name="sl_form"> <input type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.Q UERY_STRING|amp}" /> <table cellpadding="0" cellspacing="0"> <tr> <td style="padding-right: 5px;"><b>{$lng.lbl_select_language}:</b></td> <td><select name="sl" onchange="javascript: this.form.submit();"> {section name=ai loop=$all_languages} <option value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected="selected"{/if}>{$all_languages[ai].language}</option> {/section} </select></td> </tr> </table> </form> {else} {/if} </td> </tr> {else}
__________________
X-Cart 4.1.9 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Try replacing this part of your code below...
Code:
With this... Code:
Check if it is okay. And if it is, then add this to your css file. Code:
Hope this helps.
__________________
Doms kube v4.1.9 |
|||||||||
#9
|
|||||||
|
|||||||
![]() This is the error message I got.
Error: Smarty error: [in head.tpl line 71]: syntax error: unexpected {else} (Smarty_Compiler.class.php, line 46 ![]() Parse error: syntax error, unexpected T_ELSE in /home/cute4uki/public_html/store/var/templates_c/%%68^689^68964653%%head.tpl.php on line 109
__________________
X-Cart 4.1.9 |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Hi tami,
The code is a straight swap. It shouldn't produce that result. If you can, upload a full head.tpl as an attachment and I'll/we'll try to find out where the mistake lies - if you'd like.
__________________
Doms kube v4.1.9 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|