Problem getting theme images to work with static subdomain?

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeProblem getting theme images to work with static subdomain?

This topic has been marked as not resolved.

Hi,

I have setup a subdomain to server images from”cdn.domain.no”. All images exept images from the Shoppica theme is now served by this url. How can i apply the same settings to images in the theme? I there a configuration file somewhere?

February 27, 2015 at 4:14 pm #38758

Open tb_themes/pavilion/config/theme.php and replace 'image_serve_domain' => '', with

'image_serve_domain'              => 'cdn.domain.no/',

Do not forget the trailing slash in the domain name.

BR,
ThemeBurn team

March 3, 2015 at 1:55 pm #38888

I do not have a pavilion folder, i only see shoppica2 ant it does not contains the file theme.php

March 3, 2015 at 2:17 pm #38898

Sorry,

we replied for the Pavilion theme by force of habit. Which images are not server correctly (payment images, backgrounds etc.) ? ‘images from the Shoppica theme’ sounds very broad.

March 3, 2015 at 2:27 pm #38902

I thought so :)

Images:

/catalog/view/theme/shoppica2/images/border/box_border_2.png
/catalog/view/theme/shoppica2/images/bullet_1.png
/catalog/view/theme/shoppica2/images/intro_texture.png
/catalog/view/theme/shoppica2/images/shop_info_icons.png
/catalog/view/theme/shoppica2/images/sprite.png
/catalog/view/theme/shoppica2/images/texture_3.png
/image/data/slides/my_slide_1_5.jpg
/image/data/slides/my_slide_2_5.jpg
/image/data/visa_32.png
/image/data/paypal_32.png

If possible, i would also like to serve these files from a CDN domain:

/catalog/view/theme/shoppica2/javascript/common.js.php?v=2.0&is_mobile=0&is_touch=0&language_direction=ltr
/catalog/view/theme/shoppica2/javascript/images_slide.js
/catalog/view/theme/shoppica2/javascript/jquery/jquery.slides.min.js
/catalog/view/theme/shoppica2/javascript/noty/css/jquery.noty.css
/catalog/view/theme/shoppica2/stylesheet/screen.css.php?v=2.2.4&is_mobile=0&is_touch=0&language=ltr…

March 3, 2015 at 2:37 pm #38904

Hi,

we examined the information you provided and there is currently no universal way of making them load from cdn.

Some of them are hardcoded in the css file – you must change the paths manually by editing /catalog/view/theme/shoppica2/stylesheet/screen.css. You need to search for url( fragments.

You can also change manually the path of some resources, located in the end of catalog/view/themeshoppica2/template/common/footer.tpl, just before the closing </body> tag.

Generally the images that are not loaded from cdn are very few and this won’t affect the performance of your site. Most of the images in OpenCart come from categories and products.

BR,
ThemeBurn team

March 9, 2015 at 9:52 am #39084
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.