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

Strange 'Include' problem

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-26-2007, 06:49 AM
 
obaluba2 obaluba2 is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 152
 

Default Strange 'Include' problem

Hi,

On my homepage, or in home.tpl I have the page hack so the featured product appears on the right in a box like 'authentication' or 'your cart' which works fine.

I have also got all the manufacturers listed on the homepage (in the middle where 'featured products' would have been originally..

Now this works too but only if i set the featured product to be switched off...if i set it to be visible then the list of manufacturers disappears... really weird!

If someone could take a quick look at my code I would appreciate it!

Code:
{* $Id: home.tpl,v 1.88.2.4 2006/10/13 10:41:21 svowl Exp $ *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> {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|strip_tags|escape} {if not %position.last%} :: {/if} {/section} {else} {section name=position loop=$location step=-1} {$location[position].0|strip_tags|escape} {if not %position.last%} :: {/if} {/section} {/if} </title> {include file="meta.tpl" } <link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" /> </head> <body{$reading_direction_tag}{if $body_onload ne ''} onload="javascript: {$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 width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="VertMenuLeftColumn"> <p>{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> {include file="Services.tpl" } <br /> {/if} {include file="payment_type.tpl" } <img src="{$ImagesDir}/spacer.gif" width="150" height="1" alt="" /> </p> </td> <td valign="top" style="background-repeat: no-repeat; background-position:top center; background-image: url({$ImagesDir}/background.gif)"> <!-- central space --> <p>{include file="dialog_message.tpl"}<br /> {include file="location.tpl"}{include file="customer/home_main.tpl"} <!-- /central space --> {include file="modules/Manufacturers/customer_manufacturers_list.tpl"} </p> <p> <br /> </p></td> <td class="VertMenuRightColumn"> {include file="menu_featured.tpl"}{if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y' && $sns_collector_path_url ne ''} {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}<br /> {include file="customer/menu_cart.tpl" } <br /> {if $login eq "" } {include file="auth.tpl" } {else} {include file="authbox.tpl" } {/if} {include file="news.tpl" } {if $active_modules.XAffiliate ne ""} <br /> {include file="partner/menu_affiliate.tpl" } {/if} {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" alt="" /> </td> </tr> </table> {include file="rectangle_bottom.tpl" } </body> </html> {/if}
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1
Reply With Quote
  #2  
Old 02-26-2007, 01:28 PM
 
obaluba2 obaluba2 is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 152
 

Default Re: Strange 'Include' problem

anyone have any ideas?
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1
Reply With Quote
  #3  
Old 02-27-2007, 05:09 AM
  Ene's Avatar 
Ene Ene is offline
 

X-Cart team
  
Join Date: Aug 2004
Posts: 907
 

Default Re: Strange 'Include' problem

Unfortunately there is not enough information to find out the exact cause of this problem.
I suggest you open a support ticket in the HelpDesk and give FTP/SSH access to your server. Our support team will do necessary troubleshooting.
__________________
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid: http://www.ecwid.com/ (since Sept 2009)

ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager - X-Cart hosting
ex-X-Cart Technical Support Engineer


Note: For the official guaranteed tech support services please turn to the Customers HelpDesk.
Reply With Quote
  #4  
Old 02-27-2007, 05:14 AM
 
obaluba2 obaluba2 is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 152
 

Default Re: Strange 'Include' problem

I did so this morning, thanks for looking Ene!
__________________
4.0.1.18 & 4.1.6 & 4.1.9 & 4.1.11 & 4.2.2 & 4.3.2, 4.6.1
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:01 PM.

   

 
X-Cart forums © 2001-2020