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)
-   -   modifying some stuff but not getting far! (https://forum.x-cart.com/showthread.php?t=40291)

Supraman 06-05-2008 12:07 AM

modifying some stuff but not getting far!
 
whats the best way to get rid of that maket price and the savings column? couple of other questions - how can i find out the space of the main area or how large is it by standard? Also what should i edit to put a bground image in the website is www.slixaustralia.com.au i've been trying for ages ie. modifying skin 1 css putting it in the home.tpl template manually but nothing is working?

here my home tpl

Code:

{* $Id: home.tpl,v 1.67.2.9 2005/06/28 12:02:38 svowl Exp $ *}
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{config_load file="$skin_config"}
<HTML>
<HEAD>
<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>
{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</HEAD>
<BODY {if $body_onload ne ''} onload="{$body_onload}"{/if}>
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
<!-- main area -->
<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<TR>
<TD width="6">&nbsp;</TD>
<TD width="150" valign="top" class="td02">
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{ include file="customer/categories.tpl" }
<BR>
{/if}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Modules.manufacturers_menu eq "Y"}
{ include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{include file="customer/special.tpl"}
{ include file="help.tpl" }
<IMG src="{$ImagesDir}/spacer.gif" width="150" height="1" border="0">
</TD>
<TD width="20">&nbsp;</TD>
<TD valign="top" class="td03" >
<!-- central space -->
{include file="location.tpl"}

{include file="dialog_message.tpl"}

{if $active_modules.Special_Offers ne ""}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}

{include file="customer/home_main.tpl"}
<!-- /central space -->
&nbsp;
</TD>
<TD width="20">&nbsp;</TD>
<TD width="150" valign="top" class="td02">
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/button.tpl"}
<BR>
{/if}
{if $active_modules.Feature_Comparison ne "" && $comparison_products ne ''}
{ include file="modules/Feature_Comparison/product_list.tpl" }
<BR>
{/if}
{if $active_modules.Users_online ne "" and $users_online}
{ include file="modules/Users_online/menu_users_online.tpl" }
<BR>
{/if}
{ include file="customer/menu_cart.tpl" }
<BR>
{if $login eq "" }
{ include file="auth.tpl" }
<BR>
{else}
{ include file="authbox.tpl" }
<BR>
{/if}
{ include file="news.tpl" }
{if $active_modules.Interneka ne ""}
<BR>
{ include file="modules/Interneka/menu_interneka.tpl" }
{/if}
<BR>
{ include file="poweredby.tpl" }
<BR>
<IMG src="{$ImagesDir}/spacer.gif" width="150" height="1" border="0">
</TD>
<TD width="6">&nbsp;</TD>
</TR>
</TABLE>
{ include file="rectangle_bottom.tpl" }
</BODY>
</HTML>
{/if}


Yurij 06-05-2008 12:21 AM

Re: modifying some stuff but not getting far!
 
Quote:

Originally Posted by Supraman
whats the best way to get rid of that maket price and the savings column? couple of other questions - how can i find out the space of the main area or how large is it by standard? Also what should i edit to put a bground image in the website is www.slixaustralia.com.au i've been trying for ages ie. modifying skin 1 css putting it in the home.tpl template manually but nothing is working?

here my home tpl

Code:

........



Also what should i edit to put a bground image in the website is www.slixaustralia.com.au?

Open file "skin1/skin1.css", find line:
PHP Code:

HTML,BODY {
.... 


Insert after (for exampl.):
PHP Code:

BACKGROUNDurl(images/bg.gifrepeat-x



where bg.gif - background images...

JWait 06-06-2008 05:38 AM

Re: modifying some stuff but not getting far!
 
Ok, here is a trick question. If you put a background image for "BODY" the same background image will show up in your popups. How would I get rid of the background image in the popups?

Yurij 06-06-2008 06:15 AM

Re: modifying some stuff but not getting far!
 
Show an example of a site with such popups where this is happening?

There are several ways of opening popups. :)

JWait 06-06-2008 04:37 PM

Re: modifying some stuff but not getting far!
 
I don't have an example, but popup_files.tpl, popup_images.tpl, popup_image_selection.tpl and probably one or two more that I missed all contain the instruction "<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}>" or some derivative. Since in the "CSSFile" the BODY calls a image, then it would show up as the body anywhere the "CSSFile" is referenced. I created a new "popup.css" and hardcoded that wherever a css was linked in a popup. I just figure there has to be an easier way. I tried adding an image background to "container" but didn't have much success.

Yurij 06-07-2008 12:31 AM

Re: modifying some stuff but not getting far!
 
2 Attachment(s)
I get it that way (example for file "skin1/main/popup_iamge.tpl"):


Create file "skin1/test.css"
PHP Code:

BODY,DIV,TH,TD,P,INPUT,SELECT,TEXTAREA,TT {
    
FONT-FAMILYVerdanaArialHelveticaSans-serif;
    
COLOR#550000;
    
FONT-SIZE10px;
}
HTML,BODY {
    
HEIGHT100%;
    
MARGIN0px;
    
PADDING0px;
    
BACKGROUND-IMAGEurl(images/admin_xlogo.gif);



Edit file "skin1/main/popup_iamge.tpl", replaced this line:
PHP Code:

<link rel="stylesheet" href="{if $area eq 'C'}{$SkinDir}/{#CSSFile#}{else}{$SkinDir}/skin1_admin.css{/if}" /> 


at this line
PHP Code:

<link rel="stylesheet" href="{$SkinDir}/test.css" /> 


Result:
Attachment 984

Full list files with {#CSSFile#}:
Attachment 985


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

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