Magento
首页添加了左侧导航栏
但是导航栏上的了链接都失效了 原因是转地址错误
比如说 网站域名是xxx.com现在跳转地址为:xxx.com/“http://xxx.com/shop-by-categary/bikinis.html”正确跳转地址应该为xxx.com/shop-by-categary/bikinis.html怎么修改呢?<div id="left_navigation_container" >
<?php $current_cat = $this->getCurrentCategory();?>
<?php $current_cat = (is_object($current_cat) ? $current_cat->getName() : ”);?><div>
<?php $collection = $this->getStoreCategories();?>
<?php foreach ($collection as $_category):?>
<?php if ($_category->getName() == $current_cat) {?>
<a href=”<?php echo $this->getCategoryUrl($_category)?>”><?php echo $_category->getName()?><br/>
<?php }else{ ?>
<h2><a href=”<?php echo $this->getCategoryUrl($_category)?>”> <?php echo $_category->getName()?></a></h2>
<?php }?>
<?php foreach($_category->getChildren() as $_childCategory):?>
<?php if ($_childCategory->getName() == $current_cat) {?>
<a href=”<?php echo $this->getCategoryUrl($_childCategory)?>”><?php echo $_childCategory->getName()?></a><br/>
<?php }else{ ?>
<h6><a href=”<?php echo $this->getCategoryUrl($_childCategory)?>”><?php echo $_childCategory->getName()?></a></h6>
<?php }?>
<?php foreach($_childCategory->getChildren() as $_cchildCategory):?>
<?php if ($_cchildCategory->getName() == $current_cat) {?>
<a href=”<?php echo $this->getCategoryUrl($_cchildCategory)?>”><?php echo $_cchildCategory->getName()?></a><br/>
<?php }else{ ?>
<h6 style=”margin-left:10px;”><a href=”<?php echo $this->getCategoryUrl($_cchildCategory)?>”><?php echo $_cchildCategory->getName()?></a></h6>
<?php }?>
<?php endforeach?>
<?php endforeach?>
<?php endforeach?>
</div>