Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

modifying some stuff but not getting far!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-05-2008, 12:07 AM
 
Supraman Supraman is offline
 

Newbie
  
Join Date: Jun 2008
Posts: 5
 

Default 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}
__________________
4.0 gold
Reply With Quote
  #2  
Old 06-05-2008, 12:21 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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...
Reply With Quote
  #3  
Old 06-06-2008, 05:38 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #4  
Old 06-06-2008, 06:15 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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.
Reply With Quote
  #5  
Old 06-06-2008, 04:37 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #6  
Old 06-07-2008, 12:31 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: modifying some stuff but not getting far!

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:
Click image for larger version

Name:	forum-aaaa.JPG
Views:	100
Size:	46.7 KB
ID:	984

Full list files with {#CSSFile#}:
Click image for larger version

Name:	full list.JPG
Views:	99
Size:	19.8 KB
ID:	985
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020