X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Smarty.php Mod to Remove all UN-NECESSARY White Space (https://forum.x-cart.com/showthread.php?t=7920)

TelaFirma 04-17-2005 04:27 PM

Somewhere I read (not exactly where) on where the correct place is to add this to the smarty.php file so that it does not mess with the HTML emails.

At the very end of the file is the email handler:
Code:

#
# Smarty object for processing mail templates
#
$mail_smarty = $smarty;


It should be added after this:

Code:

#
# Smarty object for processing mail templates
#
$mail_smarty = $smarty;

$smarty->load_filter("output","trimwhitespace");


CopperB 04-17-2005 05:42 PM

Thanks for the response.

That's where I did add the code to the smarty.php file but it caused problems with the images on the website. Also gave other smarty errors.

Just like NuAlpha mentioned.


All times are GMT -8. The time now is 08:17 AM.

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