Zencart use the same images for different domain name sites in the same space

Source: Internet
Author: User
Tags zen cart

 Zencart a different domain name site in the same space using the same images, you can use the following methods to invoke a picture of the same site in the same space. shop1.com shop2.com Pictures folder: shop1/images/shop2.com reference shop1.com Pictures ZEN

Zencart a different domain name site in the same space using the same images, you can use the following methods to invoke a picture of the same site in the same space.

Shop1.com
Shop2.com
Picture folder: shop1/images/
Shop2.com referring to shop1.com pictures

ZEN cart default is the relative path, change to absolute path can also, to change two files.

(1) need to be in admin/includes/configure.php
Will
Define (' Dir_ws_catalog_images ', http_catalog_server. Dir_ws_catalog. ' images/');
Switch
Define (' Dir_ws_catalog_images ', http_catalog_server. Dir_ws_catalog. ‘.. /shop1/images/');
If it is in the root directory, instead:
Define (' Dir_ws_catalog_images ', http_catalog_server. Dir_ws_catalog. ‘.. /images/');

(2) need to be in includes/configure.php
Will
Define (' Dir_ws_images ', ' images/');
Switch
Define (' dir_ws_images ', ' ... /shop1/images/');
If it is in the root directory, instead:
Define (' dir_ws_images ', ' ... /images/'); PS: Must be under the same IP. Different IPs are not callable.

Enterprise Templates Web site

Zencart use the same images for different domain name sites in the same space

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.