B
B
Belkin2018-05-29 01:11:53
opencart
Belkin, 2018-05-29 01:11:53

How to force JS and CSS to be loaded from separate domain in Opencart 2.3?

I want to load statics from a separate domain.
I figured out the pictures, changed the file:
catalog/model/tool/image.php
here it is:

return $this->config->get('config_ssl') . 'image/' . $new_image;

to this:
return HTTPS_IMAGE . 'image/' . $new_image;
and this:
return $this->config->get('config_url') . 'image/' . $new_image;

to this:
return HTTP_IMAGE . 'image/' . $new_image;
in which file and what to change for JS and CSS I don’t know
Maybe someone implemented it?
There is also in the config, HTTP_CATALOGbut HTTPS_CATALOG
their URL does not affect anything.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question