Шаги оформления заказа в магазине (виджет)

Шаги оформления заказа в магазине (виджет)

skeeks/cms-shop-cart-steps-widget

Семенов Александр

Install

Widget shop cart steps for SkeekS CMS

@разработчик решения

Photos & Screenshots

Шаги оформления заказа в магазине (виджет)

Publication time: Wednesday, December 28, 2016 (11 months ago)

Created by: Семенов Александр

Category: Для магазина

Актуальная версия: 1.0.1
Oct 16, 2017, 7:08:35 PM (a month ago)

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

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

: 416 (Per month: 34)

Тип: Компонент

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.1

  • 4 steps template

1.0.0

  • Update

1.0.0-alpha2

  • Dependecy skeeks/cms-shop

1.0.0-alpha

  • Can be used

All Comments (0)
No Comments

dev-master — Oct 16, 2017, 7:08:35 PM (a month ago)

1.0.1 — Oct 16, 2017, 7:08:35 PM (a month ago)

1.0.0 — Aug 31, 2017, 10:40:39 PM (3 months ago)

1.0.0-alpha2 — Dec 28, 2016, 6:29:40 PM (11 months ago)

1.0.0-alpha — Dec 28, 2016, 4:55:54 PM (11 months ago)

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

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

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

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


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