Example #1
0
    public function run()
    {
        V3toysDeliveryWidgetAsset::register($this->view);
        $js = Json::encode($this->clientOptions);
        $this->view->registerJs(<<<JS
new sx.classes.V3toysDelivery({$js});
JS
);
        return $this->render($this->viewFile);
    }
Example #2
0
    ?>
-delivery-post"
                    value="<?php 
    echo \v3toys\skeeks\models\V3toysOrder::SHIPPING_METHOD_POST;
    ?>
"
                    <?php 
    echo \v3toys\skeeks\models\V3toysOrder::SHIPPING_METHOD_POST == $widget->getCurrentValue() ? "checked" : "";
    ?>
/>
                <label for="<?php 
    echo $widget->id;
    ?>
-delivery-post">
                    <span class="icon"><img src="<?php 
    echo \v3toys\skeeks\widgets\delivery\assets\V3toysDeliveryWidgetAsset::getAssetUrl('img/delivery-post.png');
    ?>
" alt=""></span>
                    Почта России <span class="small">- <?php 
    echo \Yii::$app->money->convertAndFormat(\Yii::$app->v3toysSettings->currentShipping->postMinPrice);
    ?>
</span>
                </label>
            </div>
        <?php 
}
?>

    </div>
<?php 
echo \yii\helpers\Html::endTag("div");