VoucherInfoViewHelper
in package
Class VoucherInfoViewHelper
Contains code regarding output about voucher which would otherwise have to be duplicated between CheckoutConfirmationContentView and CheckoutConfirmationThemeContentView.
Table of Contents
- $xtcPrice : xtcPrice_ORIGIN
- __construct() : mixed
- getVoucherInfo() : array<string|int, mixed>
- Returns an array with info about how customer’s balance and vouchers are about to be used.
- getCouponDetails() : array<string|int, mixed>|null
- Returns details about a coupon.
- getCustomerGVBalance() : float
- Returns a customer’s current balance from coupons/vouchers.
Properties
$xtcPrice
protected
xtcPrice_ORIGIN
$xtcPrice
Methods
__construct()
public
__construct(xtcPrice_ORIGIN $xtcPrice) : mixed
Parameters
- $xtcPrice : xtcPrice_ORIGIN
Return values
mixed —getVoucherInfo()
Returns an array with info about how customer’s balance and vouchers are about to be used.
public
getVoucherInfo() : array<string|int, mixed>
The array is aimed at output in the checkout_confirmation.html template file.
Return values
array<string|int, mixed> —getCouponDetails()
Returns details about a coupon.
protected
getCouponDetails(IdType $couponID) : array<string|int, mixed>|null
Parameters
- $couponID : IdType
Return values
array<string|int, mixed>|null —getCustomerGVBalance()
Returns a customer’s current balance from coupons/vouchers.
protected
getCustomerGVBalance(IdType $customerID) : float
Parameters
- $customerID : IdType