Home  >  Article  >  Backend Development  >  X-Cart study notes (1) Understanding and installing X-Cart_PHP tutorial

X-Cart study notes (1) Understanding and installing X-Cart_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:39:381435browse

Table of Contents

X-Cart study notes (1) Understanding and installing X-Cart

X-Cart Study Notes (2) X-Cart Framework 1

X-Cart Study Notes (3) X-Cart Framework 2

X-Cart Study Notes (4) Common Operations

1. Understanding X-CART

X-Cart is known as the world's most powerful PHP shopping cart open source software, covering almost all e-commerce functions. It uses web pages to manage the backend, multi-language support, intelligent inventory management, flexible template customization, and plug-in and modular functions. .

X-Cart is divided into two versions: gold version and Pro version. The Gold version is the general store version, and the Pro version is the mall version.

The advantage of this software is that it is relatively powerful. Since it is an open source software with a lifetime payment method, the software has strong stability, security and scalability.

The front desk of X-Cart uses smarty template combined with html language to present data, and the server language uses PHP language.

2. PHP environment setup

Since the X-Cart server language is PHP, it needs to use the Apache server, and the database uses MySQL. It is time-consuming to install it alone, so I use an integrated environment to install it. I chose Wamp Server (by default, it will occupy this server). port 80 of the computer), of course you can also use Zend Server.

According to the specific situation, the Apache configuration file httpd.conf also needs to be modified. For example, I modified as follows:

Options Indexes FollowSymLinks

AllowOverride All

Order allow,deny

Allow from all

The development environment uses PHPStorm and VS2012+VS.PHP. Due to personal habits, I use VS2012+VS.PHP, which is convenient for debugging.

In order to facilitate database management, I installed the MySQL database management tool Navicat for MySQL. Of course, you can also use http://localhost/phpmyadmin/ directly.

3. Install and configure X-CART

1. Download X-Cart and configure domain name and map address

Download the latest version of X-Cart gold plus and unzip it to any location you want to store it (such as H:My Web Sites), download address: http://www.x-cart.com/download.html; I download The one is x-cart-4.6.1goldplus.

Before configuring x-cart, you need to configure the domain name and mapping address for the website, find the installation directory of Wamp, mine is D:wamp, find httpd-vhosts.conf under the directory D:wampbinapacheApache2.4.4confextra, use Open Notepad or other text tools, add the following code at the end of the file, and then restart the Apache server:

ServerAdmin test@dummy-host2.example.com

DocumentRoot "H:/My Web Sites/x-cart-4.6.1goldplus" //x-cart decompression directory

ServerName www.x-cart-plus.com //Website access address

ErrorLog "logs/x-cart-plus-error.log" //Error log file

CustomLog "logs/x-cart-plus-access.log" common //General log file

Now you can access the address http://www.x-cart-plus.com/ locally. However, since no X-Cart installation and configuration work has been done, the store opens like this:

Before opening this configuration website, another important task is to add the IP mapping of the URL in the local hosts file. Mine is a windows8 system. The hosts file is in the directory: C:WindowsSystem32Driversetc. Use Notepad or other Open the hosts file with a text editing tool and add a new line at the end:
127.0.0.1 www.x-cart-plus.com

Browse URL now www.x-cart-plus.com:

2. Configure X-Cart

Open http://www.x-cart-plus.com/install.php in the browser and enter the configuration page

Select I accept the License Agreement and click Next, The next page is to check whether the current PHP configuration environment meets the requirements. Generally, it is passed,

Click Next directly. The next step is to configure the database information. The configuration is as shown below,

For database information, just fill in your own MySQL configuration information. On this page, you also need to fill in the store’s email address. Click Next,

This page is used to configure the regional information of the shopping website, select what you need, and then click Next,

This page is used to create database information. The configuration information of x-cart will also be saved in the database. After the installation is complete, click Next,

This step is used to configure skin information. I chose Ideal responsive, click Next,

This page is the preview after selecting the skin in the previous part, click Next,

This step is used to configure Paypal payment. You can ignore it here. You can configure it in the background later. Click Next,

This step is used to generate system fingerprints. You can click Next directly without configuration.

This is used to display configuration information. Some information must be remembered,


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

The username and password above are used to log in when entering the x-cart management page (for the convenience of memory, the password can be modified during background management), the Auth here code is the permission authentication code, which is needed to use advanced permission functions such as clearing cache.

Now x-cart has been installed. Click Customer area to enter the front-end user interface,

Click Administrator area to enter the background management page, enter the username and password you just entered,

Ok, the installation is now over.

Please point out any mistakes and learn together.
Some descriptions come from Baidu Encyclopedia.

Respect the author, please indicate the source when reprinting.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/729842.htmlTechArticleContents X-Cart study notes (1) Understanding and installing X-Cart X-Cart study notes (2) X -Cart Framework 1 X-Cart Study Notes (3) X-Cart Framework 2 X-Cart Study Notes (4) Common Operations...
Statement:
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