Download the PHP package shortcutmediaro/yii2-cart without Composer
On this page you can find all versions of the php package shortcutmediaro/yii2-cart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-cart
Shopping cart extension for Yii2
@todo: upgrade readme
Using the shopping cart
Operations with the shopping cart are very straightforward when using a models that implement one of the two cart interfaces.
The cart object can be accessed under \Yii::$app->cart and can be overridden in configuration if you need to customize it.
Items in the cart
Products/items that are added to the cart are serialized/unserialized when saving and loading data from cart storage. If you are using Active Record models as products/discounts, make sure that you are omitting any unnecessary references from the serialized data to keep it compact.