The price in the system
Product Original price calculation =round (database value "Default USD" * exchange rate) "Round means: interception of the price of a small digit"
Product original price show =currency (product original price calculation) "To explain what it means: Currency code in my system a function, used for price format display processing"
Product price calculation =round (database value "Default USD" * exchange rate * discount rate)
Product Price display =currency (product price calculation)
Single product Save price calculation Round (original price--price)
Single product Save price show Currency (single product Save price calculation)
Note: The above price is the basis must not be wrong, now or 1.0 version, the following will be added to the strategy algorithm, and apply the preferential scheme, re-calculated
Property price calculation = Round (property price * exchange rate)
Property Price Show = Currency (attribute price calculation)
Shopping Cart Single Item CartItemInfo
The total amount of a single item is calculated =roundprice (product price * quantity);
The total amount of a single item is displayed =currency (total amount for a single item);
Shopping Cart Section
Amount Part total four set of attributes eight values
Cartsubtotal The total amount of the shopping cart "contains the app coupon code or does not contain"
Cartordertotal Shopping Cart Original Total amount "Unused coupon code"
Cartsavevalue The total amount saved in the shopping cart "contains the app coupon code or does not contain"
The total amount saved by Couponsavetotal coupon code
is the coupon code used?
Whether
Cartsubtotal= and (total amount of individual items calculated)
Cartordertotal= and (total amount of individual items calculated)
Cartsavevalue= and (save amount * Quantity for individual items of shopping cart)
None of the above round is used at the time of calculation.
Not to be continued
Price in the system of the Octopus series