Skip to content

skeeks-cms/cms-shop-cart-items-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Widget shop cart steps for SkeekS CMS

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!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com