本文整理汇总了PHP中Product::convertPrice方法的典型用法代码示例。如果您正苦于以下问题:PHP Product::convertPrice方法的具体用法?PHP Product::convertPrice怎么用?PHP Product::convertPrice使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Product
的用法示例。
在下文中一共展示了Product::convertPrice方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smartyTranslate
<div id="HOOK_TOP_PAYMENT"><?php
echo $_smarty_tpl->getVariable('HOOK_TOP_PAYMENT')->value;
?>
</div>
<?php
if ($_smarty_tpl->getVariable('HOOK_PAYMENT')->value) {
?>
<?php
if (!$_smarty_tpl->getVariable('opc')->value) {
?>
<h4><?php
echo smartyTranslate(array('s' => 'Please select your preferred payment method to pay the amount of'), $_smarty_tpl);
?>
<span class="price"><?php
echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('total_price')->value), $_smarty_tpl);
?>
</span> <?php
if ($_smarty_tpl->getVariable('taxes_enabled')->value) {
echo smartyTranslate(array('s' => '(tax incl.)'), $_smarty_tpl);
}
?>
</h4><br /><?php
}
?>
<?php
if ($_smarty_tpl->getVariable('opc')->value) {
?>
<div id="opc_payment_methods-content"><?php
}
?>
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:31,代码来源:88e2c13268f773354d18068052bf7fc33dc9d2b8.file.order-payment.tpl.php
示例2: Smarty_variable
<br/>
<?php
if ($_smarty_tpl->getVariable('show_wrapping')->value) {
?>
<?php
$_smarty_tpl->tpl_vars['blockcart_cart_flag'] = new Smarty_variable(constant('Cart::ONLY_WRAPPING'), null, null);
?>
<span><?php
echo smartyTranslate(array('s' => 'Wrapping', 'mod' => 'blockcart'), $_smarty_tpl);
?>
</span>
<span id="cart_block_wrapping_cost" class="price cart_block_wrapping_cost"><?php
if ($_smarty_tpl->getVariable('priceDisplay')->value == 1) {
echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('cart')->value->getOrderTotal(false, $_smarty_tpl->getVariable('blockcart_cart_flag')->value)), $_smarty_tpl);
} else {
echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('cart')->value->getOrderTotal(true, $_smarty_tpl->getVariable('blockcart_cart_flag')->value)), $_smarty_tpl);
}
?>
</span>
<br/>
<?php
}
?>
<?php
if ($_smarty_tpl->getVariable('show_tax')->value && isset($_smarty_tpl->getVariable('tax_cost', null, true, false)->value)) {
?>
<span><?php
echo smartyTranslate(array('s' => 'Tax', 'mod' => 'blockcart'), $_smarty_tpl);
?>
</span>
<span id="cart_block_tax_cost" class="price ajax_cart_tax_cost"><?php
开发者ID:priyankajsr19,项目名称:indusdiva2,代码行数:31,代码来源:687f4356ddea4b57724cc7ae15c176072f32b9ad.file.blockuserinfo.tpl.php
示例3: ob_start
"link": "<?php
echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php', true);
?>
?deleteDiscount=<?php
echo $_smarty_tpl->tpl_vars['discount']->value['id_discount'];
?>
",
"price": "-<?php
if ($_smarty_tpl->tpl_vars['discount']->value['value_real'] != '!') {
if ($_smarty_tpl->getVariable('priceDisplay')->value == 1) {
ob_start();
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']), $_smarty_tpl);
echo html_entity_decode(ob_get_clean(), 2, 'UTF-8');
} else {
ob_start();
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['discount']->value['value_real']), $_smarty_tpl);
echo html_entity_decode(ob_get_clean(), 2, 'UTF-8');
}
}
?>
"
}
<?php
if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['discounts']['last']) {
?>
,<?php
}
}
}
}
?>
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:31,代码来源:96cbbe13ca9ca8825953252b117e44f3cc1b41ac.file.blockcart-json.tpl.php
示例4: smartyTranslate
"><?php
echo smartyTranslate(array('s' => 'products', 'mod' => 'blockuserinfo'), $this);
?>
</span>
<span class="ajax_cart_total<?php
if ($this->_tpl_vars['cart_qties'] == 0) {
?>
hidden<?php
}
?>
"><?php
if ($this->_tpl_vars['cart_qties'] > 0) {
if ($this->_tpl_vars['priceDisplay'] == 1) {
echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(false, 4)), $this);
} else {
echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(true, 4)), $this);
}
}
?>
</span>
<span class="ajax_cart_no_product<?php
if ($this->_tpl_vars['cart_qties'] > 0) {
?>
hidden<?php
}
?>
"><?php
echo smartyTranslate(array('s' => '(empty)', 'mod' => 'blockuserinfo'), $this);
?>
</span>
</li>
示例5: smartyTranslate
?>
</a></h3>
</div>
<div class="right_block">
<?php
if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value && (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] || isset($_smarty_tpl->tpl_vars['product']->value['available_for_order']) && $_smarty_tpl->tpl_vars['product']->value['available_for_order'])) {
?>
<div>
<?php
if (isset($_smarty_tpl->tpl_vars['product']->value['show_price']) && $_smarty_tpl->tpl_vars['product']->value['show_price'] && !isset($_smarty_tpl->getVariable('restricted_country_mode', null, true, false)->value)) {
?>
<span class="price"><?php
if (!$_smarty_tpl->getVariable('priceDisplay')->value) {
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price']), $_smarty_tpl);
} else {
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value['price_tax_exc']), $_smarty_tpl);
}
?>
</span><?php
}
?>
</div>
<?php
}
?>
<a class="button" href="<?php
echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['link'], 'htmlall', 'UTF-8');
?>
" title="<?php
echo smartyTranslate(array('s' => 'View'), $_smarty_tpl);
?>
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:31,代码来源:eead9697c51d591bbb1b9b592f048c09db1d9f77.file.product-list.tpl.php
示例6: smartyTranslate
<h4><span class="product_name"><?php
echo $this->_tpl_vars['product']['details']->name;
?>
</span><?php
if (isset($this->_tpl_vars['product']['details']->new) && $this->_tpl_vars['product']['details']->new) {
?>
<span class="new"><?php
echo smartyTranslate(array('s' => 'new'), $this);
?>
</span><?php
}
?>
</h4>
<div class="prices">
<p class="price"><?php
echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['details']->getPrice(true, $this->_tpl_vars['product']['details']->getDefaultAttribute($this->_tpl_vars['product']['id_product']))), $this);
?>
</p>
<?php
if ($this->_tpl_vars['product']['details']->on_sale) {
?>
<span class="on_sale"><?php
echo smartyTranslate(array('s' => 'On sale!'), $this);
?>
</span>
<?php
} elseif (($this->_tpl_vars['product']['details']->reduction_price != 0 || $this->_tpl_vars['product']['details']->reduction_percent != 0) && ($this->_tpl_vars['product']['details']->reduction_from == $this->_tpl_vars['product']['details']->reduction_to || (is_array($_tmp = time()) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')) <= $this->_tpl_vars['product']['details']->reduction_to && (is_array($_tmp = time()) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')) >= $this->_tpl_vars['product']['details']->reduction_from)) {
?>
<span class="discount"><?php
echo smartyTranslate(array('s' => 'Price lowered!'), $this);
?>
示例7: smartyTranslate
?>
</span><?php
if ($this->_tpl_vars['priceDisplay'] == 2) {
?>
<?php
echo smartyTranslate(array('s' => 'Tax inc.', 'mod' => 'homefeatured'), $this);
}
?>
</p><?php
}
?>
<?php
if ($this->_tpl_vars['priceDisplay']) {
?>
<p class="price_container"><span class="price"><?php
echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['price_tax_exc']), $this);
?>
</span><?php
if ($this->_tpl_vars['priceDisplay'] == 2) {
?>
<?php
echo smartyTranslate(array('s' => 'Tax exc.', 'mod' => 'homefeatured'), $this);
}
?>
</p><?php
}
?>
<a class="button" href="<?php
echo $this->_tpl_vars['product']['link'];
?>
" title="<?php
示例8:
}
?>
</td>
<td class="cart_unit">
<span class="price" id="product_price_<?php
echo $_smarty_tpl->getVariable('product')->value['id_product'];
?>
_<?php
echo $_smarty_tpl->getVariable('product')->value['id_product_attribute'];
?>
">
<?php
if (!$_smarty_tpl->getVariable('priceDisplay')->value) {
echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('product')->value['price_wt']), $_smarty_tpl);
} else {
echo Product::convertPrice(array('price' => $_smarty_tpl->getVariable('product')->value['price']), $_smarty_tpl);
}
?>
</span>
</td>
<td class="cart_quantity"<?php
if (isset($_smarty_tpl->getVariable('customizedDatas', null, true, false)->value[$_smarty_tpl->getVariable('productId', null, true, false)->value][$_smarty_tpl->getVariable('productAttributeId', null, true, false)->value]) && $_smarty_tpl->getVariable('quantityDisplayed')->value == 0) {
?>
<?php
}
?>
style="text-align: center;">
<?php
if (isset($_smarty_tpl->getVariable('customizedDatas', null, true, false)->value[$_smarty_tpl->getVariable('productId', null, true, false)->value][$_smarty_tpl->getVariable('productAttributeId', null, true, false)->value]) && $_smarty_tpl->getVariable('quantityDisplayed')->value == 0) {
?>
<span id="cart_quantity_custom_<?php
开发者ID:priyankajsr19,项目名称:shalu,代码行数:31,代码来源:7281fb04981990cd1a917545c0be60cae7972dbe.file.shopping-cart-product-line.tpl.php
示例9: smartyTranslate
?>
<?php
if (!$this->_tpl_vars['priceDisplay'] || $this->_tpl_vars['priceDisplay'] == 2) {
echo Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_real'] * -1), $this);
if ($this->_tpl_vars['priceDisplay'] == 2) {
?>
<?php
echo smartyTranslate(array('s' => '+Tx'), $this);
?>
<br /><?php
}
}
?>
<?php
if ($this->_tpl_vars['priceDisplay']) {
echo Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_tax_exc'] * -1), $this);
if ($this->_tpl_vars['priceDisplay'] == 2) {
?>
<?php
echo smartyTranslate(array('s' => '-Tx'), $this);
}
}
?>
<?php
}
?>
</span></td>
</tr>
<?php
}
}
示例10: smartyTranslate
}
?>
</td>
<td class="discount_minimum" style="text-align:center">
<?php
if ($_smarty_tpl->tpl_vars['discountDetail']->value['minimal'] == 0) {
?>
<?php
echo smartyTranslate(array('s' => 'none'), $_smarty_tpl);
?>
<?php
} else {
?>
<?php
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['discountDetail']->value['minimal']), $_smarty_tpl);
?>
<?php
}
?>
</td>
<td class="discount_expiration_date" style="text-align:center"><?php
echo Tools::dateFormat(array('date' => $_smarty_tpl->tpl_vars['discountDetail']->value['date_to']), $_smarty_tpl);
?>
</td>
</tr>
<?php
}
}
开发者ID:priyankajsr19,项目名称:indusdiva2,代码行数:31,代码来源:80d7dadb96d137270e6e5be653f3b376cdb59890.file.discount.tpl.php
示例11: foreach
foreach ($_from as $this->_tpl_vars['quantity_discount']) {
$this->_foreach['quantity_discounts']['iteration']++;
?>
<td>
<?php
if ((is_array($_tmp = $this->_tpl_vars['quantity_discount']['id_discount_type']) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)) == 1) {
?>
-<?php
echo is_array($_tmp = $this->_tpl_vars['quantity_discount']['value']) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp);
?>
%
<?php
} else {
?>
-<?php
echo Product::convertPrice(array('price' => is_array($_tmp = $this->_tpl_vars['quantity_discount']['value']) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp)), $this);
?>
<?php
}
?>
</td>
<?php
}
}
unset($_from);
?>
</tr>
</table>
</div>
<?php
示例12: is_array
'nameDescription': '<?php
echo is_array($_tmp = is_array($_tmp = is_array($_tmp = $this->_tpl_vars['discount']['name']) ? $this->_run_mod_handler('cat', true, $_tmp, ' : ') : smarty_modifier_cat($_tmp, ' : ')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['discount']['description']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['discount']['description'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 18, '...') : smarty_modifier_truncate($_tmp, 18, '...');
?>
',
'link': '<?php
echo $this->_tpl_vars['base_dir_ssl'];
?>
order.php?deleteDiscount=<?php
echo $this->_tpl_vars['discount']['id_discount'];
?>
',
'price': '-<?php
if ($this->_tpl_vars['priceDisplay'] == 1) {
echo is_array($_tmp = Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_tax_exc']), $this)) ? $this->_run_mod_handler('html_entity_decode', true, $_tmp, 2, 'UTF-8') : html_entity_decode($_tmp, 2, 'UTF-8');
} else {
echo is_array($_tmp = Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_real']), $this)) ? $this->_run_mod_handler('html_entity_decode', true, $_tmp, 2, 'UTF-8') : html_entity_decode($_tmp, 2, 'UTF-8');
}
?>
'
}
<?php
if (!($this->_foreach['discounts']['iteration'] == $this->_foreach['discounts']['total'])) {
?>
,<?php
}
}
}
unset($_from);
}
?>
],
示例13: round
</span>
<span class="product_info">
<span class="price"><?php
if (!$_smarty_tpl->getVariable('priceDisplay')->value) {
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['productitem']->value['price']), $_smarty_tpl);
} else {
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['productitem']->value['price_tax_exc']), $_smarty_tpl);
}
?>
</span>
<?php
if ($_smarty_tpl->tpl_vars['productitem']->value['price_without_reduction'] - $_smarty_tpl->tpl_vars['productitem']->value['price'] > 1) {
?>
<span class="strike_price">MRP <?php
if (!$_smarty_tpl->getVariable('priceDisplay')->value) {
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['productitem']->value['price_without_reduction']), $_smarty_tpl);
?>
<?php
}
?>
</span>
<span class="clear" style="display:block;color:#DA0F00;">(<?php
echo round(($_smarty_tpl->tpl_vars['productitem']->value['price_without_reduction'] - $_smarty_tpl->tpl_vars['productitem']->value['price']) / $_smarty_tpl->tpl_vars['productitem']->value['price_without_reduction'] * 100);
?>
% Off)</span>
<?php
}
?>
</span>
</a>
开发者ID:priyankajsr19,项目名称:indusdiva2,代码行数:31,代码来源:3a09277f2721b93a453f72e4432c65eb0831dfb1.file.manufacturer.tpl.php
示例14: htmlspecialchars
?>
" title="<?php
echo htmlspecialchars($_smarty_tpl->tpl_vars['orderProduct']->value['name']);
?>
">
<?php
echo smarty_modifier_escape(smarty_modifier_truncate($_smarty_tpl->tpl_vars['orderProduct']->value['name'], 15, '...'), 'htmlall', 'UTF-8');
?>
</a><br />
<?php
if ($_smarty_tpl->getVariable('crossDisplayPrice')->value && $_smarty_tpl->tpl_vars['orderProduct']->value['show_price'] == 1 && !isset($_smarty_tpl->getVariable('restricted_country_mode', null, true, false)->value) && !$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value) {
?>
<span class="price_display">
<span class="price"><?php
echo Product::convertPrice(array('price' => $_smarty_tpl->tpl_vars['orderProduct']->value['displayed_price']), $_smarty_tpl);
?>
</span>
</span><br />
<?php
} else {
?>
<br />
<?php
}
?>
<a title="<?php
echo smartyTranslate(array('s' => 'View', 'mod' => 'crossselling'), $_smarty_tpl);
?>
" href="<?php
echo $_smarty_tpl->tpl_vars['orderProduct']->value['link'];
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:31,代码来源:c6d87fba77b6f5062bb71b210519bc78b8f1c6f8.file.crossselling.tpl.php
示例15: Smarty_Variable
<tr>
<?php
$_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable();
$_from = $_smarty_tpl->getVariable('quantity_discounts')->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if ($_smarty_tpl->_count($_from) > 0) {
foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value) {
?>
<td>
<?php
if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price'] != 0 || $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'] == 'amount') {
?>
-<?php
echo Product::convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])), $_smarty_tpl);
?>
<?php
} else {
?>
-<?php
echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']);
?>
%
<?php
}
?>
</td>
<?php
}
开发者ID:nicolasjeol,项目名称:hec-ecommerce,代码行数:31,代码来源:f18b73dfc2a5d4fbce3a68d8a52480d1a6337809.file.product.tpl.php