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 both OSF and Storefront Classic. This section applies to Open Storefront Framework (OSF) and Storefront Classic.

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()