---
schema_version: "1"
id: 006014f2aea3946baf10380d6e735c585f0f2ddec6c72b6fce686aca1170eccd
title: Order Calculation
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/b2c-commerce/guides/customer-service-center/b2c-csc-order-calculation.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/b2c-csc-order-calculation.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3938f8be7dcd7814018d6a95e0a319326d55e9500d239e6daddcf9adbc635def
products:
  - Composable Storefront
  - Salesforce APIs
---
# Order Calculation

Customer Service Center uses the same order calculation routines for pricing, taxes, shipping charges, and promotions as B2C Commerce. The current SiteGenesis application contains a registration for basket (order) calculation.

The calculation logic location depends on the version of SiteGenesis Storefront Core cartridge used by the B2C Commerce site.

If you're using the current SiteGenesis version, the calculation logic is in the hook and the script calls:

```
dw.system.HookMgr.callHook( "dw.ocapi.shop.basket.calculate", "calculate", pdict.Basket );
```

If you're using an older version of SiteGenesis, you register the calculate hook to call the CalculateCart.ds file.

```json
{
  "hooks": [{ "name": "dw.ocapi.shop.basket.calculate", "script": "./cart/CalculateCart.ds" }]
}
```

See dw.order/hooks in the Infocenter's B2C Commerce Scripts main topic.
