Object: dw.system.Request
Because you are working in a template, and templates use request as a top-level variable, you can immediately call methods of this object.
Note: Top-level variables include pdict, out, request and
session.
The following are some frequently used methods. See the B2C Commerce Script API documentation for the complete documentation.
| Method | Description |
|---|---|
| getHttpCookies() : Cookies | Returns the Cookies object, which can be used to manipulate the client-side cookies. |
| getHttpHeaders() : Map | Returns a map containing all HTTP header values. |
| isHttpSecure() : Boolean | Identifies if the request is secure. |
| request.isSCAPI() : Boolean | Distinguishes between OCAPI and SCAPI requests in extension points (hooks). |
Example:
<td class="price merchandizetotal"><isprint value="${request.custom.Container.adjustedMerchandiseTotalNetPrice}"></td>