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

Excluding Welcome_tpl

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

Advanced Member
  
Join Date: Jan 2003
Posts: 43
 

Default Excluding Welcome_tpl

High Ive been trying to sort out some things on my site could you please help.

I would like to take out the customer welcome tpl altogether Ive narrowed it down I think to customer_main_tpl but cant actually get it to go ??

Thanks
__________________
Below is old I will update soon
X-Cart version Pro 4.1.6
PHP 4.3.11
MySQL server 5.0.37-log
MySQL client 5.0.18
Web server Apache
OS Linux
Perl 5.008
XML parser 1.95.6

MODS
x-cart "DSEFU" balinor endorsed ( total Must ! for SEO)
bcsengineering "ad banner" (awsome mod fantastic support)
X-Configurator ( tricky but awsome when mastered)
Reply With Quote
  #2  
Old 02-01-2005, 11:30 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Please post your x-cart version number in your signature.

To remove the welcome message, just remove or comment this line of code out of home_main.tpl:

Code:
{elseif $main eq "catalog" and $current_category.category eq ""} {include file="customer/main/welcome.tpl" f_products=$f_products}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-01-2005, 09:22 PM
 
daniel.milosevic daniel.milosevic is offline
 

Member
  
Join Date: Jan 2005
Posts: 16
 

Default

Silly Question? How do you exactly comment in the TPL files?
Thanks, a learning newb.
__________________
Daniel Milosevic

X-Cart Gold 4.0.11
Reply With Quote
  #4  
Old 02-01-2005, 10:41 PM
  Stephen Hatton's Avatar 
Stephen Hatton Stephen Hatton is offline
 

Senior Member
  
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 182
 

Default Comments in templates and php files

Hi Daniel


I comment a .tpl file with "open curly bracket" "star" Put Your Comment Here or to disable a line of the template file "star" " close curly bracket"

eg:
{* Modified by SWH on 050127 *}
{* //skin1/customer/main/register.tpl *}
{* Original Version embedded in comments after the modified lines labelled SWH *}

If you wish to comment out multiple lines:
{*
Line 1
Line 2
Line 3
*}

Make sure that there are no {* or *} (other comments) inside your commented area. Otherwise it will run everything from *} to the last *}.

I also put a marker on the lines I have changed in the .tpl files - I use:
{* SWH *}

That way I can find changes quickly inside the files and from outside the files.

Note - any changes to the files will give issues in upgrades (if that file requires upgrading). See my post for further help:
http://forum.x-cart.com/viewtopic.php?t=14640


**********************************************
For .php files I use the following method to comment files:

/* Modified by SWH 041222 */
/* yoursite/include/func.php file being modified */
/* Original Version embedded in comments after the modified lines labelled SWH */

I then comment at the end of lines with
// SWH
for the lines I have modified.
If you wish you can put a
# at the start of the line to comment out the whole line (eg. disable a line of code).

For program line codes make sure that you have a semicolon terminating the line with no spaces after it (or you will get a blank screen & php errors).


I hope this helps you and others. Remember to backup often and keep a copy of the original file to use for restoring (in case Murphy should visit!).

Regards
Ing. Stephen Hatton
__________________
Apache Linux V1.3.33
PERL version: 5.8.0
PHP version: 4.3.11
MySQL version: 4.0.22-standard
X-cart V4.0.17: Addons: X-PConfig, X-Giftreg, X-Fancycat, X-AOM
Reply With Quote
  #5  
Old 02-02-2005, 04:44 AM
  Chango1337's Avatar 
Chango1337 Chango1337 is offline
 

Advanced Member
  
Join Date: Jan 2003
Posts: 43
 

Default

Thank you very much it worked perfectly
__________________
Below is old I will update soon
X-Cart version Pro 4.1.6
PHP 4.3.11
MySQL server 5.0.37-log
MySQL client 5.0.18
Web server Apache
OS Linux
Perl 5.008
XML parser 1.95.6

MODS
x-cart "DSEFU" balinor endorsed ( total Must ! for SEO)
bcsengineering "ad banner" (awsome mod fantastic support)
X-Configurator ( tricky but awsome when mastered)
Reply With Quote
  #6  
Old 02-02-2005, 10:51 AM
 
daniel.milosevic daniel.milosevic is offline
 

Member
  
Join Date: Jan 2005
Posts: 16
 

Default

Thanks for the info, that is exactly why I need to comment my tpl and php files.

Theres alot of comments that need to be added to all of the template files.

Thanks again for the info.
__________________
Daniel Milosevic

X-Cart Gold 4.0.11
Reply With Quote
  #7  
Old 02-02-2005, 02:19 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Hey Stephen, it would be great if you could write a seperate post for this and have the mods move it to the FAQ forum. This question gets asked MILLIONS of times.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 06:18 AM.

   

 
X-Cart forums © 2001-2020