Vanilo 3.2 has been released with the persistent, session-based checkout store and other improvements.
The requirements of Vanilo 3.2 are the same a v3.1, except for the Concord requirement which has been changed from v1.11 to v1.12+.
There are NO BREAKING CHANGES in this release. We stick to Semantic Versioning.
The default checkout driver is the "request" store, which holds the entered data only during the request/validation cycle. This means, that if the shopper navigates away from the checkout page, the data they entered goes away.
To solve this problem, the "session" checkout driver has been finalized with this version, which stores the data in the session.
Therefore, method and property calls that are sent to the Checkout
facade, are now proxied down to the underlying
checkout driver, a behavior well known in the Laravel framework.
To use the session driver in the checkout, set the vanilo.checkout.store.driver
config to session
:
// config/vanilo.php
return [
'checkout' => [
'store' => [
'driver' => 'session'
]
]
];
is_active
flag to shipping methodsis_master_product()
template helper functionCart::fresh()
method to the Cart facade that reloads the underlying cart model from the databaseDetailed Changelog: https://vanilo.io/docs/3.x/releases#32