Procedure for building a Foreign Trade Website Based on Zen-cart

Source: Internet
Author: User
Tags echo date zen cart
Procedure for building a Foreign Trade Website Based on Zen-cart

This article describes how to build a Foreign Trade Website Based on Zen cart and some common problems encountered when using the Zen-cart website. It is a summary of the author's development experience, it is helpful for you to quickly learn about and master the phper of Zen cart.

1. install and configure the PHP + MySQL Environment
We recommend that you install the PHP integrated environment package (convenient and fast). There are many such tutorials on the Internet, so we will not go into details here.
For a virtual host, the server must support the installation and running environment requirements of Zen-cart.

2. Download the Zen-cart SourceProgram, Decompress the package and upload it to the corresponding directory of the website space. In the address bar of the browser, enter http: // domain name/zc_install/index. php, and then follow the prompts to install the package...
After the installation is complete, go to the front-end and you will find the warning with two conspicuous red backgrounds. This requires you to delete or rename the name of the installation directory, you can also modify the permission of the configuration file (if FTP cannot be changed, directly modify the file des \ init_initdes \ init_header.php:
Define ('warn _ config_writeable ', 'true'); Change "true" to "false") to avoid being used by others. Follow the instructions and refresh your webpage.

3. Install the easy popular batch product management software and import data in batches.

Download the bulk commodity management plug-in. After decompression, there will be several TXT files and a catalog directory. Copy all the files in the catalog directory to your program installation directory.
Refresh the background and find the easy popular menu in the tools column. Click to enter. The configuration prompt will be displayed at the top of the page, asking you to install it. Click here as prompted ", in this way, the EP plug-in is successfully installed.
Next, we need to import data to the database. here we need to upload product images to the images directory under the program installation directory. There may be a lot of product images, and it is very troublesome to manually edit and record data, I wrote a special tool to generate an Excel report based on the product image. If necessary, contact me.

4. template modification involves three major aspects: banner and logo on the top, navigation, Flash/JS image display, and overall color.

Modify the directory/commom/tpl_header.php of the nodes/templates/template file in the navigation bar.
In this file, require is a file in the DIV whose ID is toplinks, which outputs the navigation menu. You can change this require to what we need, or you can directly modify it in includes/templates/template_default/templates/tpl_ezpages_bar_header.php, the corresponding CSS is located in the # toplinks directory of includes/templates/template file/CSS/stylesheet.css.

For the three-column template, the width of the left and right columns can be directly modified in the layout settings under configuration, but the CSS needs to be modified for the setting in the middle column.CodeThe corresponding CSS code is located in the # mainwrapper in the includes/templates/template file directory/CSS/stylesheet.css file. After modification, you will find that the width of the logo and navigation section on the top is inconsistent with the overall width. We can continue to modify the # logowrap width in this file.

5. Common background settings

(1) Enable the left and right columns as needed: Tools → layout boxes Controller

(2) purchase payment and free shipping Module Settings:
Modules → payment modules install and configure the payment Module
Modules → shipping modules free shipping)
Modules → order total modules you can set coupons, taxes, and so on.

(3) country/region: locations → countries (Chinese region code can be removed from the Foreign Trade English website (2) CHN)
(4) Exchange Rate Settings: localization → currencies (use IPs and other payment methods to keep RMB CNY)

(5) terms for closing registration or settlement for an account:
Set in background configuration-> Terms and Conditions
(6) The logon statement is not displayed on the homepage:
Layout settings => customer greeting-show on index page = 0 (off)

6. Adjustments to some details: the content in the Information Section [under the tool → define pages Editor menu] fills in, the advertisement images in the javassors section [in the tool → banner manager] changes, and the copyright information at the bottom (\ shortdes \ ages \ English. PHP) needs to make corresponding modifications, etc.

7. product image enlargement: Click the image handler2 drop-down menu under the background tools column → click Install image handler to install the image management module; then set the Image Parameters in configuration, and ih zoom in (medium) set the small image to yes, and set the image size to be enlarged in product information-image width/Image Height.

8. Do you think it is embarrassing to have a small number of visitors to your website? You can modify the $ n_guests and $ n_members as the number of registered members.

The other is the modification of the powered by information. The modification method is as follows:
Modify the information in the first define () file in the DES/ages/English. php file as needed.

9. Windows does not support PHP mail sending. You can use smtpauth mail instead.
Note: the sender's email address is in the SMTP account mailbox.

10. If there are many product categories, there will be a subcategory connection when you click the parent category connection, but this link is not surprising, some customers will think that this is not a link, so the browsing times of our products and the chances of being purchased will decrease. Therefore, some modifications must be made to this link.
/Includes/modules/category_row.php to modify the relevant code.

11. As a Foreign Trade website, Google promotion is a key link, so the question arises: how to add the ggad tracking code to the website? The location is flexible. The example here is for reference only.

Full-site tracking code: templates/common/tpl_footer.php

Ggad defines the operation tracking code:
<! -Google Code for registration/login behavior conversion page->
Supported des/ages/english/login. php
Supported des/ages/english/create_account.php

<! -Google Code for purchasing/selling conversion page->
/Shortdes/templates/template_default/templates/tpl_checkout_success_default.php
../Schemdes/templates/template_default/templates/tpl_checkout_confirmation_default.php (183,1)

Note: If the code is directly added to the beginning of the website (before the head), the page may be misplaced.

12. The time zone displayed in the background is the default value. This is very difficult for us. How can we modify it?

Locate admin/shortdes/header. PHP file, search for ECHO date ("r", time ()). the 'gmt' location does not need to be clarified. Everyone knows that this is the output time. add a sentence date_default_timezone_set ('prc') to the front. Refresh the file in the background to see the effect. Okay, now is Beijing time. (However, the generated order time is based on the server time of the website)

13. Because Google cannot apply for an advertisement, you need to change the domain name. If you want to change the domain name, you need to modify the configuration information in the website. How can you modify it?
Modify two configuration files first
Replicdes/configure. php
Admin/shortdes/configure. php
Change the domain name variable defined in it to the desired domain name or use a permanent method to use
'Http: // '. $ _ server ['HTTP _ host']
'Https: // '. $ _ server ['HTTP _ host']
Replace the corresponding location.
The next step is to modify the logo and Banner. There is nothing worth mentioning and there is no skill at all;
The next step is to modify the copyright information and powered by information.

14. How do I configure search engine optimization?
Enable the SEO function under the "configuration" --> "Search Engine Optimization" option in the background. The SEO module needs to check three items:
(1) Confirm that the website supports mod_rewrite and that the host allows you to use your. htaccess file;
(2) The. htaccess file name is correct (there is a point above)
(3) change the file htaccess_sample in the root directory to. htaccess and change/shop/to your Zen-cart directory.
If your domain name directs to the root directory of Zen-cart, set it to rewritebase/
Rewritebase/zencart/
15. How do I add a new page?
Payment Policy settings:
Background ==> tool ==> ez-pages ==> payment policy ==> EDIT: (if there is no payment policy, click "New File)
Fill in the payment policy in page title
Other radio buttons do not need to be changed. You only need to enter the payment terms in the HTML edit box.
See: http://www.zen-cart.cn/forum/topic1947.html
16. Gateway payment interface settings
The zencart program has integrated payment gateway interfaces such as Paypal. You only need to set parameters such as the payment account.
In addition, IPS and other gateway payment interfaces to be installed can be integrated according to the official payment interfaces.

17. Attributes controller extension of product description (add settings in attribute control option content)
Enter the option name and ID under the title option name of attributes Controller under the catalog drop-down menu, and insert the option values in Option values.
In addition, if all product attributes have been set, you can download the text file of the model/attribute separated by tab.

18. Set a coupon: Admin-> modules-> order total-> discount coupon

19. product weight modification: (Change g to kg)
/Shortdes/ages/English. php
/Shortdes/ages/english/modules/shipping/zones. php
Find and replace the two files.

20. set different freight rates for different countries:
Enable the zone rates freight module in the background (the calculation method can be item or price );
Shipping-based on the customer's delivery person address;
Not applicable to the following countries or regions (areas that can be added to the free freight module, such as free zone)
Set region 1, Region 2, and Region 3 respectively (set to 00 for other regions)
And the corresponding freight standards, such as: 100000000: 18 (quantity/price less than or equal to 100000000, the freight is 18)
Appendix: the "no freight" option is enabled for countries with no freight charges.
Add Free Zone in Zone definitions, click "details", and insert a free-of-charge country area in New Sub zone.
The yellow button indicates that the region has been defined and the tax rate is not defined (no additional fees)
Query networks in ISO countries or regions.
PS:
To increase the number of regions, open the file \ includes \ modules \ shipping \ Zones. php
Set $ this-> num_zones = 3;
Add the required region number and enable this module in the background.

21. Terms for enabling or disabling registration or checkout
Set in "configuration"-> "clause options" in the background
Do not display the home text in the homepage navigation bar:
Layout settings => define breadcrumb status = 2 (off for home page only)

22. Add Links
the banner manager advertisement code is used to display links, first fill in your ad group name in "ad display group-footer position 1" in the background layout settings, such as links. create a new banner in the "banner manager" menu under the tools column. In the "banner group" field, enter the advertisement group name links, and enter the banner title, enter the HTML code of the link you want to display in the HTML text box, and click Insert.

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.