Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Getting PHP to work in Smarty Templates

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 10-12-2003, 08:18 PM
  kangus's Avatar 
kangus kangus is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 160
 

Default Why recreate the horse?

Try using
customer/main/navigation.tpl --

Make a copy (mod_nav.tpl) and add your own graphics and messages then place it in

customer/main/subcategories.tpl ---

Add a config item to your xcart database as:
INSERT INTO `xcart_config` VALUES ('page_nav', 'This is the toggle to switch mod_nav.tpl', 'N', 'General', 0, 'text');

Then in subcategories.tpl --
{if $config.General.page_nav eq 'N'}
{ include file="customer/main/navigation.tpl" }
{else}
{ include file="customer/main/mod_nav.tpl" }
{/if}

Now you can turn your mod off/on from the admin/general page
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:12 AM.

   

 
X-Cart forums © 2001-2020