| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#31
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
The file is /skin/common_files/product_thumbnail.tpl. That's where I found the line to edit and it works perfectly! Find this near line 9: Code:
And replace with this: Code:
|
|||||||
|
#32
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
Like that it works great but when you go https:// the images are gone which i understand but i tried this and the images come up with a path like this any ideas? https://www.waterlesscarwashproducts.com/if%20($_SERVER%5B%27HTTPS%27%5D%20!=%20%27on%27)%7 Delse%7D here is how i tried to work around the ssl like i did in the rest of the code changes i made Code:
__________________
Xcart Version 4.5.2 CDSEO Pro Remember Anonymous carts Social Bookmarks Cart Abandonment catagory map mobile mod product map XCMS Auth.net DPM |
|||||||
#33
|
|||||||
|
|||||||
Re: MAX cdn
I hadn't even noticed that! The only place you'd see it on my site is in the cart during checkout, and now I see thumbnails do not load due to HTTPS. Maybe someone else can chime in on this?
|
|||||||
#34
|
|||||||
|
|||||||
Re: MAX cdn
__________________
xcartmods.co.uk |
|||||||
|
#35
|
|||||||
|
|||||||
Re: MAX cdn
Is everyone happy with MaxCDN and the integration as discussed in this thread?
Is using the smarty replace technique the best/fastest/most efficient way to get the data to the CDN? My site is well under 1TB/year in bandwidth -- so I was thinking the basic plan is sufficient. Is one "zone" sufficient for a North American site? The maxcdn FAQ doesn't really discuss "zones". My server is in California (Hands-on VPS) and my business is 97% US and 3% Canada -- we haven't advertised or localized for other countries yet. We are not pushing video (we use embedded youtube for all video) Anyone using more than one zone? Why? Gonna try this now -- any other guidance from those using MaxCDN? Thanks. Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#36
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
file: /common_files/product_thumbnail.tpl Code:
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#37
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
Slight problem here that hopefully someone can help solve... This code works -- until you go https at checkout, and then it's a mess (css disappears). I tried the following, but this cased a server error: PHP Code:
Hmm... must be my php syntax, right? Isn't this how to do an if? What am I missing? Thanks! Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#38
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
I used Bootstrapper50. Thanks! This is a no-brainer.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#39
|
|||||||
|
|||||||
Re: MAX cdn
Quote:
Unfortunately, 4.5.4 is different enough that you can't copy/paste this. I am working on assembling all edits for 4.5.4 and I'll re-post in one place. many good suggestions in this thread. Most work, some don't. Thanks to all for contributions.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#40
|
|||||||
|
|||||||
Re: MAX cdn
Am I doing this backwards?
Is there a net difference in speed by setting the path to the cdn images in php files vs. templates? For example, I used this code for the Banner System Images: Code:
I used this code for the Thumbs (trapping for https): Code:
I will now do similar "replace" code for variant and detailed images, right? What else am I missing (besides the js and css) ? Does it hurt site speed and performance to set the CDN path in templates vs. php files? This could be a very useful feature that X-Cart SHOULD have as default -- supporting a CDN with a simple 1 field form entry (cdn.domain.com) and a switch to turn it on. As opposed to editing 6 or more files. But as long as we know the list of files to edit, no worries... Gonna keep editing...
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|