Heure de publication: mercredi 28 décembre 2016 (il y a 2 ans)

Créé par: Семенов Александр Сергеевич

Catégorie: Pour le magasin

Version actuelle: 1.0.2
25 mars 2019 19:04:08 (il y a 5 mois)

Packagist: skeeks/cms-shop-cart-steps-widget

: https://github.com/skeeks-cms/cms-shop-cart-steps-widget

: 1046 (Par mois: 29)

Type: Компонент

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-steps-widget "*"

or add

"skeeks/cms-shop-cart-steps-widget": "*"

Example

<?= \skeeks\cms\shopCartStepsWidget\ShopCartStepsWidget::widget(); ?>

View file

<?php
/* @var $this yii\web\View */
/* @var $widget \skeeks\cms\shop\widgets\cart\ShopCartStepsWidget */
\skeeks\cms\shopCartStepsWidget\assets\ShopCartStepsWidgetAsset::register($this);
$widget     = $this->context;
?>
<?= \yii\helpers\Html::beginTag('div', $widget->options); ?>
    <ul class="process-steps nav nav-justified">
        <li class="active">
            <a href="<?= \yii\helpers\Url::to(['/shop/cart']); ?>" data-pjax="0">1</a>
            <h5><?= \Yii::t('skeeks/shop-cart-steps-widget', 'Cart'); ?></h5>
        </li>
        <li class="<?= in_array(\Yii::$app->controller->action->getUniqueId(), ['shop/cart/checkout', 'shop/order/finish']) ? "active" : ""; ?>">
            <a href="<?= \yii\helpers\Url::to(['/shop/cart/checkout']); ?>" data-pjax="0">2</a>
            <h5><?= \Yii::t('skeeks/shop-cart-steps-widget', 'Ordering'); ?></h5>
        </li>
        <li class="<?= \Yii::$app->controller->action->getUniqueId() == 'shop/order/finish' ? "active" : ""; ?>">
            <a href="#">3</a>
            <h5><?= \Yii::t('skeeks/shop-cart-steps-widget', 'Ready order'); ?></h5>
        </li>
    </ul>
<?= \yii\helpers\Html::endTag('div'); ?>

Links


skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com

CHANGELOG

1.0.2

  • Update design

1.0.1

  • 4 steps template

1.0.0

  • Update

1.0.0-alpha2

  • Dependecy skeeks/cms-shop

1.0.0-alpha

  • Can be used

Tous les commentaires (0)
Sans commentaires

dev-master — 25 mars 2019 19:04:08 (il y a 5 mois)

1.0.2 — 25 mars 2019 19:04:08 (il y a 5 mois)

1.0.1 — 16 oct. 2017 19:08:35 (il y a un an)

1.0.0 — 31 août 2017 22:40:39 (il y a un an)

1.0.0-alpha2 — 28 déc. 2016 18:29:40 (il y a 2 ans)

1.0.0-alpha — 28 déc. 2016 16:55:54 (il y a 2 ans)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

"skeeks/cms-shop-cart-steps-widget": "*"

Запустите обновление зависимостей


Читать про обнолвение SkeekS CMS