Ecommerce Framework community bundle provides e-commerce functionality such as product listing and filtering, pricing, carts and checkouts for Pimcore.
When the token does not exist, VoucherServiceToken::getByCode() will return null, which results in a Call to a member function getVoucherSeriesId() on null exception instead of returning a boolean in checkVoucherCode().
When the token does not exist,
VoucherServiceToken::getByCode()
will returnnull
, which results in aCall to a member function getVoucherSeriesId() on null
exception instead of returning a boolean incheckVoucherCode()
.