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

rectangle_top_cust.tpl vs head.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-30-2005, 09:13 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default rectangle_top_cust.tpl vs head.tpl

Why do is there another header file besides skin1/head.tpl called rectangle_top_cust.tpl ?

I am trying to have only one include and use only one header throughout the site. For some reason I was able to include my header into head.tpl but am having difficulties achieving the same result when trying to tweak rectangle_top_cust.tpl...
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #2  
Old 09-30-2005, 09:21 AM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

Can someone tell me what does this code do and would I be able to survive without it?

Code:
{ include file="common_js.tpl"} {if $config.Adaptives.isJS eq '' && $adaptives_action ne ''} <FORM action="{$adaptives_action}" method="post" name="adaptiveform"> <INPUT type="hidden" name="{$XCARTSESSNAME}" value="{$XCARTSESSID}"> <INPUT type="hidden" name="send_isJS" value="Y"> <INPUT type="hidden" name="send_browser" id="send_browser" value=""> </FORM> <SCRIPT type="text/javascript" language="JavaScript 1.2"> {include file="browser_identificator_js.tpl"} document.getElementById('send_browser').value = browser_identificator(); document.adaptiveform.submit(); </SCRIPT> {/if}
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
  #3  
Old 10-04-2005, 12:09 PM
  STORed's Avatar 
STORed STORed is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 69
 

Default

I'm trying to include one header throughout the site. I stripped my head.tpl to look like this:

Code:
{ include file="/incl/header.php" }

Works great, but now I see there's a bunch of pages that use rectangle_top_cust.tpl

Now, no matter what i do with that page, my head does not display. By the way I keep whatever hidden fields with the form and JS snippet.

Any suggestions?
__________________
Thanks.

X-Cart Gold 4.0.14 on Linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:48 PM.

   

 
X-Cart forums © 2001-2020