Пример #1
0
                                                </span>
                                            </td>
                                        </tr>

                                        <tr class="shipping">
                                            <th>Shipping and Handling</th>
                                            <td>Free Shipping</td>
                                        </tr>

                                        <tr class="order-total">
                                            <th>Order Total</th>
                                            <td>
                                                <strong>
                                                    <span class="amount">
                                                        <?php 
    echo Custom::getCurrencySymbol()['bdt'] . ' ' . number_format($grand_total, 2);
    ?>
                                                    </span>
                                                </strong>
                                            </td>
                                        </tr>
                                        
                                    </tfoot>
                                </table>

                                <?php 
    echo Html::beginForm('/checkout', 'post', ['name' => 'place_order']);
    ?>
                                <div id="payment">
                                    <ul class="payment_methods methods">
                                        <li class="payment_method_bacs">
Пример #2
0
    <div class="single-product single-shop-product">
        <div class="product-upper">
            <?php 
$img_src = "/uploads/product_image/{$model->resourcesProducts[0]->resources->value}";
echo Html::img($img_src, ['alt' => $model->display_name]);
?>
        </div>
        <h2>
            <?php 
echo Html::a($model->display_name, ['/item', 'id' => $model->id, 'name' => Html::encode($model->name)]);
?>
        </h2>
        <div class="product-carousel-price">
            <ins>
                <?php 
echo Custom::getCurrencySymbol()['bdt'] . ' ' . $model->selling_price;
?>
            </ins>
        </div>  

        <div class="product-option-shop">
            <?php 
echo Html::a('<i class="fa fa-shopping-cart"></i> Add to cart', Url::to(['/cart', 'id' => $model->id, 'name' => Html::encode($model->name)]), ['class' => 'add-to-cart-link add_to_cart_button_1', 'data-id' => $model->id]);
?>
            <?php 
// echo Html::a('Add to cart', Url::to(['/cart', 'id' => $model->id, 'name' => Html::encode($model->name)]), ['class' => '', 'data-id' => $model->id]);
?>
        </div>                       
    </div>
</li>
Пример #3
0
    echo Html::a('<i class="fa fa-shopping-cart"></i> Add to cart', Url::to(['/cart', 'id' => $tp->id, 'name' => Html::encode($tp->name)]), ['class' => 'add-to-cart-link', 'data-id' => $tp->id]);
    ?>
                                        <?php 
    echo Html::a('<i class="fa fa-link"></i> See details', Url::to(['/item', 'id' => $tp->id, 'name' => Html::encode($tp->name)]), ['class' => 'view-details-link']);
    ?>
                                    </div>
                                </div>

                                <h2><?php 
    echo Html::a($tp->display_name, Url::to(['/item', 'id' => $tp->id, 'name' => Html::encode($tp->name)]));
    ?>
</h2>

                                <div class="product-carousel-price">
                                    <ins><?php 
    echo Custom::getCurrencySymbol()['bdt'] . " {$tp->selling_price}";
    ?>
</ins>
                                </div> 
                            </div>

                        <?php 
}
?>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div> <!-- End main content area -->
Пример #4
0
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="container">
    <div class="profile-view">

        <h1><?php 
echo Html::encode($this->title);
?>
</h1>

        <p>
            <?php 
echo Html::a(Yii::t('app', 'Orders'), ['orders'], ['class' => 'btn btn-info', 'data' => ['method' => 'post']]);
echo Html::a(Yii::t('app', 'Set Cart Amount'), ['cart_amount'], ['class' => 'btn btn-warning', 'data' => ['method' => 'post']]);
?>
        </p>

        <?php 
//    $parent_category_name = NULL;
//    if (!empty($model->parent_catrgory_id)) {
//        $parent_category = Category::find()->parentCategoryById($model->parent_catrgory_id)->one();
//        $parent_category_name = $parent_category->display_name;
//    }
?>

        <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['email', ['attribute' => 'name', 'value' => $model->memberProfiles[0]->name], ['attribute' => 'address', 'value' => $model->memberProfiles[0]->address], ['attribute' => 'contact_number', 'value' => $model->memberProfiles[0]->contact_number], ['attribute' => 'max_cart_amount', 'value' => Custom::getCurrencySymbol()['bdt'] . ' ' . number_format($model->memberProfiles[0]->max_cart_amount, 2)]]]);
?>
    </div>
</div>