Figured this out finally. If you are running 4.6.x, for
FOR IMAGES (W, D, P, T images in file system) skip step 4 in post #57, then vary step 7 as follows:
file: /include/func/func.files.php
FIND:
Code:
// image_path is an locally placed image
return $current_location . str_replace(XC_DS, '/', substr($image_path, strlen(preg_replace('/' . preg_quote(XC_DS, '/') . '$/S', '', $xcart_dir))));
REPLACE WITH:
Code:
/** MaxCDN support */
if ($_SERVER['HTTPS'] != 'on') {
return 'http://cdn.domain.com' . str_replace(XC_DS, '/', substr($image_path, strlen(preg_replace('/' . preg_quote(XC_DS, '/') . '$/S', '', $xcart_dir))));
$current_location = $current_location;
} else {
return $current_location . str_replace(XC_DS, '/', substr($image_path, strlen(preg_replace('/' . preg_quote(XC_DS, '/') . '$/S', '', $xcart_dir))));
}
/* END MaxCDN support */