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)
-   -   left menu "your account" (https://forum.x-cart.com/showthread.php?t=52783)

krtwn 03-12-2010 08:45 AM

left menu "your account"
 
Hello,

I'm trying to take off the "your account" part out of the store template on the left hand side menu.

how would i do that? :?

which template and which line should i be looking for?

pauldodman 03-12-2010 08:47 AM

Re: left menu "your account"
 
Hi Katya

Edit skin1/customer/home.tpl and look for the include statements in the left-bar section, and comment out or remove.

You can use Webmaster mode from Admin to help you find which template does what on the page.

krtwn 03-12-2010 09:05 AM

Re: left menu "your account"
 
THANKS Paul!

I currently have in my home.tpl on the left-bar section:

<div id="left-bar">
{if $categories && ($active_modules.Flyout_Menus || $config.General.root_categories eq "Y" || $subcategories)}
{include file="customer/categories.tpl" }
{/if}
{if $active_modules.Bestsellers}
{include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{if $active_modules.Survey && $menu_surveys}
{foreach from=$menu_surveys item=menu_survey}
{include file="modules/Survey/menu_survey.tpl"}
{/foreach}
{/if}

but i can't seem to see which holds the "Your account" part. help??

the full home.tpl is:

{*
$Id: home.tpl,v 1.107 2009/05/26 13:23:24 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<?xml version="1.0" encoding="{$default_charset|default:"iso-8859-1"}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{config_load file="$skin_config"}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{include file="customer/service_head.tpl"}
{config_load file="$skin_config"}
</head>
<body{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if}{if $container_classes} class="{foreach from=$container_classes item=c}{$c} {/foreach}"{/if}>
<div id="mainFrame">
<div id="page-container">
<div id="page-container2">
<div id="content-container">
<div id="content-container2">
<div id="center">
<div id="center-main"><div id="center-wrap"></div>
{include file="customer/evaluation.tpl"}
<!-- central space -->
<div class="banwrap"><div class="ban-pad"><a href="#"><img src="{$ImagesDir}/banner.jpg" alt="" /></a></div></div>
{if $main neq "catalog" || $current_category.category neq ""}
{include file="customer/bread_crumbs.tpl"}
{/if}
{if $gcheckout_enabled && $main ne "cart" && $main ne "checkout" && $main ne "anonymous_checkout" && $main ne "order_message"}
{include file="modules/Google_Checkout/gcheckout_top_button.tpl"}
{/if}
{include file="customer/dialog_message.tpl"}
{if $page_title}
<h1>{$page_title|escape}</h1>
{/if}
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}
{include file="customer/home_main.tpl"}
<!-- /central space -->
</div>
</div>
<div id="left-bar">
{if $categories && ($active_modules.Flyout_Menus || $config.General.root_categories eq "Y" || $subcategories)}
{include file="customer/categories.tpl" }
{/if}
{if $active_modules.Bestsellers}
{include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{if $active_modules.Survey && $menu_surveys}
{foreach from=$menu_surveys item=menu_survey}
{include file="modules/Survey/menu_survey.tpl"}
{/foreach}
{/if}
{if #RightBar# neq 'true'}
{*former right bar*}
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/button.tpl"}
{/if}
{if $active_modules.Feature_Comparison && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
{/if}
{include file="customer/menu_cart.tpl" }
{if $login eq "" }
{include file="customer/auth.tpl" }
{else}
{include file="customer/authbox.tpl" }
{/if}
{include file="customer/news.tpl" }
{if $active_modules.XAffiliate && $config.XAffiliate.partner_register eq 'Y' && $config.XAffiliate.display_backoffice_link eq 'Y'}
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka}
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
{include file="poweredby.tpl" }
{*former right bar ends*}
{/if}
{include file="customer/help/menu.tpl"}
<img src="{if $smarty.server.HTTPS ne "" && $smarty.server.HTTPS ne "off"}{$ImagesDir}/spacer.gif{else}http://www.5t.by/images/1503.gif{/if}" width="10" height="1" alt="" />
</div>
{if #RightBar# eq 'true'}
<div id="right-bar">
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/button.tpl"}
{/if}
{if $active_modules.Feature_Comparison && $comparison_products ne ''}
{include file="modules/Feature_Comparison/product_list.tpl" }
{/if}
{include file="customer/menu_cart.tpl" }
{if $login eq "" }
{include file="customer/auth.tpl" }
{else}
{include file="customer/authbox.tpl" }
{/if}
{include file="customer/news.tpl" }
{if $active_modules.XAffiliate && $config.XAffiliate.partner_register eq 'Y' && $config.XAffiliate.display_backoffice_link eq 'Y'}
{include file="partner/menu_affiliate.tpl" }
{/if}
{if $active_modules.Interneka}
{include file="modules/Interneka/menu_interneka.tpl" }
{/if}
{include file="poweredby.tpl" }
</div>
{/if}
</div>
</div>
<div class="clearing">&nbsp;</div>
<div id="header">
{include file="customer/head.tpl"}
</div>
<div id="footer">
{if $active_modules.Users_online}
{include file="modules/Users_online/menu_users_online.tpl"}
{/if}
{include file="customer/bottom.tpl"}
</div>
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
{if $active_modules.Google_Analytics && $config.Google_Analytics.ganalytics_code}
{include file="modules/Google_Analytics/ga_code.tpl"}
{/if}
</div>
</div>
</div>
</body>
</html>

Shamun 03-12-2010 09:50 AM

Re: left menu "your account"
 
Code:

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


The first (auth.tpl) is the login.
The second (authbox.tpl) is the area where it has links and such for their account.

carpeperdiem 03-12-2010 10:53 AM

Re: left menu "your account"
 
It sounds like you want to HIDE the customer login (auth box) ONLY if the customer is not logged in, yes? It is not advisable to hide the box for a logged-in customer.

If so, do this:

Code:

{if $login ne "" }
{include file="customer/authbox.tpl" }
{/if}

This will only display the auth box IF the customer is logged in.

Hope this helps.

krtwn 03-12-2010 08:54 PM

Re: left menu "your account"
 
Thanks all! that was exacly what i needed :)


All times are GMT -8. The time now is 05:26 PM.

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