cart.create:before
Runs while the cart object is being built, before it is read from the session.
'wagnerwagner.merx.cart.create:before' => function (Wagnerwagner\Merx\Cart $cart, array $data): void {}
Parameters
| Name | Type | Default |
|---|---|---|
$cart |
Cart |
- |
$data |
array |
- |
Return type
void