| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Changing the categories.tpl categories | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'm not exactly sure what I need to do here, or if it is even possible, but what I'm looking for is for the ability to change the categories that are linked to on the default categories template.
The code says - {* $Id: categories.tpl,v 1.33 2008/11/06 16:53:53 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {capture name=menu} {if $active_modules.Fancy_Categories} {include file="modules/Fancy_Categories/categories.tpl"} {assign var="additional_class" value="menu-fancy-categories-list"} {else} {strip} <ul> {foreach from=$categories_menu_list item=c} <li><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}"><strong>{$c.category} </strong></a></li> {/foreach} </ul> {/strip} {assign var="additional_class" value="menu-categories-list"} {/if} {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu} And the category that is being linked is called /Digital-Camera-Parts.html (The X-Cart clean URL I believe) What I need it to be changed to is /Digital_Camera_Parts.html, which is my static page I created. Is this possible to do? Or do I need a mod to be able to change it? Thanks and sorry for the rather inept way of describing all this, I'm still new at the X-Cart format
__________________
X-Cart Version - 4.2.0 License products: X-Cart Gold |
|||||||
#2
|
|||||||
|
|||||||
![]() The categories and their links are automatically generated - so if you want to link to something other than the category, you need to hard-code the menu.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Is there anyone who has experience doing that sort of hard-coding? I'm kind of at a loss with what I should be doing with the menu coding.
__________________
X-Cart Version - 4.2.0 License products: X-Cart Gold |
|||||||
#4
|
|||||||
|
|||||||
![]() It is just html - do you know html?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Yes, I got the categories figured out and I can add those but I'm just having issues with our template
![]()
__________________
X-Cart Version - 4.2.0 License products: X-Cart Gold |
|||||||
#6
|
|||||||
|
|||||||
![]() It isn't php, it is html and Smarty. Just put your code inside this:
{capture name=menu} Your html here {/capture} {include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() Wow...apparently I need to do a serious look into Smarty. I got it, thank you so much!
__________________
X-Cart Version - 4.2.0 License products: X-Cart Gold |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|