| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Excluding Welcome_tpl | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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) |
|||||||||
#2
|
|||||||
|
|||||||
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:
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Silly Question? How do you exactly comment in the TPL files?
Thanks, a learning newb.
__________________
Daniel Milosevic X-Cart Gold 4.0.11 |
|||||||
#4
|
|||||||||
|
|||||||||
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 |
|||||||||
#5
|
|||||||||
|
|||||||||
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) |
|||||||||
#6
|
|||||||
|
|||||||
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 |
|||||||
#7
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|