Models and Views

The controllers integrate into Models and Views. All scripts are Common JS modules with defined and documented exports to avoid polluting the global namespace.

The controllers integrate into Models and Views. All scripts are Common JS modules with defined and documented exports to avoid polluting the global namespace.

Model and View Modifications

CartModel.js–Model for cart functionality. Creates a CartModel class with payment, shipping, and product helper methods.

CartView.js–View used to render the cart. This view makes sure the coupons, shipments, and basket calculation are up to date before rendering the cart.
  • Require the paymentHelpers script from plug-in_commercepayments
  • To present express checkout on cart page, use it to create a payment request and supporting data
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.