Detailed description of Ecshop's shopping process code analysis

Source: Internet
Author: User

Detailed description of Ecshop's shopping process code analysis(2012-07-30 10:41:12) reproduced
Tags: shopping cart Settlement Center Commodity price ecshop ecshop shopping process Category: Ecshop Institute
Allies today to analyze the Ecshop shopping process, to bring convenience to everyone, I this selfless dedication, we look at it!!!

First, is to add to the shopping cartAdd_to_cart
There is a Addto_cart method in the lib_order.php, and then, the method inside a Get_final_price method, is to get the final insert in the shopping cart table in the price of the product method, Get_final_price method in Lib_ Common.php inside, where the price shows where, of course, is displayed in the shopping cart inside, haha.

Second, of course, is to enter the shopping cart flow.php?step=Cart
The market price shown here, the price of our store is just through the Get_final_price method to obtain the prices, but also the price of the cart table cart inside OH.

Third, then, went into the clearing center flow.php?step=Checkout
The price shown here, is not get_final_price to get the price, this is the Order_fee method obtained price, in lib_order.php inside

All right, ecshop shopping process Code analysis in the first to say so much, in the future to supplement the knowledge of the Ecshop shopping process!!

Detailed description of Ecshop's shopping process code analysis

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.