Great guide and confirmed working
One thing though, for step 4...
Quote:
$current_location = $current_location;
|
^ Did not exist for me, so I replaced...
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))));
With...
Code:
// image_path is an locally placed image
return 'http://cdn.domain.com' . str_replace(XC_DS, '/', substr($image_path, strlen(preg_replace('/' . preg_quote(XC_DS, '/') . '$/S', '', $xcart_dir))));
(This is for v4.5.4 Gold)