X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Authentication Sideblock, Log in Log out ?? Help in movin it (https://forum.x-cart.com/showthread.php?t=22041)

taltos1 05-24-2006 11:57 AM

Authentication Sideblock, Log in Log out ?? Help in movin it
 
Hello,
I am working on combining the Cart and Authentication sideblocks and I am stuck. So far I have got most of the Authentication items into the bottom of the cart (wish list, modify profile etc...) The problem is that when you login, in the Authentication box you get the "Mike is Logged in" "Log out" text, and I want to add that to the cart section. But I am not sure what to do....Do I edit this from home.tpl

Code:

{if $login eq "" }
{ include file="auth.tpl" }


{/if}


{if $login eq "" }
{ include file="news.tpl" }
{else}
{ include file="authbox.tpl" }
{/if}


and then add it to the menu_cart.tpl?

Thanks so much...

balinor 05-24-2006 12:05 PM

You need to pick one of the templates and put everything in it. For example, if you want to use the cart box, open up customer/menu_cart.tpl and copy everything from auth.tpl and authbox.tpl in to it. You need to be very careful of the {if} statements though....you sure you want to do this?

taltos1 05-24-2006 12:14 PM

Do you think it is a bad idea? I think it is cleaner to be able to combine the 2 elements (cart and authentication).

Thanks for your insight


All times are GMT -8. The time now is 02:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.