CartController
extends ProductCommonController
in package
This controller describes the behavior of the shopping cart.
Use the controller to generate a collection of Cart entities of various types. The controller will return a collection of different classes.
To fetch all product lines, the method $collection->getByClass('CartProductLine') could be used.
Tags
Table of Contents
- __construct() : mixed
- enabledDeliveryMethods() : mixed
- getPaymentOptions() : mixed
- Legacy, do not use this method
- getUnitTitle() : string
- Get the title of a product entity
- makeCombinedCouponTitle() : string
- Make the title for the combined coupon line which is either in singular or plural depending on the number of coupons
- productDeliveryEstimate() : mixed
Methods
__construct()
public
__construct([mixed $parseUriParameters = false ]) :
mixed
Parameters
- $parseUriParameters : mixed = false
Tags
Return values
mixed —enabledDeliveryMethods()
public
enabledDeliveryMethods(mixed $site, mixed $language, mixed $params) :
mixed
Parameters
- $site : mixed
- $language : mixed
- $params : mixed
Tags
Return values
mixed —getPaymentOptions()
Legacy, do not use this method
public
getPaymentOptions(mixed $Price) :
mixed
Parameters
- $Price : mixed
Tags
Return values
mixed —getUnitTitle()
Get the title of a product entity
public
getUnitTitle(mixed $UnitId[, mixed $LanguageIso = null ]) :
string
Parameters
- $UnitId : mixed
- $LanguageIso : mixed = null
Tags
Return values
string —makeCombinedCouponTitle()
Make the title for the combined coupon line which is either in singular or plural depending on the number of coupons
public
static
makeCombinedCouponTitle(bool $hasCoupon, GiftCardSessionHelper $giftCardSessionHelper) :
string
Parameters
- $hasCoupon : bool
- $giftCardSessionHelper : GiftCardSessionHelper
Tags
Return values
string —productDeliveryEstimate()
public
productDeliveryEstimate(mixed $priceWithVat, mixed $displayPrice, mixed $params[, mixed $product = null ][, mixed $variant = null ]) :
mixed
Parameters
- $priceWithVat : mixed
- $displayPrice : mixed
- $params : mixed
- $product : mixed = null
- $variant : mixed = null