<?php Shop::register('js/print.js'); Yii::app()->clientScript->registerScript('print', " \$('#slip').printElement(); "); ?> <div id="slip"> <table width="100%" border="0"> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php $model->deliveryAddress->renderAddress(); ?> <br> <br> <strong><?php echo Shop::t('Payment Method'); ?> </strong> <?php echo $model->paymentMethod->title; ?> <br> <strong><?php echo Shop::t('Order number'); ?> </strong> <?php echo $model->order_id; ?>
public static function pricingInfo() { Shop::register('js/jquery.tools.min.js'); Shop::register('css/shop.css'); Yii::app()->clientScript->registerScript('tooltip', "\$('.price_information').tooltip(); "); echo '<p class="price_information">'; echo Shop::t('All prices are including VAT') . '<br />'; echo Shop::t('All prices excluding shipping costs'); echo '</p>'; echo '<div class="tooltip">'; Yii::app()->controller->renderPartial('/shippingMethod/index'); echo '</div>'; }
<?php Shop::register('css/shop.css'); $this->breadcrumbs = array(Shop::t('Orders') => array('index'), $model->order_id); Shop::renderFlash(); ?> <h2> <?php echo Shop::t('Order'); ?> #<?php echo $model->order_id; ?> </h2> <h3> <?php echo Shop::t('Ordering Info'); ?> </h3> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('order_id', 'customer_id', 'comment', array('label' => Shop::t('Ordering Date'), 'value' => date('d. m. Y G:i', $model->ordering_date)), array('label' => Shop::t('Status'), 'value' => Shop::t($model->status))))); if (Shop::module()->useWithYum && Yii::app()->user->isAdmin() || Yii::app()->user->id == 1) { echo CHtml::link(Shop::t('Update order status'), array('//shop/order/update', 'id' => $model->order_id)); } ?> <h3> <?php echo Shop::t('Customer Info'); ?> </h3>
<?php $folder = Shop::module()->productImagesFolder; if ($model->filename) { $path = Yii::app()->baseUrl . '/' . $folder . '/' . $model->filename; } else { $path = Shop::register('no-pic.jpg'); } echo CHtml::image($path, $model->title, array('title' => $model->title, 'style' => 'margin: 10px;', 'width' => isset($thumb) && $thumb ? Shop::module()->imageWidthThumb : Shop::module()->imageWidth)); if (Shop::module()->useWithYum && Yii::app()->user->isAdmin()) { echo CHtml::link(Yii::t('ShopModule.shop', 'Delete Image'), array('delete', 'id' => $model->id)); }
<div class="view"> <h3> <?php echo CHtml::link(CHtml::encode($data->title), array('products/view', 'id' => $data->product_id)); ?> </h3> <div class="product-overview-image"> <?php if ($data->images) { $this->renderPartial('/image/view', array('thumb' => true, 'model' => $data->images[0])); } else { echo CHtml::image(Shop::register('no-pic.jpg')); } ?> </div> <div class="product-overview-description"> <p> <?php echo CHtml::encode($data->description); ?> </p> <p><strong> <?php echo Shop::priceFormat($data->price); ?> </strong> <br /> <p><?php echo Shop::pricingInfo(); ?> </p>