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

My new logos up but original xcart code still in head.tpl ??

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-21-2003, 08:57 AM
  supanewb's Avatar 
supanewb supanewb is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Australia
Posts: 51
 

Default My new logos up but original xcart code still in head.tpl ??

Ok guys what am I missing here.

Ive put up my store logo by tinkering with the head.tpl which pretty much screwed up and sent the the rest of the page down by about thirty lines below the logo.

When I go back to fix it later the head.tpl code is the original xcart code? no sign of my crap html efforts or anything... yet my logos still in place. What have i done wrong here and how do i get my own code back.
Reply With Quote
  #2  
Old 07-21-2003, 09:40 AM
  supanewb's Avatar 
supanewb supanewb is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Australia
Posts: 51
 

Default

I give up where exactly in the head.tpl would i paste my html to get rid of the x-cart stuff and place a centred logo.

Ive tried removing the reference to the xcart logo and then copying and pasting html straight out of dreamweaver but to no avail.
( my logos bigger)

No matter what I do my logo sits at the left margin with the language bar just below it also on the left and then a big gap to the rest of the page

Ive tried looking at the featured sites html but still can't get past this head.tpl thing. I'm using 3.4.3 gold
Reply With Quote
  #3  
Old 07-21-2003, 11:47 AM
 
magnumkp magnumkp is offline
 

eXpert
  
Join Date: Apr 2003
Location: England
Posts: 304
 

Default

It could be that the logo has been put in the left (or right) hand column. When looking at the code in Dreamweaver check there are no other columns.

It might help if you posted a link to your site so we could see it, or just paste your current head.tpl code.
Reply With Quote
  #4  
Old 07-22-2003, 01:54 AM
  supanewb's Avatar 
supanewb supanewb is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Australia
Posts: 51
 

Default

Thanks magnumkp

hi yi yi I should just stick to retail.....

Code:
{* $Id: head.tpl,v 1.28 2003/04/24 09:50:33 svowl Exp $ *} <TABLE class=HeadBox width=100% leftmargin="0" topmargin="0"> <TR> <div align="center">[img]http://www.swordpro.com.au/xcart/skin1/images/swordpro.jpg[/img] </div> {if $main eq "catalog" and $current_category.category eq "" and $all_languages_numba gt 1} <FORM action="home.php" method=GET name=sl_form> <SELECT name=sl onChange="javascript: document.sl_form.submit()"> {section name=ai loop=$all_languages} <OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION> {/section} </SELECT> </FORM> {elseif ($usertype eq "P" or $usertype eq "A") and $login} <table border=0 cellpadding=0 cellspacing=0> <FORM action="{$smarty.server.REQUEST_URI}" method=POST name=asl_form> <tr> <td>Current language:</td> <td> <INPUT type=hidden name="redirect" value="{$smarty.server.QUERY_STRING}"> <SELECT name=asl onChange="javascript: document.asl_form.submit()"> {section name=ai loop=$all_languages} <OPTION value="{$all_languages[ai].code}"{if $current_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION> {/section} </SELECT> </td></tr> </FORM> </table> {else} {/if} </TD> </TR> <TR> <TD> {if $usertype eq "C"} { include file="customer/search.tpl" } {else} {/if} </TD> < <P align=right><SPAN class=NumberOfArticles>{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}</SPAN></P> </TD> </TR> </TABLE>


and heres the result.....

http://swordpro.com.au/xcart/customer/

Its just that '<' that needs movin. has anybody got any suggestions
( apart from me doing some HTML courses )
Reply With Quote
  #5  
Old 07-22-2003, 11:42 AM
 
magnumkp magnumkp is offline
 

eXpert
  
Join Date: Apr 2003
Location: England
Posts: 304
 

Default

There is an extra < here:
Quote:
</TD>
<


<P align=right><


You probably want to get rid of both of those
's because you start a new paragraph underneath, try it and see.

Don't worry about posting questions that you think are stupid, no question is stupid if you don't know the answer.
Reply With Quote
  #6  
Old 07-22-2003, 12:26 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

code should be:

Code:
{* $Id: head.tpl,v 1.28 2003/04/24 09:50:33 svowl Exp $ *} <TABLE class=HeadBox width=100% leftmargin="0" topmargin="0"> <TR> <td align="center">[img]http://www.swordpro.com.au/xcart/skin1/images/swordpro.jpg[/img] </td> <td> {if $main eq "catalog" and $current_category.category eq "" and $all_languages_numba gt 1} <FORM action="home.php" method=GET name=sl_form> <SELECT name=sl onChange="javascript: document.sl_form.submit()"> {section name=ai loop=$all_languages} <OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION> {/section} </SELECT> </FORM> {elseif ($usertype eq "P" or $usertype eq "A") and $login} <table border=0 cellpadding=0 cellspacing=0> <FORM action="{$smarty.server.REQUEST_URI}" method=POST name=asl_form> <tr> <td>Current language:</td> <td> <INPUT type=hidden name="redirect" value="{$smarty.server.QUERY_STRING}"> <SELECT name=asl onChange="javascript: document.asl_form.submit()"> {section name=ai loop=$all_languages} <OPTION value="{$all_languages[ai].code}"{if $current_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION> {/section} </SELECT> </td></tr> </FORM> </table> {else} {/if} </TD> </TR> <TR> <TD> {if $usertype eq "C"} { include file="customer/search.tpl" } {else} {/if} </TD> <td align="right" class=NumberOfArticles> {insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online} </TD> </TR> </TABLE>

hth - stick with it you will get used to xcart
__________________
ex x-cart guru
Reply With Quote
  #7  
Old 07-22-2003, 07:46 PM
  supanewb's Avatar 
supanewb supanewb is offline
 

Advanced Member
  
Join Date: Jul 2003
Location: Australia
Posts: 51
 

Default

Thanks alot it works perfectly I will definately stick with it and get this site working eventually.
Reply With Quote
  #8  
Old 07-22-2003, 10:08 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

Sorry I sshould have said that the offending item was the lack of a <td> for the image cell. plus a couple of other minor things although they could well have been in the original xcart code.
__________________
ex x-cart guru
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 11:37 AM.

   

 
X-Cart forums © 2001-2020