Price in the system of the Octopus series

Source: Internet
Author: User

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

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.