Display a Contact’s Purchase Limit in a Widget

A contact’s purchase limit is available from the User view model; however, it is not included in the out-of-the-box widgets.

This section applies to OSF. This section applies to Open Storefront Framework (OSF).

If you want to add a contact’s purchase limit to a widget, you can do so using code similar to the sample below:

widget.user().derivedOrderPriceLimit()