Where Is The Http://fonts.googleapis.com Link In Cs-Cart Files

Hi all,

I need the check and change http://fonts.googleapis.com link in cs-cart file to support more extended Latin characters. Anybody knows which file or files keep this link?


Sweet. I've been looking for that too.

Now another question. Everytime the cart goes to SSL, the Google font is removed. I changed the file to make it work, but it still switches out of Google Fonts.

Any ideas? Is it a setting?



In the compiled CSS, on a default 4.1.1 install using 'Greeny' skin:-

@font-face {
font-weight: normal;
font-style: normal;
font-family: 'ALSRubl-Arial';
src: url('../../../../../../../../design/themes/basic/media/fonts/alsrubl-arial-regular.eot');
src: url('../../../../../../../../design/themes/basic/media/fonts/alsrubl-arial-regular.eot?#iefix') format('../media/fonts/embedded-opentype'),url('../../../../../../../../design/themes/basic/media/fonts/alsrubl-arial-regular.woff') format('woff'), url('../../../../../../../../design/themes/basic/media/fonts/alsrubl-arial-regular.ttf') format('truetype'), url('../../../../../../../../design/themes/basic/media/fonts/alsrubl-arial-regular.svg#ALSRublArialRegular') format('svg');

The paths for the font location do not change between http and https - however, I do see that in fact, under https, the web fonts are not displayed, instead, it falls back to sans font.

The path should also be /…/… (ie. begin with a slash) to make the path relative to the root. That may be one cause. Where the compiling and manipulation of file paths for the compressed CSS file is controlled I don't know as I haven't looked too far into it just yet. Obviously in the original .css or .less where the “font-face” is declared, it will have a path relative to /design/themes/basic/css/… but this will be changed in the compiled CSS file because it's in /var/cache/… why that would make any odds, I'm not entirely sure, but it appears it does when using http/https (both protocols should be relative to the root anyway?!).

Try finding the entire eot/woff/ttf/svg file path (ie. http://yourstore.com…e/your-font.eot) and see if you can access it with HTTP and HTTPS.

Is your SSL certificate mismatched to the domain? That may be another cause.

Also, you may have the header being sent for the font file - “Cache-Control” header - as “no-cache”, Internet Explorer (and perhaps other browsers) does not like this. I am seeing the same problem in Firefox too, so although this may be dismissed as a cause, it could be that Firefox is affected by this. Internet Explorer certainly is though.

You could try manually editing (via FTP or similar) the compiled CSS file and change the file paths for the font files to include a trailing slash at the beginning of the path.

Update:- fixed in Firefox under http and https, not tested other browsers yet.

Add in .htaccess

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf

Do you just put that at the bottom of the .htaccess file? I couldn't get it to work.

I just tossed the Google font code from Google into the custom CSS thing in the theme editor. I just put in:

@import url(://fonts.googleapis.com/css?family=Oxygen:400,300,700);

I'd rather have this fixed the correct way, but at least it works now.



I put that in .htaccess just below:-

DirectoryIndex index.html index.php

I've seen that fix being applied before, but I do wonder if this issue is intentional on CS-Cart's part, because the checkout area does not use web fonts regardless if http/https.

Is a solution to the Google Fonts + HTTPS on IE possible within CS-Cart? Still seems to be throwing that security alert in CS-Cart 4.1.5

How can I remove these fonts?

I want to use the normal fonts only.