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": "*"
<?= \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',
]); ?>
<?= \skeeks\cms\shopCartItemsWidget\ShopCartItemsListWidget::widget([
'dataProvider' => new \yii\data\ActiveDataProvider([
'query' => $model->getShopBaskets(),
'pagination' =>
[
'defaultPageSize' => 100,
'pageSizeLimit' => [1, 100],
],
]),
]); ?>
<?= \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