Problems to be Solved when installing SFC three-state express delivery interface module for zencart1.39h simplified edition

Source: Internet
Author: User
Tags php source code zen cart

Introduction: This is a detailed page for the zencart1.39h simplified version to install the SFC three-state express delivery interface module to solve the problem. It introduces the related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 340019 'rolling = 'no'>

For more information about how to configure the FCKeditor and fast and easy checkout modules, see my previousArticle.

I use the 1.39h simplified version instead of the LightInTheBox template. Therefore, the interfaces and functions such as checkout and login are default to zencart, which is hard to see. They must be beautified and changed before they can be used.

First, install fast and easy checkout in the previous tutorial. Follow these steps:

1. Go to the zengcart Chinese site to download the SFC three-state express delivery interface module. Now the latest is the three-state express delivery rate module V1.2.1 of Zen cart.

2. Upload the corresponding file to the zen cart installation directory.

3. Choose "manage"> "module management"> "delivery module"> "Three-mode express delivery". Enable the corresponding express delivery module (Other services can be disabled ).

4. Modify the values of constants, such as des le_shipping_sfc_text_title, in des \ languages \ English \ modules \ shipping \ SFC. php. Note the define ('text _ shipping_weight ', 'kg') in English. php. The specific freight can be calculated only when the setting is correct. Optional g, kg, etc.

5. At this time, the popup_shipping_estimator page will display the freight estimation page, which will be blank after Windows is closed. This is because the page has an error when calling Des \ modules \ shipping_estimator.php. solution: find // print_r ($ quotes); cancel the cancellation, and the SFC array is displayed. ThenCodeDelete or log out:

// 4px Shipping
Require (dir_ws_classes. 'dsfshipping. php ');
$ Objdsfshipping = new dsfshipping ();
If (! $ Country_info ){
$ Country_info = $ objdsfshipping-> getcountryinfo ($ _ session ['customer _ id'], $ sendto );
}
// Var_dump ($ country_info, $ total_weight );
$ Dsf_shippings = $ objdsfshipping-> calculate ($ country_info ['countries _ iso_code_2 '], $ total_weight );
$ Quotes = array_merge ($ dsf_shippings, $ quotes );
// End 4px Shipping

To solve the problem, the four-party module overwrites the output and adds a judgment. There are no express deliveries in China and EU regions. Please see the results:

You can beautify the table, or select a country like LightInTheBox (mainly changed to shipping_estimator.php ).

6. Modify the checkout page. Since the shipping method does not respond and the update button does not respond, you need to add the content of JScript \ jquery \ jquery_checkout.php in the template directory to the back of des \ modules \ pages \ checkout \ jscript_addr_pulldowns.php. If you have time, you can also make it Ajax, which is a little complicated. You need to change the output name such as JS and discount code.

See the results.

The next step is to beautify the business. It may take several days to beautify the business. Let's talk about this today. If you have any questions, please contact me via QQ: 71780795.

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/340019.html pageno: 7.

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.