Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/274.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php CS购物车-错误的css路径_Php_Css_.htaccess_Cs Cart - Fatal编程技术网

Php CS购物车-错误的css路径

Php CS购物车-错误的css路径,php,css,.htaccess,cs-cart,Php,Css,.htaccess,Cs Cart,我是cs购物车的新手。 我已经完成了以下步骤 1.downloaded a cs-cart-V3 website to my localhost. 2.Change database setting,and import database. 3.$config['http_host'] = 'localhost'; added in **config.local.php** file. 4.Removed .htaccess file from root folder. 我的问题是 网站已加载

我是cs购物车的新手。 我已经完成了以下步骤

1.downloaded a cs-cart-V3 website to my localhost.
2.Change database setting,and import database.
3.$config['http_host'] = 'localhost'; added in **config.local.php** file.
4.Removed .htaccess file from root folder.
我的问题是

网站已加载,但css路径错误。它试图从本地主机而不是从本地主机/子文件夹加载


我需要在哪里更改此设置?

请检查config.local.php

主要有以下几行:

// Host and directory where software is installed on no-secure server
$config['http_host'] = '';
$config['http_path'] = '';

请确保店面URL也是正确的。可以检查:

  • 在数据库的cscart_companies表中(storefront和secure_storefront列)
  • 在管理->门店页面(店面URL和安全店面URL字段)
  • 最后,不要忘记清除缓存。您可以通过将“?cc&ctpl”添加到管理面板中的URL来完成此操作。例如