Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

MaxCDN Content Delivery Solution?

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #41  
Old 06-23-2011, 09:18 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: MaxCDN Content Delivery Solution?

Also on 4.4, if you are using the css and js optimizer your site will probably not render properly with maxcdn implemented in this way. You would want to optimize the css and js, create a standalone file, and modify your templates to link to that standalone file instead of all the tons of files that x-cart now uses (not an easy task).
Reply With Quote
  #42  
Old 06-23-2011, 10:05 AM
  inkcarts's Avatar 
inkcarts inkcarts is offline
 

Advanced Member
  
Join Date: Sep 2008
Location: Crowley Louisiana
Posts: 45
 

Default Re: MaxCDN Content Delivery Solution?

Great. Thank you! I am also curious about the maxcdn handles the new css and javascript optimization in 4.4. I'm implementing a site today, so we'll see. . .
__________________
Lyn Askin
X-Cart 4.2.3
MICR Toner
Toner Cartridges
X-Cart Search Engine Optimization
Reply With Quote
  #43  
Old 06-27-2011, 08:38 AM
  inkcarts's Avatar 
inkcarts inkcarts is offline
 

Advanced Member
  
Join Date: Sep 2008
Location: Crowley Louisiana
Posts: 45
 

Default Re: MaxCDN Content Delivery Solution?

Ok. I've been working on installing maxcdn for a 4.4 site. However, i am using the "speed-up" settings in the admin for javascript and css.

Any idea where i might find the code to change it so those speed up files are also pulled from the cdn? Or is that even possible?

Thanks in Advance!

P.S. If I find them myself first. . . i'll post it here.
__________________
Lyn Askin
X-Cart 4.2.3
MICR Toner
Toner Cartridges
X-Cart Search Engine Optimization
Reply With Quote
  #44  
Old 06-27-2011, 04:44 PM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default Re: MaxCDN Content Delivery Solution?

On 4.1.12 in func.files.php

if (($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/home/user/public_html/images/','http://skin1.mydomain/images/',$image_path);
return str_replace('$http_location','',$image_path);
}

Works Great, BUT, I need a different scheme for product and category pages. I've tried. for example.

if ($productid AND ($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/home/user/public_html/images/','http://skin1.mydomain.com/images/',$image_path);
return str_replace('$http_location','',$image_path);
}

and dozens of other possible variables, it would appear they are not available in func.files.php. Anybody have a solution?
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #45  
Old 06-28-2011, 06:09 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default Re: MaxCDN Content Delivery Solution?

Quote:
Originally Posted by DogByteMan
On 4.1.12 in func.files.php

if (($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/home/user/public_html/images/','http://skin1.mydomain/images/',$image_path);
return str_replace('$http_location','',$image_path);
}

Works Great, BUT, I need a different scheme for product and category pages. I've tried. for example.

if ($productid AND ($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/home/user/public_html/images/','http://skin1.mydomain.com/images/',$image_path);
return str_replace('$http_location','',$image_path);
}

and dozens of other possible variables, it would appear they are not available in func.files.php. Anybody have a solution?

I guess I should elaborate, I feel I might not of been clear enough. What I want to accomplish is separate sub domains for images based on whether the customer is on a product page, a category page, or the home page. In func.files there is no code to make this available. I want to know, with the least amount of overhead, how to make something available to make the distinctions.
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #46  
Old 07-03-2011, 07:22 AM
 
Ajay Ajay is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 50
 

Default Re: MaxCDN Content Delivery Solution?

in 4.4 has anyone figured out what files need to be changed so product detailed images, thumbnails are served from maxcdn?
__________________
Xcart Pro version 4.4.3
Reply With Quote
  #47  
Old 07-03-2011, 02:59 PM
 
Ajay Ajay is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 50
 

Default Re: MaxCDN Content Delivery Solution?

The code below only partially works. If there is an image file directly mentioned in your template files, that gets converted. But all the image files, referenced in CSS as backaground images etc and once you aggregate css and javascript do not work. they remain to be served from original location.

I used to have MAx CDN working perfectly fine in 4.2. Now since 4.4 still struggling to figure out.

Quote:
Originally Posted by Jon
It's a bit different on 4.4 but the principle is the same, just the exact code is a bit different. Probably this would work:

FIND:

Code:
$smarty->assign('ImagesDir', $xcart_web_dir . $smarty_skin_dir . '/images'); $smarty->assign('SkinDir', $xcart_web_dir . $smarty_skin_dir);

REPLACE WITH:

Code:
// WCM - MaxCDN Implementation if ($_SERVER['HTTPS'] != 'on') { $smarty->assign('ImagesDir', 'http://CdnUrl.example.com//images'); $smarty->assign('SkinDir', 'http://CdnUrl.example.com/'); } else { $smarty->assign('ImagesDir', $xcart_web_dir . $smarty_skin_dir . '/images'); $smarty->assign('SkinDir', $xcart_web_dir . $smarty_skin_dir); } // WCM - MaxCDN Implementation
__________________
Xcart Pro version 4.4.3
Reply With Quote
  #48  
Old 11-02-2011, 06:49 PM
 
qinwubi qinwubi is offline
 

Member
  
Join Date: Jul 2006
Posts: 16
 

Default Re: MaxCDN Content Delivery Solution?

I did what's in the original thread. But it doesn't work for product thumbnails and detailed images, i.e, images/T/..., images/D/..., etc. Am I missing anything?

I'm running X-Cart 4.3.2.
__________________
all the best,
Wubi
:::::::::
xcart gold v4.3.2 with lots of customizations
Linux
Php 5.2.4
MySQL: 4.1.22-standard
Reply With Quote
  #49  
Old 11-15-2011, 02:18 AM
 
BBM_ BBM_ is offline
 

X-Adept
  
Join Date: May 2010
Location: Australia
Posts: 595
 

Default Re: MaxCDN Content Delivery Solution?

Quote:
Originally Posted by handsonwebhosting
We use MaxCDN on our web hosting site (http://www.handsonwebhosting.com) and have done so for the past 4 or 5 months. The reaction from our user base was instantly noted and people complementing on the faster speeds from various locations. We're waiting on the Edge servers to come online in Australia as we have a big client base in Australia & New Zealand, but it's prove a very successful launch within the United States and our European customers.

Any idea if this has been rolled out downunder yet at all?
__________________
Multiple instances of X-cart
Reply With Quote
  #50  
Old 11-15-2011, 06:17 AM
  bigredseo's Avatar 
bigredseo bigredseo is offline
 

X-Man
  
Join Date: Oct 2002
Location: Omaha, NE, USA
Posts: 2,364
 

Default Re: MaxCDN Content Delivery Solution?

Nothing in Australia yet that I know of. There were plans to expand, but nothing seems to have been done to move forward on this.

I know that the branch for Asia was a long time coming, but they now do have a location in Singapore.

I've not even had an email about if they're doing beta tests in Australia yet, but I'll drop an email to my contacts and see what I can find out for you.
__________________
Conor Treacy - Big Red SEO - @bigredseo
Search Engine Optimization & Internet Marketing - We Bring Your Website Out Of Hiding!
If you can't be found on Google, Bing or Yahoo, you pretty much don't exist on the Internet.
Omaha SEO Office with National & Local SEO Services
Hourly Consulting - great for SEO Disaster Recovery, Audits and DIY Guidance
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:19 PM.

   

 
X-Cart forums © 2001-2020