Quote:
Originally Posted by totaltec
I don't have Max CDN but to include the $AltSkinDir and $AltImagesDir it seems that you would need to find:
PHP Code:
if (@file_exists($alt_skin_dir . XC_DS . 'css' . XC_DS . 'altskin.css')) { $smarty->assign('AltImagesDir', $alt_skin_info['web_path'] . '/images'); $smarty->assign('AltSkinDir', $alt_skin_info['web_path']); }
and replace with:
PHP Code:
// WCM - MaxCDN Implementation if (@file_exists($alt_skin_dir . XC_DS . 'css' . XC_DS . 'altskin.css')) { if ($_SERVER['HTTPS'] != 'on') { $smarty->assign('AltImagesDir', "http://CdnUrl.example.com" . $alt_skin_info['web_path'] . '/images'); $smarty->assign('AltSkinDir', "http://CdnUrl.example.com" . $alt_skin_info['web_path']); } else { $smarty->assign('AltImagesDir', $alt_skin_info['web_path'] . '/images'); $smarty->assign('AltSkinDir', $alt_skin_info['web_path']); } }
Again, just shooting in the dark. Look correct?
|
Hi Mike,
I have Artistictune business as my template and my version is x-cart Pro 4.4.2.Please help me how to add my skin,images and template through max cdn.After adding this codes the whole site breaks.
Please provide me the modified smarty.php for my 4.4.2 Pro.
Thanks.