View Single Post
  #16  
Old 08-06-2017, 04:27 PM
  neonrider's Avatar 
neonrider neonrider is offline
 

X-Adept
  
Join Date: Oct 2005
Posts: 750
 

Default Re: HOW TO REMOVE "Powered by X-Cart ecommerce shopping cart software"

Quote:
Originally Posted by carpeperdiem
2 suggestions:

1. instead of editing inside x-cart, you should seriously consider using an FTP client with integrated text editor.

2. Instead of deleting template code, it's always a good idea to comment the code out while testing - so you can easily restore if something doesn't work as expected. In a template file, to comment something out, surround the code with {* i want to comment all of this code out *}

so instead of deleting the prnotice.tpl include, it would looks like this:

Code:
{* <div class="left">{include file="main/prnotice.tpl"}</div> *}

Using comments helps you understand the edits you made - gives you an easier path to restore if need be, and in case someone else is looking at the code someday, the next person will see what you did (even if the next person is you!). It's very good practice to comment the daylights out of your code edits. You may remember what you did and why today, but come back in a year or 3 years -- WTF did I do that? Ah... it's commented.

There are different ways to comment templats (smarty) vs. php or html files. This method is for smarty templates (anything in x-cart that is .tpl)

HTH

J

I commented my code out on X-cart 4.7.8 but it did not change anything:

{* <td class="Bottom" align="left">
{include

file="main/prnotice.tpl"}
</td>
*}

How do I EDIT the text (I am able to edit the URL within it) instead of commenting out or deleting it?
__________________
X-Cart Gold - 4.7.12
Reply With Quote