Table of Contents
目录
X-Cart 学习笔记(一)了解和安装X-Cart
X-Cart 学习笔记(二)X-Cart框架1
X-Cart 学习笔记(三)X-Cart框架2
X-Cart 学习笔记(四)常见操作
一、了解X-CART
二、PHP环境搭建
三、安装配置X-CART
1、下载X-Cart并配置域名,映射地址
2、配置X-Cart
Home php教程 php手册 X-Cart 学习笔记(一)了解和安装X-Cart

X-Cart 学习笔记(一)了解和安装X-Cart

Jun 13, 2016 am 09:43 AM
aspnet software programming

目录

X-Cart 学习笔记(一)了解和安装X-Cart

X-Cart 学习笔记(二)X-Cart框架1

X-Cart 学习笔记(三)X-Cart框架2

X-Cart 学习笔记(四)常见操作

 

一、了解X-CART

X-Cart号称是全球最强大的PHP购物车开源软件,几乎囊括所有电子商务功能,采用网页方式管理后台,多语言支持,智能库存管理,模板定制灵活,功能插件化、模块化。

X-Cart分为gold版和Pro版这两个版本。Gold版为普通商店版,Pro为商城版。

这款软件的优势是功能比较强大,由于是付费方式采用终生制的开源软件,软件的稳定性、安全性以及可扩展性较强。

X-Cart前台采用的是smarty模版结合html语言呈现数据,服务器语言使用的是PHP语言。

二、PHP环境搭建

由于X-Cart服务器语言是PHP,因此需要使用Apache服务器,数据库使用的MySQL, 单独安装比较费时间,因此采用的是安装集成环境,我选择的是Wamp Server(默认情况,会占用本机的80端口),当然也可以使用Zend Server。

根据具体的情况还需要修改Apache的配置文件httpd.conf。例如,我修改了如下:

    Options Indexes FollowSymLinks

    AllowOverride All

    Order allow,deny

    Allow from all

开发环境使用的是PHPStorm和VS2012+VS.PHP,由于个人习惯,使用的是VS2012+VS.PHP,调试方便。

为了管理数据库方便,我安装了MySQL数据库管理工具Navicat for MySQL,当然,直接使用http://localhost/phpmyadmin/也是可以的。

三、安装配置X-CART

1、下载X-Cart并配置域名,映射地址

下载X-Cart gold plus最新版并且解压到任何你想存放的位置(例如H:\My Web Sites),下载地址:http://www.x-cart.com/download.html;我下载的是x-cart-4.6.1goldplus。

在配置x-cart之前,需要给该网站配置域名,映射地址,找到Wamp的安装目录,我的是D:\wamp,找到目录D:\wamp\bin\apache\Apache2.4.4\conf\extra下的httpd-vhosts.conf,使用记事本或者其它文本工具打开,在文件末尾添加如下代码,然后重启Apache服务器:

    ServerAdmin test@dummy-host2.example.com

    DocumentRoot "H:/My Web Sites/x-cart-4.6.1goldplus" //x-cart解压目录

    ServerName www.x-cart-plus.com                      //网站访问地址

    ErrorLog "logs/x-cart-plus-error.log"             //错误日志文件

    CustomLog "logs/x-cart-plus-access.log" common    //常规日志文件

现在既可以本地访问 http://www.x-cart-plus.com/这个地址了,不过由于没有做任何X-Cart安装配置工作,该商店打开是这样的:

 

在打开这个配置网站之前,还有一个重要的工作就是在本地hosts文件中添加该网址的IP映射,我的是windows8系统,hosts文件在目录:C:\Windows\System32\Drivers\etc下,用记事本或者其它文本编辑工具打开hosts文件,在最后面添加一新行:
127.0.0.1        www.x-cart-plus.com

现在浏览网址 www.x-cart-plus.com :

2、配置X-Cart

在浏览器中打开http://www.x-cart-plus.com/install.php,进入配置页面

选择I accept the License Agreement,点击Next, 接下来的页面是检测当前PHP配置环境是否符合要求的,一般情况下是passed,

直接点击Next, 接下来主要是配置数据库信息,配置如下图,

数据库信息填写自己MySQL的配置信息即可,在这个页面还需要填写商店的email的地址。点击Next,

该页面用来配置该购物网站的地域信息,选择自己需要的,然后点击Next,

该页面就是用于创建数据库信息,x-cart的配置信息也会保存在数据库当中,等安装完全之后点击Next,

这一步用来配置皮肤信息,我选择的是Ideal responsive,点击Next,

这个页面就是上一部选择皮肤之后的预览图,点击Next,

这一步用来配置Paypal payment,这里可以不用理会,可以在以后的后台配置,点击Next,

这一步用于生成系统指纹,可以不用配置,直接点击Next,

这个用于显示配置信息,有些信息是必须要记住的,


X-Cart installed successfully. To access your store, use the links below:

  • Customer area
  • Administrator area [ username: 1147639842@qq.com, password: AN4W90N]


Auth code is qskvt_oxdF0gqiafYrMt_cDfLv-BVf5W.

Auth code is used to prevent unauthorized access to the X-Cart installation scripts. If you decide to reinstall X-Cart, change a skin or install an add-on module, you will be asked to enter this code first. It is not necessary to remember this code: when needed, you can find it in the Summary section of the X-Cart Admin area. Besides, the auth code together with other info is sent to your email address1147639842@qq.com

上面的username和password用于进入x-cart管理页面的时候登录(为了方便记忆,在后台管理的时候可以修改password),这里的Auth code则是权限认证码,在清除缓存等高级权限的功能的使用是需要用到的。

到现在x-cart已经安装完毕了,点击Customer area可以进入前台使用界面,

点击Administrator area可以进入后台管理页面,输入刚才的username和password进入,

Ok,到现在安装到此结束了。

 

有错误的地方请各位指出,共同学习。
有些描述来自百度百科。

 

尊重作者,转载请说明出处。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1666
14
PHP Tutorial
1273
29
C# Tutorial
1252
24
The combination of Vue.js and ASP.NET provides tips and suggestions for performance optimization and expansion of web applications. The combination of Vue.js and ASP.NET provides tips and suggestions for performance optimization and expansion of web applications. Jul 29, 2023 pm 05:19 PM

The combination of Vue.js and ASP.NET provides tips and suggestions for performance optimization and expansion of web applications. With the rapid development of web applications, performance optimization has become an indispensable and important task for developers. As a popular front-end framework, Vue.js combined with ASP.NET can help us achieve better performance optimization and expansion. This article will introduce some tips and suggestions, and provide some code examples. 1. Reduce HTTP requests The number of HTTP requests directly affects the loading speed of web applications. pass

Ten ways generative AI will change software development Ten ways generative AI will change software development Mar 11, 2024 pm 12:10 PM

Translator | Reviewed by Chen Jun | Chonglou In the 1990s, when people mentioned software programming, it usually meant choosing an editor, checking the code into the CVS or SVN code base, and then compiling the code into an executable file. Corresponding integrated development environments (IDEs) such as Eclipse and Visual Studio can integrate programming, development, documentation, construction, testing, deployment and other steps into a complete software development life cycle (SDLC), thus improving the work of developers. efficiency. In recent years, popular cloud computing and DevSecOps automation tools have improved developers' comprehensive capabilities, making it easier for more enterprises to develop, deploy and maintain software applications. Today, generative AI is the next generation development

MySQL connection pool usage and optimization techniques in ASP.NET programs MySQL connection pool usage and optimization techniques in ASP.NET programs Jun 30, 2023 pm 11:54 PM

How to correctly use and optimize the MySQL connection pool in ASP.NET programs? Introduction: MySQL is a widely used database management system that features high performance, reliability, and ease of use. In ASP.NET development, using MySQL database for data storage is a common requirement. In order to improve the efficiency and performance of database connections, we need to correctly use and optimize the MySQL connection pool. This article will introduce how to correctly use and optimize the MySQL connection pool in ASP.NET programs.

How to reconnect to MySQL in ASP.NET program? How to reconnect to MySQL in ASP.NET program? Jun 29, 2023 pm 02:21 PM

How to reconnect to MySQL in ASP.NET program? In ASP.NET development, it is very common to use the MySQL database. However, due to network or database server reasons, the database connection may sometimes be interrupted or time out. In this case, in order to ensure the stability and reliability of the program, we need to re-establish the connection after the connection is disconnected. This article will introduce how to reconnect MySQL connections in ASP.NET programs. To reference the necessary namespaces first, reference them at the head of the code file

The combination of Vue.js and ASP.NET enables the development and deployment of enterprise-level applications The combination of Vue.js and ASP.NET enables the development and deployment of enterprise-level applications Jul 29, 2023 pm 02:37 PM

The combination of Vue.js and ASP.NET enables the development and deployment of enterprise-level applications. In today's rapidly developing Internet technology field, the development and deployment of enterprise-level applications has become more and more important. Vue.js and ASP.NET are two technologies widely used in front-end and back-end development. Combining them can bring many advantages to the development and deployment of enterprise-level applications. This article will introduce how to use Vue.js and ASP.NET to develop and deploy enterprise-level applications through code examples. First, we need to install

How to correctly configure and use MySQL connection pool in ASP.NET program? How to correctly configure and use MySQL connection pool in ASP.NET program? Jun 29, 2023 pm 12:56 PM

How to correctly configure and use MySQL connection pool in ASP.NET program? With the development of the Internet and the increase in data volume, the demand for database access and connections is also increasing. In order to improve the performance and stability of the database, connection pooling has become an essential technology. This article mainly introduces how to correctly configure and use the MySQL connection pool in ASP.NET programs to improve the efficiency and response speed of the database. 1. The concept and function of connection pooling. Connection pooling is a technology that reuses database connections. At the beginning of the program,

Using and optimizing transaction performance of MySQL connection pool in ASP.NET Using and optimizing transaction performance of MySQL connection pool in ASP.NET Jun 30, 2023 pm 12:12 PM

How to correctly use and optimize the transaction performance of MySQL connection pool in ASP.NET programs? In ASP.NET programs, database transactions are a very important part. Transactions ensure the consistency and integrity of the database while also providing better performance. When using a MySQL database, it is essential to use connection pools to manage connection resources and optimize performance. First, let us briefly understand the concept of MySQL connection pool. The connection pool is a buffer pool of a group of connections. By pre-initializing a certain number of

Recommended configuration for ASP.NET development using Visual Studio on Linux Recommended configuration for ASP.NET development using Visual Studio on Linux Jul 06, 2023 pm 08:45 PM

Overview of the recommended configuration for using Visual Studio for ASP.NET development on Linux: With the development of open source software and the popularity of the Linux operating system, more and more developers are beginning to develop ASP.NET on Linux. As a powerful development tool, Visual Studio has always occupied a dominant position on the Windows platform. This article will introduce how to configure VisualStudio for ASP.NE on Linux

See all articles