Code:
Open smarty.php:
**************************************************************************************
$smarty->assign('ImagesDir', $xcart_web_dir . $smarty_skin_dir . '/images');
$smarty->assign('SkinDir', $xcart_web_dir . $smarty_skin_dir);
**************************************************************************************
Replace with this:
**************************************************************************************
/ WCM - MaxCDN Implementation
if ($_SERVER['HTTPS'] != 'on')
{
$smarty->assign('ImagesDir', "http://CdnUrl.example.com" . $smarty_skin_dir . '/images');
$smarty->assign('SkinDir', "http://CdnUrl.example.com" . $smarty_skin_dir);
}
else
{
$smarty->assign('ImagesDir', $xcart_web_dir . $smarty_skin_dir . '/images');
$smarty->assign('SkinDir', $xcart_web_dir . $smarty_skin_dir);
}
**************************************************************************************
This only calls the common_files images though. Looking for better integration.