Jump to content

[resolved] TMFOOTERLINKS URL's Only work on home page


Recommended Posts

module tmfootlerlinks came with a template I installed. The problem with it as that the links only worked when one was on the home page. Horrible! :)

 

I updated the .tpl and wanted to post it for anyone else that want's their footer links to work on any page:

 

<div id="tmfooterlinks">
<div>
 <h4>{l s='Information' mod='tmfooterlinks'}</h4>
 <ul>
  <li><a href="{$link->getPageLink('contact-form.php', true)}">{l s='Contact' mod='tmfooterlinks'}</a></li>
  <li><a href="../cms.php?id_cms=1">{l s='Delivery' mod='tmfooterlinks'}</a></li>
  <li><a href="../cms.php?id_cms=2">{l s='Legal Notice' mod='tmfooterlinks'}</a></li>
  <li><a href="../cms.php?id_cms=3">{l s='Terms and conditions' mod='tmfooterlinks'}</a></li>
  <li><a href="../cms.php?id_cms=4">{l s='About us' mod='tmfooterlinks'}</a></li>
 </ul>
</div>
<div>
 <h4>{l s='Our offers' mod='tmfooterlinks'}</h4>
 <ul>
  <li><a href="{$link->getPageLink('new-products.php', true)}">{l s='New products' mod='tmfooterlinks'}</a></li>
  <li><a href="{$link->getPageLink('best-sales.php', true)}">{l s='Top sellers' mod='tmfooterlinks'}</a></li>
  <li><a href="{$link->getPageLink('prices-drop.php', true)}">{l s='Specials' mod='tmfooterlinks'}</a></li>
  <li><a href="{$link->getPageLink('manufacturer.php', true)}">{l s='Manufacturers' mod='tmfooterlinks'}</a></li>
  <li><a href="{$link->getPageLink('supplier.php', true)}">{l s='Suppliers' mod='tmfooterlinks'}</a></li>
 </ul>
</div>
<div>
 <h4>{l s='Your Account' mod='tmfooterlinks'}</h4>
 <ul>
  <li><a href="{$link->getPageLink('my-account.php', true)}">{l s='Your Account' mod='tmfooterlinks'}</a></li>
  <li><a href="{$link->getPageLink('identity.php', true)}">{l s='Personal information' mod='tmfooterlinks'}</a></li>
  <li><a href="{$link->getPageLink('addresses.php', true)}">{l s='Addresses' mod='tmfooterlinks'}</a></li>
  <li><a href="{$link->getPageLink('discount.php', true)}">{l s='Discount' mod='tmfooterlinks'}</a></li>
  <li><a href="{$link->getPageLink('history.php', true)}">{l s='Order history' mod='tmfooterlinks'}</a></li>
 </ul>
</div>
<p><h3>{l s='Powered by' mod='tmfooterlinks'} <a href="http://www.YOURSHOPURL">YOUR SHOP NAME</a>PrestaShop!</h3></p>
</div>

 

Cheers

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...