Thread: MAX cdn
View Single Post
  #90  
Old 05-12-2013, 07:04 AM
 
DavyMac DavyMac is offline
 

eXpert
  
Join Date: Apr 2007
Location: Poole, UK
Posts: 333
 

Default Re: MAX cdn

Quote:
Originally Posted by carpeperdiem
if https is NOT on, then use the CDN
if https is on, use the default xcart server

I got this code from maxcdn support
it works for me

I'm asking specifically about these two lines:
PHP Code:
$smarty->assign("AltImagesDir",    "http://cdn.domain.com/skin/books_and_magazines/images"); 
$smarty->assign("AltSkinDir",    "http://cdn.domain.com/skin/books_and_magazines"); 

AltImagesDir and AltSkinDir were not present before the edit (unlike ImagesDir and SkinDir), so if they are new where are they being used? I'm guessing they are in fact used for your chosen skin, but that would mean the assignment exists elsewhere since it did not reside in smarty.php - in which case don't we need to delete the original assignment?

If I were using an XCart template then I would simply trust your post and include the code verbatim, but I'm using thexcartstore's xtreme_gear template and I've yet to workout how to include their template resources on CDN. It's complicated more because I have a different template for mobiles - so I'm not sure what to put for AltImagesDir and AltSkinDir.
__________________
X-Cart GOLD Plus v4.5.4
CDSEO Pro
ewdhosting Dedicated Server
Dedicated SSL
Stone Edge OM
Reply With Quote