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)
-   -   Home.tpl - Do not display right Column on ProductListings (https://forum.x-cart.com/showthread.php?t=16316)

MOC 09-01-2005 12:51 PM

Home.tpl - Do not display right Column on ProductListings
 
Hi Guys
i need your help. I have a 3.5.14 Version installed and would like to edit the templates.

I installed the Shop in the 3 Column Version. But i want, that the 3rd (the right) colum in the home.tpl should not be displayed if a customer is looking at the product listings.

I tried everything but i cant get it to work. It works fine with
Code:

{if $main eq "product"} {if $main eq "search"} {if $main eq "checkout"} .....

What do i have to include between the quotes "?????" to disable the right column for the product listings?

Thanks in adv.
Saskia :?: :?:

xcartsolutions 09-01-2005 02:13 PM

you could put
Code:

{if $main ne "product" && $main ne "search" && $main ne "catalog" && $main ne "checkout"}



{/if}


That says if main is not your product, search catalog or checkout show the the code.

MOC 09-01-2005 05:36 PM

i know its working for everything
but its not working if a customer is looking at product listings when he clicks on a category.

xcartsolutions 09-01-2005 06:08 PM

you need the $main ne "catalog"

MOC 09-01-2005 06:10 PM

if i add catalog to it, the colomn will not be displayed everywhere.
not on the start page of the shop etc....

MOC 09-01-2005 06:11 PM

My Code
 
Code:

code removed

xcartsolutions 09-01-2005 06:25 PM

{elseif $main eq "catalog" and $current_category.category eq ""}



Code:


{* $Id: home.tpl,v 1.54.2.1 2004/11/19 08:26:24 mclap Exp $ *}
{ config_load file="$skin_config" }
<html>
<head>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<title>{$lng.txt_site_title}
{if $main eq "catalog"}
  {if $location eq ""}  {$lng.txt_subtitle_home}
  {else}
  {strip}
  {section name=position loop=$location start=0 }
  {if %position.last% eq "true"} - {$location[position].0|escape}{/if}
  {/section}
  {/strip}
  {/if}
{elseif $main eq "product"}
  {if $product.product ne ''} - {$product.product}{/if}
{elseif $main eq "help"}
{$lng.txt_subtitle_help}
{elseif $main eq "cart"}
{$lng.txt_subtitle_cart}
{elseif $main eq "checkout"}
{$lng.txt_subtitle_checkout}
{elseif $main eq "order_message"}
{$lng.txt_subtitle_thankyou}
{elseif $main eq "wishlist"}
{$lng.txt_subtitle_wishlist}
{elseif $main eq "giftcert"}
{$lng.txt_subtitle_giftcerts}
{/if}
</title>
{ include file="meta.tpl" }
{if $usertype eq "A"}
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">{else}
<link rel="stylesheet" href="{$SkinDir}/site.css">{/if}
<LINK href="http://webimages.gamemailorder.com/htm.ico" rel="SHORTCUT ICON">
</head>
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }


{if $login eq ""}
<div align="center">
  <center>

<table cellSpacing="0" cellPadding="0" width="760" bgColor="white" border="0" style="border-collapse: collapse" bordercolor="#111111">
  <tr>
    <td vAlign="top" align="left" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black"></td>
    <td style="border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black" vAlign="top" align="left" width="100%" height="560">
    <table style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="0" width="100%" border="0">
      <tr>
        <td width="10" bgColor="#eeeeee" height="40" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        [img]http://img.srv.feuchtundwillig.de/silverbox_tl1.gif[/img]</td>
        <td align="middle" background="http://img.srv.feuchtundwillig.de/silverbox_t_repeat1.gif" height="40" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        [img]http://img.srv.feuchtundwillig.de/title_start.gif[/img]</td>
        <td width="10" height="40" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        [img]http://img.srv.feuchtundwillig.de/silverbox_tr1.gif[/img]</td>
      </tr>
      <tr>
        <td width="10" background="http://img.srv.feuchtundwillig.de/silverbox_l_repeat.gif" height="480" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        [img]http://img.srv.feuchtundwillig.de/silverbox_l_repeat.gif[/img]</td>
        <td vAlign="center" align="middle" bgColor="#eeeeee" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        <table style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="0" width="100%" border="0">
          <tr>
            <td width="10" bgColor="#ffffff" height="10" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
            [img]http://img.srv.feuchtundwillig.de/whitebox1_tl.gif[/img]</td>
            <td align="middle" background="http://img.srv.feuchtundwillig.de/whitebox_t1_repeat.gif" height="10" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
            [img]http://img.srv.feuchtundwillig.de/whitebox_t1_repeat.gif[/img]</td>
            <td width="10" height="10" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
            [img]http://img.srv.feuchtundwillig.de/whitebox1_tr.gif[/img]</td>
          </tr>
          <tr>
            <td width="10" background="http://img.srv.feuchtundwillig.de/whitebox_l1_repeat.gif" height="510" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
            [img]http://img.srv.feuchtundwillig.de/whitebox_l1_repeat.gif[/img]</td>
            <td vAlign="top" align="middle" bgColor="#ffffff" class="blacktext" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
          <p align="justify">
          <font face="Arial" size="2">Sehr geehrter
            Besucher,

          Sehr geehrter Kunde,

           

            wir freuen uns Sie bei DVDsab18 begrц╪ц÷en zu dц╪rfen. Wir fц╪hren
            ц╪ber 4000 Erotik DVDs &amp; VHS sowie Magazine fц╪r Erwachsene aus dem Straight &amp; Gay Genre. Aufgrund dessen,
            kц╤nnen wir nur Kunden Zugriff auf unseren Online Shop gewц╓hren, die mindestens
18 Jahre alt sind. Wenn Sie noch kein Kundenkonto
            besitzen, kц╤nnen Sie sich unter &quot;Neukunde&quot; kostenlos ein Kundenkonto
            anlegen. Wenn sie bereits Kunde sind, loggen Sie sich unter &quot;Kunden
Login&quot; in den Online Shop ein.</font></p>
          <table cellSpacing="0" cellPadding="4" width="100%" border="0">
              <tr>
                <td class="blacktext" vAlign="top" width="50%">
                <h2>Kunden Login</h2>
               

{ include file="auth.tpl" }</td>
                <td class="blacktext" vAlign="top" width="50%">
                <h2>Neukunde</h2>
                <table style="BORDER-COLLAPSE: collapse" cellSpacing="0" cellPadding="0" width="100%" border="0" height="188">
                  <tr>
                    <td width="10" bgColor="#ffffff" height="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                    [img]http://img.srv.feuchtundwillig.de/whitebox2_tl.gif[/img]</td>
                    <td align="middle" background="http://img.srv.feuchtundwillig.de/whitebox_t2_repeat.gif" height="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                    [img]http://img.srv.feuchtundwillig.de/whitebox_t2_repeat.gif[/img]</td>
                    <td width="10" height="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                    [img]http://img.srv.feuchtundwillig.de/whitebox2_tr.gif[/img]</td>
                  </tr>
                  <tr>
                    <td width="10" background="http://img.srv.feuchtundwillig.de/whitebox_l2_repeat.gif" height="166" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                    [img]http://img.srv.feuchtundwillig.de/whitebox_l2_repeat.gif[/img]</td>
                    <td vAlign="top" align="left" bgColor="#ffffff" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black" height="166">
                    <div class="blacktext" align="left">
                      <font size="-1">
                      <table cellSpacing="0" cellPadding="4" width="100%" border="0" height="163">
                     
                          <tr>
                            <td class="blacktext" height="36">Bitte klicken auf
                            den unteren Submit Button um sich kostenlos als
                            Kunde zu registrieren. </td>
                          </tr>
                          <tr>
                            <td height="32" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                            <br style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                            <font size="-2">Bitte halten Sie Ihren
                            Personalausweis bereit!</font>
                            </td>
                          </tr>
                          <tr>
                            <td class="blacktext" align="middle" height="71">
                           

                           

                            <a href="http://www.dvdsab18.com/anmelden/">
                            [img]http://img.srv.feuchtundwillig.de/submit.gif[/img]</a>
                            <input type="hidden" value="register" name="login_act">
                            </td>
                          </tr>
                     
                      </table>
                      </font>
                    </div>
                    </td>
                    <td width="10" background="http://img.srv.feuchtundwillig.de/whitebox_r2_repeat.gif" height="166" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                    [img]http://img.srv.feuchtundwillig.de/whitebox_r2_repeat.gif[/img]</td>
                  </tr>
                  <tr>
                    <td width="10" height="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                    [img]http://img.srv.feuchtundwillig.de/whitebox2_bl.gif[/img]</td>
                    <td background="http://img.srv.feuchtundwillig.de/whitebox_b2_repeat.gif" height="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                    [img]http://img.srv.feuchtundwillig.de/whitebox_b2_repeat.gif[/img]</td>
                    <td width="10" height="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
                    [img]http://img.srv.feuchtundwillig.de/whitebox2_br.gif[/img]</td>
                  </tr>
                </table>
                <div>
</div>
                </td>
              </tr>
            </table>
            </td>
            <td width="10" background="http://img.srv.feuchtundwillig.de/whitebox_r1_repeat.gif" height="510" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
            [img]http://img.srv.feuchtundwillig.de/whitebox_r1_repeat.gif[/img]</td>
          </tr>
          <tr>
            <td width="10" height="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
            [img]http://img.srv.feuchtundwillig.de/whitebox1_bl.gif[/img]</td>
            <td background="http://img.srv.feuchtundwillig.de/whitebox_b1_repeat.gif" height="10" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
            [img]http://img.srv.feuchtundwillig.de/whitebox_b1_repeat.gif[/img]</td>
            <td width="10" height="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
            [img]http://img.srv.feuchtundwillig.de/whitebox1_br.gif[/img]</td>
          </tr>
        </table>
        </td>
        <td width="10" background="http://img.srv.feuchtundwillig.de/silverbox_r_repeat.gif" height="480" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        [img]http://img.srv.feuchtundwillig.de/silverbox_r_repeat.gif[/img]</td>
      </tr>
      <tr>
        <td width="10" height="10" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        [img]http://img.srv.feuchtundwillig.de/silverbox_bl.gif[/img]</td>
        <td background="http://img.srv.feuchtundwillig.de/silverbox_b_repeat.gif" height="10" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        [img]http://img.srv.feuchtundwillig.de/silverbox_b_repeat.gif[/img]</td>
        <td width="10" height="10" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: black">
        [img]http://img.srv.feuchtundwillig.de/silverbox_br.gif[/img]</td>
      </tr>
    </table>
    </td>
  </tr>
</table>

  </center>
</div>
 
    {else}
{if ($usertype eq "C")}





<div align="center">
  <center>
<table border=0 width="760" cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor="#111111">
<tr>{if $main eq "cart"}{else}{if $main eq "order_message"}{else}{if $main eq "checkout"}{else}
<td width=150 valign=top>
{if $usertype eq "C"}
{ include file="customer/search_tab.tpl" }
{/if}
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }

{/if}
{include file="customer/special.tpl"}
{ include file="customer/newsletter.tpl" }
</td>{/if}{/if}{/if}
<td valign=top>

{include file="customer/home_main.tpl"}


</td>

{if $main ne "product" && $main ne "search" && $main ne "checkout" && ($main eq "catalog" && $current_category.category eq "") } 

<td width=20></td>
<td width=150 valign=top>
{ include file="customer/dealofthemonth.tpl" }
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}{if $active_modules.Interneka ne ""}
{ include file="modules/Interneka/menu_interneka.tpl" }
{/if}


{ include file="poweredby.tpl" }


</td>
<td width=6></td>{/if}
</tr>
</table>
  </center>
</div>
{ include file="rectangle_bottom.tpl" }
</body>
</html>{/if}{/if}



should do it

MOC 09-01-2005 06:29 PM

Thanks!! It works like a charm :D :D :D :D :D :D


THAAAAANKK YOU!!!

xcartsolutions 09-01-2005 06:30 PM

anytime, glad it worked for you


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

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