| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#41
|
|||||||
|
|||||||
Re: MAX cdn
Sorry to keep posting -- hoping someone jumps in on this...
I was not able to get the detailed images (colorbox) working. I tried editing these files, using the smarty 'replace' command as used elsewhere: /common_files/modules/Detailed_Product_Images/product_images.tpl /common_files/modules/Detailed_Product_Images/colorbox_image.tpl /common_files/modules/Detailed_Product_Images/popup_image.tpl and replaced {$i.image_url|amp} with Code:
Maybe this needs a php solution after all?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#42
|
|||||||
|
|||||||
Re: MAX cdn
OK -- another roadblock:
Images that are hard coded into the product description... Since you can't use {$AltImagesDir} in the product description, I use a dedicated directory for all images that need to be hardcoded for the product description: /product-images/ So I need to figure out how to get all of these images from the product description to the CDN I guess it's gonna have to be the good old, <img src="http://cdn.domain.com/product-images/image.jpg" />, right? Fortunately, I only have 20 product pages - and only 8 needed edits. Took 5 minutes. And these pages now load faster. Just like that. 3 steps forward, 2 steps back.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#43
|
|||||||||
|
|||||||||
Re: MAX cdn
Quote:
Like in this thread: http://forum.x-cart.com/showthread.php?t=21027&highlight=eval
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#44
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
Thanks, Mike -- but I am not using variables here... just a path to an image directory. And there is no need to make a var out of this since I hard coded the path initially. Thanks for the suggestion though... The more I edit templates integrating the CDN, the more I realize this is a much needed part of the core code that should be a checkbox and a one line text input. Once you see the metrics comparing stock xcart vs. xcart with CDN, your jaw will drop. You can spend days (weeks) optimizing php code and templates, or you can spend minutes turning on the CDN. It's that big a deal. In my case more than 50% reduction in page load time!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
#45
|
|||||||
|
|||||||
Re: MAX cdn
What is the best practice for MaxCDN settings:
SEO robots.txt -- disabled? But is that logical? I want my images indexed. But if the URL for the image is a cache file, that's not good... Set Default Cache Time: 7 days? Longer? Product images are static and rarely change. Homepage banner images can change daily, or not. Is there a best practice for this? What does Google see when it finds cached images? Thinking out loud. Thanks, J
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#46
|
|||||||
|
|||||||
Re: MAX cdn
Still trying to solve this -- anyone have any ideas?
Quote:
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#47
|
|||||||
|
|||||||
Re: MAX cdn
What about getting the product images to show up using the CDN in the root images folder T and P?
__________________
Version 4.5.4 |
|||||||
#48
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
For the T thumbs, I followed the suggestion from post #31 Then added the https code as follows: I used this code for the Thumbs (trapping for https): Code:
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#49
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
I have that set, but its not showing. For Thumbnails, category images, or detailed. Anything else im missing?
__________________
Version 4.5.4 |
|||||||
#50
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
Did you set the CNAME record in cPanel? Are you using cdn.domain.com as an alias for "company.company.netdna-cdn.com" ? If you have it set correctly, if you view your page source, almost immediately, what was: Code:
Code:
Are you seeing anything sent to the cdn?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|