X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Editing Template Question (https://forum.x-cart.com/showthread.php?t=55810)

Duramax 6.6L 10-02-2010 02:45 PM

Editing Template Question
 
When editing a template, is it better to comment out the line of code or just totally remove the line of code? Could you also explain why either one is better.

jprevost 10-02-2010 04:07 PM

Re: Editing Template Question
 
I prefer to simply comment out so I have a bit of history of what was there. That would be for mods and functional changes more than anything. As far as design, we always have the backup to reference later if needed.

cflsystems 10-02-2010 04:20 PM

Re: Editing Template Question
 
Comment it out. As Jonathon said keep it as reference. The commented out code doesn't affect templates or smarty engine or load times as it is simply ignored

Duramax 6.6L 10-02-2010 05:36 PM

Re: Editing Template Question
 
Thank you, Thats what I was doing, but just wondered if it would slow the store down.

Onion Ninja 10-03-2010 02:59 AM

Re: Editing Template Question
 
I think it probably slows it down very very little, as it is just text.


All times are GMT -8. The time now is 02:11 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.