当前位置: 首页>>代码示例>>PHP>>正文


PHP hikashop_getDate函数代码示例

本文整理汇总了PHP中hikashop_getDate函数的典型用法代码示例。如果您正苦于以下问题:PHP hikashop_getDate函数的具体用法?PHP hikashop_getDate怎么用?PHP hikashop_getDate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了hikashop_getDate函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getCurrentDate

	<?php 
if (hikashop_level(1)) {
    $open_hour = $this->config->get('store_open_hour', 0);
    $close_hour = $this->config->get('store_close_hour', 0);
    $open_minute = $this->config->get('store_open_minute', 0);
    $close_minute = $this->config->get('store_close_minute', 0);
    if ($open_hour != $close_hour || $open_minute != $close_minute) {
        function getCurrentDate($format = '%H')
        {
            if (version_compare(JVERSION, '1.6.0', '>=')) {
                $format = str_replace(array('%H', '%M'), array('H', 'i'), $format);
            }
            return (int) JHTML::_('date', time() - date('Z'), $format, null);
        }
        $current_hour = hikashop_getDate(time(), '%H');
        $current_minute = hikashop_getDate(time(), '%M');
        $closed = false;
        if ($open_hour < $close_hour || $open_hour == $close_hour && $open_minute < $close_minute) {
            if ($current_hour < $open_hour || $current_hour == $open_hour && $current_minute < $open_minute) {
                $closed = true;
            }
            if ($close_hour < $current_hour || $current_hour == $close_hour && $close_minute < $current_minute) {
                $closed = true;
            }
        } else {
            $closed = true;
            if ($current_hour < $close_hour || $current_hour == $close_hour && $current_minute < $close_minute) {
                $closed = false;
            }
            if ($open_hour < $current_hour || $current_hour == $open_hour && $open_minute < $current_minute) {
                $closed = false;
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:step.php

示例2: strip_tags

						<a target="_blank" href="<?php 
    echo strip_tags($row->click_referer);
    ?>
">
						<?php 
    if (strlen(strip_tags($row->click_referer)) > 50) {
        $row->click_referer = strip_tags($row->click_referer);
        $row->click_referer = substr($row->click_referer, 0, 20) . '...' . substr($row->click_referer, -20);
    }
    echo $row->click_referer;
    ?>
						</a>
					</td>
					<td>
						<?php 
    echo hikashop_getDate($row->click_created, '%Y-%m-%d %H:%M');
    ?>
					</td>
					<?php 
    if ($this->pageInfo->filter->unpaid) {
        ?>
					<td align="center">
						<?php 
        if (bccomp($row->click_partner_price, 0, 5)) {
            echo $this->currencyHelper->format($row->click_partner_price, $this->user->user_currency_id);
        }
        ?>
					</td>
					<?php 
    }
    ?>
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:clicks.php

示例3: array

                $cartProducts[] = array('PRODUCT_NAME' => $item->product_name, 'PRODUCT_PRICE' => $item->prices[0]->price_value, 'PRODUCT_QUANTITY' => $item->product_quantity);
            }
            $templates = array();
            $templates['PRODUCT_LINE'] = $cartProducts;
            if (!empty($cids)) {
                $vars = array('product_listing' => 1);
            } else {
                $vars = array('product_listing' => 0);
            }
        } elseif (!empty($data['action']['bodyData'])) {
            $texts = array('EMAIL_BODY' => JText::_($data['action']['bodyData']));
        } else {
            $texts = array('EMAIL_BODY' => JText::_('MASS_NOTIFICATION_PRODUCT_EMAIL_BODY'));
        }
        break;
    case 'address_notification':
        $texts = array('EMAIL_BODY' => JText::_('MASS_NOTIFICATION_ADDRESS_EMAIL_BODY'));
        break;
    case 'category_notification':
        $texts = array('EMAIL_BODY' => JText::_('MASS_NOTIFICATION_CATEGORY_EMAIL_BODY'));
        break;
    case 'order_notification':
        $texts = array('EMAIL_BODY' => JText::_('MASS_NOTIFICATION_ORDER_EMAIL_BODY'));
        break;
    case 'user_notification':
        $texts = array('EMAIL_BODY' => JText::_('MASS_NOTIFICATION_USER_EMAIL_BODY'));
        break;
    default:
        $texts = array('EMAIL_BODY' => JText::sprintf('PLEASE_CHECK_MASS_SETTINGS', hikashop_getDate(time())));
        break;
}
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:massaction_notification.preload.php

示例4: report

 function report()
 {
     $config =& hikashop_config();
     $newConfig = new stdClass();
     $newConfig->cron_report = @implode('<br/>', $this->messages);
     if (strlen($newConfig->cron_report) > 800) {
         $newConfig->cron_report = substr($newConfig->cron_report, 0, 795) . '...';
     }
     $config->save($newConfig);
     $saveReport = $config->get('cron_savereport');
     if (!empty($saveReport)) {
         $reportPath = JPath::clean(HIKASHOP_ROOT . trim(html_entity_decode($config->get('cron_savepath'))));
         jimport('joomla.filesystem.folder');
         $parentFolder = dirname($reportPath);
         if (JFolder::exists($parentFolder) || JFolder::create($parentFolder)) {
             file_put_contents($reportPath, "\r\n" . "\r\n" . str_repeat('*', 150) . "\r\n" . str_repeat('*', 20) . str_repeat(' ', 5) . hikashop_getDate(time()) . str_repeat(' ', 5) . str_repeat('*', 20) . "\r\n", FILE_APPEND);
             @file_put_contents($reportPath, @implode("\r\n", $this->messages), FILE_APPEND);
             if ($saveReport == 2 and !empty($this->detailMessages)) {
                 @file_put_contents($reportPath, "\r\n" . "---- Details ----" . "\r\n", FILE_APPEND);
                 @file_put_contents($reportPath, @implode("\r\n", $this->detailMessages), FILE_APPEND);
             }
         }
     }
     $sendreport = $config->get('cron_sendreport');
     if (!empty($sendreport)) {
         $mailer = hikashop_get('class.mail');
         $data = new stdClass();
         $data->report = @implode('<br/>', $this->messages);
         $data->detailreport = @implode('<br/>', $this->detailMessages);
         $mail = $mailer->get('cron_report', $data);
         $mail->subject = JText::_($mail->subject);
         $receiverString = $config->get('cron_sendto');
         $receivers = explode(',', $receiverString);
         if ($sendreport == 1 || !empty($this->detailMessages)) {
             if (!empty($receivers)) {
                 foreach ($receivers as $oneReceiver) {
                     $mail->dst_email = $oneReceiver;
                     $mailer->sendMail($mail);
                 }
             }
         }
     }
 }
开发者ID:q0821,项目名称:esportshop,代码行数:43,代码来源:cron.php

示例5: stdClass

$price->price_value_with_tax = $data->cart->order_full_price;
$data->cart->full_total = new stdClass();
$data->cart->full_total->prices = array($price);
$data->cart->coupon->discount_value =& $data->cart->order_discount_price;
if ($app->isAdmin()) {
    $view = 'order';
} else {
    $view = 'address';
}
$colspan = 4;
$customer_name = @$customer->name;
if (empty($customer_name)) {
    $customer_name = @$data->cart->billing_address->address_firstname . ' ' . @$data->cart->billing_address->address_lastname;
}
$vars = array('LIVE_SITE' => HIKASHOP_LIVE, 'URL' => $order_url, 'ORDER_PRODUCT_CODE' => (bool) $config->get('show_code', false), 'order' => $data->cart, 'user' => $customer, 'billing_address' => @$data->cart->billing_address, 'shipping_address' => @$data->cart->shipping_address);
$texts = array('BILLING_ADDRESS' => JText::_('HIKASHOP_BILLING_ADDRESS'), 'SHIPPING_ADDRESS' => JText::_('HIKASHOP_SHIPPING_ADDRESS'), 'SUMMARY_OF_YOUR_ORDER' => JText::_('SUMMARY_OF_YOUR_ORDER'), 'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'), 'USER_ACCOUNT' => (bool) @$customer->user_cms_id, 'PRODUCT_NAME' => JText::_('CART_PRODUCT_NAME'), 'PRODUCT_CODE' => JText::_('CART_PRODUCT_CODE'), 'PRODUCT_PRICE' => JText::_('CART_PRODUCT_UNIT_PRICE'), 'PRODUCT_QUANTITY' => JText::_('CART_PRODUCT_QUANTITY'), 'PRODUCT_TOTAL' => JText::_('HIKASHOP_TOTAL'), 'ADDITIONAL_INFORMATION' => JText::_('ADDITIONAL_INFORMATION'), 'ORDER_TITLE' => JText::_('YOUR_ORDER'), 'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', $customer_name), 'ORDER_CREATED' => JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE', $url, HIKASHOP_LIVE, hikashop_getDate(time(), '%d %B %Y'), hikashop_getDate(time(), '%H:%M')), 'ORDER_BEGIN_MESSAGE' => JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE), 'ORDER_END_MESSAGE' => JText::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '<br/>' . JText::sprintf('BEST_REGARDS_CUSTOMER', $mail->from_name));
$templates = array();
$products_ids = array();
foreach ($data->cart->products as $item) {
    $products_ids[] = $item->product_id;
}
$productClass->getProducts($products_ids);
$cartProducts = array();
$cartFooters = array();
$group = $config->get('group_options', 0);
$subtotal = 0;
foreach ($data->cart->products as $item) {
    if ($group && $item->order_product_option_parent_id) {
        continue;
    }
    $product = @$productClass->all_products[$item->product_id];
开发者ID:rodhoff,项目名称:MNW,代码行数:31,代码来源:order_creation_notification.preload.php

示例6: onPaymentNotification

 function onPaymentNotification(&$statuses)
 {
     $vars = array();
     foreach ($_REQUEST as $k => $v) {
         $vars[strtoupper($k)] = $v;
     }
     $order_id = (int) @$vars['ORDERID'];
     $order_status = '';
     $dbOrder = $this->getOrder($order_id);
     $this->loadPaymentParams($dbOrder);
     if (empty($this->payment_params)) {
         return false;
     }
     $this->loadOrderData($dbOrder);
     if ($this->payment_params->debug) {
         echo print_r($vars, true) . "\n\n\n";
         echo print_r($dbOrder, true) . "\n\n\n";
         $this->writeToLog(print_r($vars, true));
     }
     if (empty($dbOrder)) {
         echo 'Could not load any order for your notification ' . @$vars['ORDERID'];
         return false;
     }
     $vars['GENERATEDHASH'] = $this->generateHash($_REQUEST, $this->payment_params->shaout_passphrase, $this->payment_params->hash_method, 'out');
     $url = HIKASHOP_LIVE . 'administrator/index.php?option=com_hikashop&ctrl=order&task=edit&order_id=' . $order_id;
     $order_text = "\r\n" . JText::sprintf('NOTIFICATION_OF_ORDER_ON_WEBSITE', $dbOrder->order_number, HIKASHOP_LIVE);
     $order_text .= "\r\n" . str_replace('<br/>', "\r\n", JText::sprintf('ACCESS_ORDER_WITH_LINK', $url));
     $history = new stdClass();
     $email = new stdClass();
     $payment_status = (int) $vars['STATUS'];
     $invalid = false;
     $waiting = false;
     switch (substr($vars['STATUS'], 0, 1)) {
         case '0':
         case '1':
         case '2':
         case '4':
         case '6':
         case '7':
         case '8':
             $invalid = true;
             break;
         case '5':
         case '9':
             $invalid = in_array($vars['STATUS'], array('52', '92', '93'));
             $waiting = in_array($vars['STATUS'], array('51', '55', '59', '99', '91'));
             break;
     }
     if ($invalid || $vars['GENERATEDHASH'] != $vars['SHASIGN'] || empty($vars['SHASIGN'])) {
         if ($vars['GENERATEDHASH'] != $vars['SHASIGN']) {
             $order_text = ' The Hashs didn\'t match. Received: ' . $vars['SHASIGN'] . ' and generated: ' . $vars['GENERATEDHASH'] . "\n\n\n" . "\n\n\n" . ob_get_clean() . "\n\n\n" . "\n\n\n" . $order_text;
             ob_start();
         }
         $email->subject = JText::sprintf('NOTIFICATION_REFUSED_FOR_THE_ORDER', 'Ogone') . 'invalid transaction';
         $email->body = JText::sprintf("Hello,\r\n An Ogone payment notification was not validated. The status code was :" . $vars['STATUS']) . $order_text;
         $this->modifyOrder($order_id, $this->payment_params->invalid_status, false, $email);
         if ($this->payment_params->debug) {
             echo 'invalid transaction' . "\n\n\n";
             $this->writeToLog('invalid transaction: ' . $vars['STATUS'] . "\r\n" . $order_text);
         }
         $dbg = ob_get_clean();
         ob_start();
         $this->showPage('thankyou');
         $msg = ob_get_clean();
         ob_start();
         echo $dbg;
         return $msg;
     }
     $need_authorization = !empty($this->payment_params->authorize_capture) && $this->payment_params->authorize_capture == 'dynamic' && (!empty($this->payment_params->user_id) && !empty($this->payment_params->pwd));
     $payment_params = @$dbOrder->order_payment_params;
     if (!empty($payment_params) && is_string($payment_params)) {
         $payment_params = unserialize($payment_params);
     }
     $payment_params->payment_value = $dbOrder->order_full_price;
     if (!empty($this->payment_params->authorize_capture) && $this->payment_params->authorize_capture != 'capture' || isset($payment_params->need_authorization)) {
         $this->payment_params->authorization_days = (int) @$this->payment_params->authorization_days;
         if (empty($this->payment_params->authorization_days)) {
             $this->payment_params->authorization_days = 12;
         }
         $payment_params->payment_authorized = (int) $vars['PAYID'];
         $payment_params->payment_date = $vars['TRXDATE'];
         $payment_params->payment_auth_renew = hikashop_getDate(time() + $this->payment_params->authorization_days * 86400, '%Y/%m/%d');
     }
     $history->notified = 0;
     $history->data = ob_get_clean();
     if (!$waiting) {
         $order_status = $this->payment_params->verified_status;
         if (!empty($this->payment_params->authorize_capture) && $this->payment_params->authorize_capture != 'capture') {
             $order_status = $this->payment_params->authorized_status;
         }
         if ($dbOrder->order_status == $order_status) {
             $dbg = ob_get_clean();
             ob_start();
             $this->showPage('thankyou');
             $msg = ob_get_clean();
             ob_start();
             echo $dbg;
             return $msg;
         }
     } else {
//.........这里部分代码省略.........
开发者ID:rodhoff,项目名称:MNW,代码行数:101,代码来源:ogone.php

示例7: hikashop_getDate

			</td>
			<td>
				<?php 
echo JHTML::_('calendar', hikashop_getDate(@$this->element->widget_params->start ? @$this->element->widget_params->start : '', '%Y-%m-%d %H:%M'), 'data[widget][widget_params][start]', 'period_start', '%Y-%m-%d %H:%M', array('size' => '20'));
?>
			</td>
		</tr>
		<tr>
			<td class="key" >
				<?php 
echo JText::_('END_DATE');
?>
			</td>
			<td>
				<?php 
echo JHTML::_('calendar', hikashop_getDate(@$this->element->widget_params->end ? @$this->element->widget_params->end : '', '%Y-%m-%d %H:%M'), 'data[widget][widget_params][end]', 'period_end', '%Y-%m-%d %H:%M', array('size' => '20'));
?>
			</td>
		</tr>
		<tr>
			<td class="key" >
				<?php 
echo JText::_('PERIOD');
?>
			</td>
			<td>
				<?php 
echo $this->delay->display('data[widget][widget_params][period]', (int) @$this->element->widget_params->period, 3);
?>
			</td>
		</tr>
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:form.php

示例8: hikashop_getDate

			<td class="key"><label for="data[notify]"><?php 
echo JText::_('NOTIFICATION');
?>
</label></td>
			<td><input type="checkbox" id="data[notify]" name="data[notify]"/><label style="display:inline-block" for="data[notify]"><?php 
echo JText::_('NOTIFY_CUSTOMER');
?>
</label></td>
		</tr>
		<tr class="hikashop_order_created">
			<td class="key"><label><?php 
echo JText::_('DATE');
?>
</label></td>
			<td><span><?php 
echo hikashop_getDate($this->order->order_created, '%Y-%m-%d %H:%M');
?>
</span></td>
		</tr>
		<tr class="hikashop_order_id">
			<td class="key"><label><?php 
echo JText::_('ID');
?>
</label></td>
			<td><span><?php 
echo $this->order->order_id;
?>
</span></td>
		</tr>
<?php 
if (isset($this->edit) && $this->edit === true) {
开发者ID:rodhoff,项目名称:MNW,代码行数:31,代码来源:show_general.php

示例9: hikashop_getDate

echo $this->delayTypeRetaining->display('config[cart_retaining_period]', $this->config->get('cart_retaining_period', 2592000));
?>
						</td>
					</tr>
					<tr>
						<td class="key"><?php 
echo JText::_('CART_RETAINING_PERIOD_CHECK_FREQUENCY');
?>
</td>
						<td>
							<?php 
echo $this->delayTypeCarts->display('config[cart_retaining_period_check_frequency]', $this->config->get('cart_retaining_period_check_frequency', 86400));
?>
<br/>
							<?php 
echo JText::sprintf('LAST_CHECK', hikashop_getDate($this->config->get('cart_retaining_period_checked')));
?>
						</td>
					</tr>
					<tr>
						<td class="key"><?php 
echo JText::_('CLEAN_CART_WHEN_ORDER_IS');
?>
</td>
						<td><?php 
$values = array(JHTML::_('select.option', 'order_created', JText::_('CREATED')), JHTML::_('select.option', 'order_confirmed', JText::_('CONFIRMED')));
echo JHTML::_('select.genericlist', $values, 'config[clean_cart]', 'class="inputbox" size="1"', 'value', 'text', $this->config->get('clean_cart', 'order_created'));
?>
</td>
					</tr>
					<tr>
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:main.php

示例10: defined

 * @version	2.6.0
 * @author	hikashop.com
 * @copyright	(C) 2010-2015 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
while (ob_get_level() > 1) {
    ob_end_clean();
}
$config =& hikashop_config();
$format = $config->get('export_format', 'csv');
$separator = $config->get('csv_separator', ';');
$force_quote = $config->get('csv_force_quote', 1);
$decimal_separator = $config->get('csv_decimal_separator', '.');
$export = hikashop_get('helper.spreadsheet');
$export->init($format, 'hikashop_export', $separator, $force_quote);
if (!empty($this->rows)) {
    $first = array_keys(get_object_vars(reset($this->rows)));
    $export->writeLine($first);
    foreach ($this->rows as $row) {
        if (!empty($row->discount_start)) {
            $row->discount_start = hikashop_getDate($row->discount_start, '%Y-%m-%d %H:%M:%S');
        }
        if (!empty($row->discount_end)) {
            $row->discount_end = hikashop_getDate($row->discount_end, '%Y-%m-%d %H:%M:%S');
        }
        $export->writeLine($row);
    }
}
$export->send();
exit;
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:export.php

示例11: hikashop_get

			<td>
				<?php 
$menuType = hikashop_get('type.menus');
echo $menuType->display('data[waitlist][product_item_id]', @$this->element->product_item_id);
?>
			</td>
		</tr>
		<tr>
			<td class="key">
					<?php 
echo JText::_('DATE');
?>
			</td>
			<td>
				<?php 
echo JHTML::_('calendar', @$this->element->date ? hikashop_getDate(@$this->element->date, '%Y-%m-%d %H:%M') : '', 'data[waitlist][date]', 'date', '%Y-%m-%d %H:%M', array('size' => '20'));
?>
			</td>
		</tr>
	</table>
	<input type="hidden" name="cid[]" value="<?php 
echo @$this->element->waitlist_id;
?>
" />
	<input type="hidden" name="option" value="<?php 
echo HIKASHOP_COMPONENT;
?>
" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="ctrl" value="waitlist" />
	<?php 
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:form.php

示例12: showAvailableChk

    public static function showAvailableChk($shipping_params)
    {
        ?>
		<tr>
			<td class="key" style="padding-bottom:0">
				<label for="data[shipping][shipping_params][shipping_available_from]"><?php 
        echo JText::_('PLG_BF_MANUAL_AVAILABLE_FROM');
        ?>
</label>
			</td>
			<td style="padding-bottom:0">
      <?php 
        echo JHTML::_('calendar', hikashop_getDate(@$shipping_params->shipping_available_from ? @$shipping_params->shipping_available_from : '', '%Y-%m-%d %H:%M'), 'data[shipping][shipping_params][shipping_available_from]', 'shipping_available_from', '%Y-%m-%d %H:%M', array('size' => '8'));
        ?>
			</td>
		</tr>

		<tr>
			<td class="key" style="border-top:none;padding-top:0">
				<label for="data[shipping][shipping_params][shipping_available_to]"><?php 
        echo JText::_('PLG_BF_MANUAL_AVAILABLE_TO');
        ?>
</label>
			</td>
			<td style="border-top:none;padding-top:0">
      <?php 
        echo JHTML::_('calendar', hikashop_getDate(@$shipping_params->shipping_available_to ? @$shipping_params->shipping_available_to : '', '%Y-%m-%d %H:%M'), 'data[shipping][shipping_params][shipping_available_to]', 'shipping_available_to', '%Y-%m-%d %H:%M', array('size' => '8'));
        ?>
			</td>
		</tr>
    <?php 
    }
开发者ID:brainforgeUK,项目名称:plg_bfmanual,代码行数:32,代码来源:bfmanual_configdisplay.php

示例13: getDate

 private function getDate($value, $format = 'm/d/Y')
 {
     $ret = array('y' => 0, 'm' => 0, 'd' => 0, 'h' => 0, 'i' => 0, 's' => 0);
     if (empty($value)) {
         return $ret;
     }
     $dateValue = $value;
     if (preg_match('#^([0-9]+)$#', $value)) {
         if (strlen($value) == 14) {
             $dateValue = substr($value, 0, 4) . '/' . substr($value, 4, 2) . '/' . substr($value, 6, 2);
         } else {
             $dateValue = hikashop_getDate($value, '%Y/%m/%d');
         }
         list($y, $m, $d) = explode('/', $dateValue, 3);
     } else {
         $y = 0;
         $m = 0;
         $d = 0;
         $timestamp = strtotime(str_replace('/', '-', $value));
         if ($timestamp !== false && $timestamp !== -1 && $timestamp > 0) {
             $dateValue = date('Y/m/d', $timestamp);
             list($y, $m, $d) = explode('/', $dateValue, 3);
         } else {
             $v = explode('/', $value, 3);
             if (count($v) == 3) {
                 list($y, $m, $d) = $v;
             }
         }
     }
     $ret['y'] = (int) $y;
     $ret['m'] = (int) $m;
     $ret['d'] = (int) $d;
     return $ret;
 }
开发者ID:rodhoff,项目名称:MNW,代码行数:34,代码来源:datepickerfield_class.php

示例14: hikashop_getDate

    }
    ?>
					</td>
					<td>
						<?php 
    echo $row->discount_type;
    ?>
					</td>
					<td align="center">
						<?php 
    echo hikashop_getDate($row->discount_start);
    ?>
					</td>
					<td align="center">
						<?php 
    echo hikashop_getDate($row->discount_end);
    ?>
					</td>
					<td align="center">
						<?php 
    if (isset($row->discount_flat_amount) && $row->discount_flat_amount > 0) {
        echo $this->currencyHelper->displayPrices(array($row), 'discount_flat_amount', 'discount_currency_id');
    } elseif (isset($row->discount_percent_amount) && $row->discount_percent_amount > 0) {
        echo $row->discount_percent_amount . '%';
    }
    ?>
					</td>
					<?php 
    if (hikashop_level(1)) {
        ?>
						<td align="center">
开发者ID:q0821,项目名称:esportshop,代码行数:31,代码来源:listing.php

示例15: defined

 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
echo JText::sprintf('HI_CUSTOMER', @$data->customer->name);
?>


<?php 
$url = $data->order_number;
$config =& hikashop_config();
if ($config->get('simplified_registration', 0) != 2) {
    $url .= ' ( ' . $data->order_url . ' )';
}
echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE', $url, HIKASHOP_LIVE, hikashop_getDate(time(), '%d %B %Y'), hikashop_getDate(time(), '%H:%M'));
?>

--------------------------------------
 <?php 
echo JText::_('SUMMARY_OF_YOUR_ORDER');
?>
--------------------------------------

<?php 
echo JText::_('CART_PRODUCT_NAME') . "\t" . JText::_('CART_PRODUCT_UNIT_PRICE') . "\t" . JText::_('CART_PRODUCT_QUANTITY') . "\t" . JText::_('HIKASHOP_TOTAL');
?>

<?php 
foreach ($data->cart->products as $item) {
    $price = $item->order_product_price * $item->order_product_quantity;
开发者ID:rodhoff,项目名称:MNW,代码行数:31,代码来源:order_creation_notification.text.php


注:本文中的hikashop_getDate函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。