![]() |
Graphical Buttons link back to main page
I wanted to change the xcart menu buttons to my graphical buttons, so I use the information in the post
http://forum.x-cart.com/viewtopic.php?t=622 to get an xcart template to load in the home_main.tpl section of my page. I had the buttons load from newmenu.tpl, which works fine. The problem is that when you click on the menu buttons, it just loops back and shows the welcome.tpl information. You can see what I am talking about on my page http://www.presariophotos.com/xcart . I have checked my home.tpl code: Code:
{* $Id: home.tpl,v 1.42 2002/10/22 10:27:05 olga Exp $ *} And my home_tpl code: Code:
{if $smarty.get.mode eq "subscribed"} And finally my newmenu.tpl code: Code:
{* $Id: newmenu.tpl,v 1.4 2002/08/20 13:16:29 zorg Exp $ *} I am lost to what i am doing wrong, HELP PLEASE!!!!! |
Correction
when I said home_tpl I meant home_main.tpl
HELP! Thanks! |
I got it working, thanks to funkydunk. It seems like to link to the categories.tpl to make it load in the home.tpl area, you must change some of the smarty code. Below is the solution he gave me for future reference...
From: funkydunk To: ahunte Posted: Fri Apr 04, 2003 6:07 pm Subject: Re: HELP please! okay...here goes. first create a mirror copy of customer/home.php calling it catlist.php then amend the line that is : $smarty->assign("main","catalog"); to $smarty->assign("main","catlist"); then change the link to catlist.php job done |
I have a question.
I have a question.
Why not just create the categories that you need. Past the image buttons you need into customer/home.tpl Right click on the dynamic links and copy shortcut. Right click on the image buttons and hyperlink then with the link you copied. Do that for each one. Then comment out the code that displays the categories in the side menu in the home.tpl? Seems easier than creating more templates just to display buttons. What do you think? John7 |
All times are GMT -8. The time now is 01:54 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.