Script Programming

Use B2C Commerce JavaScript to customize your ecommerce storefront application.

For details on specific B2C Commerce Script API , see the B2C Commerce API documentation.

Industry Standards

B2C Commerce JavaScript is Rhino JavaScript, including ECMAScript 5, Mozilla extensions up to JavaScript 1.8, and E4X.

In addition B2C Commerce supports:
  • Optional type specification support from JavaScript 2.0/ECMA 4th edition proposal and ActionScript.
  • ECMAScript 5 compatibility fix for the global parseInt(String) function
B2C Commerce also reproduces a few nonstandard behaviors for older compatibility modes.
	var a: String
	var p: dw.catalog.Product
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.