Traits
Table of Contents
Traits
- CartPreviewTrait
- Recalculates the cart and composes rows for display, shared by the full cart
({@see \App\UI\Front\Eshop\Components\CartComponent\Cart}) and the header mini cart
({@see \App\UI\Front\Eshop\Components\CartWidgetComponent\CartWidget}).
- CheckoutErrorTrait
- Builds the failed checkout message in the front end language, shared by the cart
({@see \App\UI\Front\Eshop\Components\CartComponent\Cart}) and the order steps
({@see \App\UI\Front\Eshop\Components\CheckoutComponent\Checkout}).
- CheckoutRegionTrait
- Resolves the payment region of the cart and order, shared by the full cart, the mini cart and
the order steps so that all three compute in the same currency and VAT.