skeeks / cms-shop-cart-items-widget
Widget shop cart items for SkeekS CMS
Installs: 1 937
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Type:yii2-extension
Requires
This package is auto-updated.
Last update: 2024-10-15 13:50:45 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist skeeks/cms-shop-cart-items-widget "*"
or add
"skeeks/cms-shop-cart-items-widget": "*"
Example
<?= \skeeks\cms\shopCartItemsWidget\ShopCartItemsListWidget::widget([ 'dataProvider' => new \yii\data\ActiveDataProvider([ 'query' => \Yii::$app->shop->shopFuser->getShopBaskets(), 'pagination' => [ 'defaultPageSize' => 100, 'pageSizeLimit' => [1, 100], ] ]), //'headerView' => '@app/view/.../header', //'footerView' => '@app/view/.../footer', //'itemView' => '@app/view/.../item', ]); ?>
Example cart items
<?= \skeeks\cms\shopCartItemsWidget\ShopCartItemsListWidget::widget([ 'dataProvider' => new \yii\data\ActiveDataProvider([ 'query' => $model->getShopBaskets(), 'pagination' => [ 'defaultPageSize' => 100, 'pageSizeLimit' => [1, 100], ], ]), ]); ?>
Example order items
<?= \skeeks\cms\shopCartItemsWidget\ShopCartItemsListWidget::widget([ 'dataProvider' => new \yii\data\ActiveDataProvider([ 'query' => $model->getShopBaskets(), 'pagination' => [ 'defaultPageSize' => 100, 'pageSizeLimit' => [1, 100], ], ]), 'footerView' => false, 'itemView' => '@skeeks/cms/shopCartItemsWidget/views/items-list-order-item', ]); ?>
##Links
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com