Veröffentlichungszeit: Mittwoch, 28. Dezember 2016 (vor 4 Jahren)
Erstellt von: Семенов Александр Сергеевич
Kategorie: Für ein Geschäft
Aktuelle Version:
01.01.1970, 03:00:00 (vor 51 Jahren)
Packagist: skeeks/cms-shop-cart-steps-widget
: https://github.com/skeeks-cms/cms-shop-cart-steps-widget
:
Typ: Компонент
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 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
dev-master — 01.01.1970, 03:00:00 (vor 51 Jahren)
1.0.2 — 01.01.1970, 03:00:00 (vor 51 Jahren)
1.0.1 — 01.01.1970, 03:00:00 (vor 51 Jahren)
1.0.0 — 01.01.1970, 03:00:00 (vor 51 Jahren)
1.0.0-alpha2 — 01.01.1970, 03:00:00 (vor 51 Jahren)
1.0.0-alpha — 01.01.1970, 03:00:00 (vor 51 Jahren)
Стандартная установка:
Добавьте composer.json файл вашего проекта:
"skeeks/cms-shop-cart-steps-widget": "*"
Запустите обновление зависимостей
Alle Kommentare (0)