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