Пример #1
0
	<?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;
Пример #2
0
						<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 
    }
    ?>
                $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;
}
Пример #4
0
 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);
                 }
             }
         }
     }
 }
$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];
Пример #6
0
 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 {
         $order_status = $this->payment_params->pending_status;
     }
     $config =& hikashop_config();
     if ($config->get('order_confirmed_status', 'confirmed') == $order_status) {
         $history->notified = 1;
     }
     $mail_status = $statuses[$order->order_status];
     $email->subject = JText::sprintf('PAYMENT_NOTIFICATION_FOR_ORDER', 'Ogone', $vars['STATUS'], $dbOrder->order_number);
     $email->body = str_replace('<br/>', "\r\n", JText::sprintf('PAYMENT_NOTIFICATION_STATUS', 'Ogone', $vars['STATUS'])) . ' ' . JText::sprintf('ORDER_STATUS_CHANGED', $mail_status) . "\r\n\r\n" . $order_text;
     $this->modifyOrder($order_id, $order_status, $history, $email, $payment_params);
     $dbg = ob_get_clean();
     ob_start();
     $this->showPage('thankyou');
     $msg = ob_get_clean();
     ob_start();
     echo $dbg;
     return $msg;
 }
Пример #7
0
			</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>
Пример #8
0
			<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) {
Пример #9
0
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>
Пример #10
0
 * @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;
Пример #11
0
			<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 
    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 
    }
Пример #13
0
 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;
 }
Пример #14
0
    }
    ?>
					</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">
 * @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;
Пример #16
0
 function displayField($field, $params)
 {
     $html = '';
     switch ($field) {
         case 'dropdawn':
             $html .= '<select name="' . $params['name'] . '">';
             if ($params['type'] == 'sub_id') {
                 $html .= '<option value="0">0</option>';
             }
             foreach ($params['rows'] as $row) {
                 $column_id = $params['column_id'];
                 $square = array();
                 foreach ($params['columns'] as $column) {
                     if (isset($row->{$column})) {
                         $square[] = $row->{$column};
                     }
                 }
                 $sel = '';
                 if ($params['id'] == $row->{$column_id}) {
                     $sel = ' selected="selected"';
                 }
                 $html .= '<option' . $sel . ' value="' . $square[0] . '">' . implode(' - ', $square) . '</option>';
             }
             $html .= '</select>';
             break;
         case 'input':
             $html .= '<input name="' . $params['name'] . '" value="' . $params['value'] . '"/>';
             $html .= '<br/>';
             break;
         case 'textarea':
             $html .= '<textarea name="' . $params['name'] . '">' . $params['value'] . '</textarea><br/>';
             break;
         case 'custom':
             $ret = call_user_func_array(array($params['class'], "display"), $params['params']);
             if (!empty($ret) && is_string($ret)) {
                 $html .= $ret;
             }
             break;
         case 'date':
             $html .= JHTML::_('calendar', hikashop_getDate(@$params['value'], '%Y-%m-%d %H:%M'), $params['name'], $params['id'], '%Y-%m-%d %H:%M', array('size' => '20'));
             $html .= '<br/>';
             break;
         default:
             if (!isset($this->dispatcher)) {
                 JPluginHelper::importPlugin('hikashop');
                 $this->dispatcher = JDispatcher::getInstance();
             }
             $this->dispatcher->trigger('onDisplayFieldMassAction' . $field, array($field, $params));
             break;
     }
     $html .= '<br/>';
     return $html;
 }
Пример #17
0
        $formName = $this->formName;
    }
}
if ($end_date && $end_date < time()) {
    ?>
	<span class="hikashop_product_sale_end">
		<?php 
    echo JText::_('ITEM_NOT_SOLD_ANYMORE');
    ?>
	</span>
	<?php 
} elseif ($start_date && $start_date > time()) {
    ?>
	<span class="hikashop_product_sale_start">
		<?php 
    echo JText::sprintf('ITEM_SOLD_ON_DATE', hikashop_getDate($start_date, $this->params->get('date_format', '%d %B %Y')));
    ?>
	</span>
	<?php 
} elseif (!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || !empty($this->row->prices))) {
    if (@$this->row->product_min_per_order || empty($this->element->main)) {
        $min = @$this->row->product_min_per_order;
    } else {
        $min = @$this->element->main->product_min_per_order;
    }
    if (@$this->row->product_max_per_order || empty($this->element->main)) {
        $max = @$this->row->product_max_per_order;
    } else {
        $max = @$this->element->main->product_max_per_order;
    }
    if ($min <= 0) {
Пример #18
0
 function setExportPaths($path)
 {
     if (preg_match('#{time}#', $path)) {
         $path = str_replace('{time}', hikashop_getDate(time()), $path);
     }
     $path = str_replace(' ', '_', trim($path));
     $oServerUrl = str_replace('administrator', '', getcwd());
     $webUrl = JURI::root();
     if (preg_match('#' . preg_quote($oServerUrl, '\\') . '#', $path)) {
         $webUrl = $webUrl . preg_replace('#' . preg_quote($oServerUrl, '\\') . '#', '', $path);
         $serverUrl = $path;
     } else {
         if (in_array($path[0], array('/', '\\'))) {
             if (in_array(substr($oServerUrl, -1), array('/', '\\'))) {
                 $oServerUrl = substr($oServerUrl, 0, -1);
             }
             if (in_array(substr($webUrl, -1), array('/', '\\'))) {
                 $webUrl = substr($webUrl, 0, -1);
             }
         } else {
             if (!in_array(substr($oServerUrl, -1), array('/', '\\'))) {
                 $oServerUrl = $oServerUrl . '\\';
             }
             if (!in_array(substr($webUrl, -1), array('/', '\\'))) {
                 $webUrl = $webUrl . '/';
             }
         }
         $serverUrl = $oServerUrl . $path;
         $webUrl = str_replace('\\', '/', $webUrl . $path);
     }
     if (strstr($oServerUrl, '/')) {
         $serverUrl = str_replace('\\', '/', $serverUrl);
     } else {
         $serverUrl = str_replace('/', '\\', $serverUrl);
     }
     $webUrl = str_replace('\\', '/', $webUrl);
     return array('server' => $serverUrl, 'web' => $webUrl);
 }
Пример #19
0
    ?>
</td>
			<td><?php 
    echo $history->history_reason;
    ?>
</td>
			<td><?php 
    if (!empty($history->history_user_id)) {
        $user = $userClass->get($history->history_user_id);
        echo $user->username . ' / ';
    }
    echo $history->history_ip;
    ?>
</td>
			<td><?php 
    echo hikashop_getDate($history->history_created, '%Y-%m-%d %H:%M');
    ?>
</td>
			<td><?php 
    echo $history->history_data;
    ?>
</td>
		</tr>
<?php 
}
?>
	</tbody>
</table>
</div>
<script type="text/javascript">
window.orderMgr.updateHistory = function() {
Пример #20
0
?>
	<fieldset class="adminform">
		<legend><?php 
echo JText::_('LAST_CRON');
?>
</legend>
		<table class="admintable table" cellspacing="1">
			<tr>
				<td class="key" >
					<?php 
echo JText::_('LAST_RUN');
?>
				</td>
				<td>
					<?php 
echo hikashop_getDate($this->config->get('cron_last'));
?>
				</td>
			</tr>
			<tr>
				<td class="key" >
					<?php 
echo JText::_('CRON_TRIGGERED_IP');
?>
				</td>
				<td>
					<?php 
echo $this->config->get('cron_fromip');
?>
				</td>
			</tr>
Пример #21
0
					<td>
						<?php 
    if (!empty($row->username)) {
        echo $row->name . ' ( ' . $row->username . ' )</a><br/>';
    }
    echo $row->user_email;
    ?>
					</td>
					<td align="center">
						<?php 
    echo $row->order_payment_method;
    ?>
					</td>
					<td align="center">
						<?php 
    echo hikashop_getDate($row->order_created, '%Y-%m-%d %H:%M');
    ?>
					</td>
					<td align="center">
						<?php 
    echo $row->order_status;
    ?>
					</td>
					<td align="center">
						<?php 
    echo $this->currencyHelper->format($row->order_full_price, $row->order_currency_id);
    ?>
					</td>
					<td align="center">
						<?php 
    if (bccomp($row->order_partner_price, 0, 5)) {
Пример #22
0
 function listing()
 {
     $app = JFactory::getApplication();
     $pageInfo = new stdClass();
     $pageInfo->filter = new stdClass();
     $pageInfo->filter->order = new stdClass();
     $pageInfo->limit = new stdClass();
     $pageInfo->filter->order->value = $app->getUserStateFromRequest($this->paramBase . ".filter_order", 'filter_order', 'a.taxation_id', 'cmd');
     $pageInfo->filter->order->dir = $app->getUserStateFromRequest($this->paramBase . ".filter_order_Dir", 'filter_order_Dir', 'desc', 'word');
     $pageInfo->limit->value = $app->getUserStateFromRequest($this->paramBase . '.list_limit', 'limit', $app->getCfg('list_limit'), 'int');
     $pageInfo->limit->start = $app->getUserStateFromRequest($this->paramBase . '.limitstart', 'limitstart', 0, 'int');
     $pageInfo->filter->taxation_date_start = $app->getUserStateFromRequest(HIKASHOP_COMPONENT . '.taxation_date_start', 'taxation_date_start', '', 'string');
     $pageInfo->filter->taxation_date_end = $app->getUserStateFromRequest(HIKASHOP_COMPONENT . '.taxation_date_end', 'taxation_date_end', '', 'string');
     $pageInfo->filter->tax_namekey = $app->getUserStateFromRequest(HIKASHOP_COMPONENT . '.tax_namekey', 'tax_namekey', '', 'string');
     $pageInfo->filter->taxation_type = $app->getUserStateFromRequest(HIKASHOP_COMPONENT . '.taxation_type', 'taxation_type', '', 'string');
     $pageInfo->filter->taxation_site_id = $app->getUserStateFromRequest(HIKASHOP_COMPONENT . '.taxation_site_id', 'taxation_site_id', '', 'string');
     $database = JFactory::getDBO();
     $filters = array();
     if (!empty($pageInfo->filter->taxation_date_start)) {
         $filters[] = '(' . hikashop_getTime($pageInfo->filter->taxation_date_start) . '<=a.taxation_date_start' . ' OR ' . hikashop_getTime($pageInfo->filter->taxation_date_start) . '<=a.taxation_date_end' . ' OR a.taxation_date_end=0' . ')';
     }
     if (!empty($pageInfo->filter->taxation_date_end)) {
         $filters[] = '(' . 'a.taxation_date_start<=' . hikashop_getTime($pageInfo->filter->taxation_date_end) . ' OR (a.taxation_date_start<=a.taxation_date_end AND a.taxation_date_end<=' . hikashop_getTime($pageInfo->filter->taxation_date_end) . ')' . ' OR a.taxation_date_start=0' . ')';
     }
     if (!empty($pageInfo->filter->tax_namekey)) {
         $filters[] = 'a.tax_namekey=' . $database->Quote($pageInfo->filter->tax_namekey);
     }
     if (!empty($pageInfo->filter->taxation_type)) {
         $filters[] = '(a.taxation_type=' . $database->Quote($pageInfo->filter->taxation_type) . ' OR taxation_type LIKE \'%' . hikashop_getEscaped($pageInfo->filter->taxation_type, true) . '%\')';
     }
     if (!empty($pageInfo->filter->taxation_site_id) && $pageInfo->filter->taxation_site_id != '[unselected]') {
         $filters[] = 'a.taxation_site_id=' . $database->Quote($pageInfo->filter->taxation_site_id);
     }
     JPluginHelper::importPlugin('hikashop');
     $dispatcher = JDispatcher::getInstance();
     $dispatcher->trigger('onBeforeTaxationListing', array($this->paramBase, &$this->extrafilters, &$pageInfo, &$filters));
     $order = '';
     if (!empty($pageInfo->filter->order->value)) {
         $order = ' ORDER BY ' . $pageInfo->filter->order->value . ' ' . $pageInfo->filter->order->dir;
     }
     if (!empty($filters)) {
         $filters = ' WHERE (' . implode(') AND (', $filters) . ')';
     } else {
         $filters = '';
     }
     $query = ' FROM ' . hikashop_table('taxation') . ' AS a LEFT JOIN ' . hikashop_table('tax') . ' AS b ON a.tax_namekey=b.tax_namekey LEFT JOIN ' . hikashop_table('category') . ' AS c ON a.category_namekey=c.category_namekey AND a.category_namekey!=\'\' AND c.category_type=\'tax\'' . $filters . $order;
     $database->setQuery('SELECT b.*,c.*,a.*' . $query, (int) $pageInfo->limit->start, (int) $pageInfo->limit->value);
     $rows = $database->loadObjectList();
     $database->setQuery('SELECT COUNT(*)' . $query);
     $pageInfo->elements = new stdClass();
     $pageInfo->elements->total = $database->loadResult();
     $pageInfo->elements->page = count($rows);
     $config =& hikashop_config();
     $this->assignRef('config', $config);
     if ($pageInfo->elements->page) {
         $zones = array();
         foreach ($rows as $row) {
             if (empty($row->zone_namekey)) {
                 continue;
             }
             $tax_zones = explode(',', $row->zone_namekey);
             foreach ($tax_zones as $zone) {
                 if (!empty($zone)) {
                     $zones[] = $database->Quote($zone);
                 }
             }
         }
         if (count($zones)) {
             $database->setQuery('SELECT * FROM #__hikashop_zone WHERE zone_namekey IN (' . implode(',', $zones) . ');');
             $zones = $database->loadObjectList('zone_namekey');
             foreach ($rows as $k => $row) {
                 if (empty($row->zone_namekey)) {
                     continue;
                 }
                 $tax_zones = explode(',', $row->zone_namekey);
                 $rows[$k]->zone_namekey = array();
                 foreach ($tax_zones as $zone) {
                     if (empty($zone)) {
                         continue;
                     }
                     if (isset($zones[$zone])) {
                         $rows[$k]->zone_namekey[] = $zones[$zone];
                     } else {
                         $rows[$k]->zone_namekey[] = $zone;
                     }
                 }
             }
         }
         foreach ($rows as $k => $row) {
             $restrictions = array();
             if (!empty($row->zone_namekey)) {
                 $zones = array();
                 foreach ($row->zone_namekey as $zone) {
                     if (is_string($zone)) {
                         $zones[] = $zone;
                         continue;
                     }
                     if (hikashop_isAllowed($config->get('acl_zone_manage', 'all'))) {
                         $zones[] = $zone->zone_name_english . '<a href="' . hikashop_completeLink('zone&task=edit&zone_id=' . $zone->zone_id) . '"><img class="hikashop_go" src="' . HIKASHOP_IMAGES . 'go.png" alt="go" /></a>';
                     } else {
                         $zones[] = $zone->zone_name_english;
                     }
                 }
                 if (count($zones)) {
                     $restrictions['ZONE'] = implode(', ', $zones);
                 }
             }
             if (!empty($row->taxation_post_code)) {
                 $restrictions['POST_CODE'] = $row->taxation_post_code;
             }
             if (!empty($row->taxation_type)) {
                 $row->taxation_type = explode(',', strtoupper(trim($row->taxation_type, ',')));
                 $types = array();
                 foreach ($row->taxation_type as $type) {
                     $types[] = JText::_($type);
                 }
                 $restrictions['CUSTOMER_TYPE'] = implode(', ', $types);
             }
             if (!empty($row->taxation_date_start)) {
                 $restrictions['START_DATE'] = hikashop_getDate($row->taxation_date_start, '%Y-%m-%d %H:%M');
             }
             if (!empty($row->taxation_end_start)) {
                 $restrictions['END_DATE'] = hikashop_getDate($row->taxation_end_start, '%Y-%m-%d %H:%M');
             }
             $rows[$k]->restrictions = $restrictions;
         }
     }
     $toggleClass = hikashop_get('helper.toggle');
     $this->assignRef('toggleClass', $toggleClass);
     $this->assignRef('rows', $rows);
     $this->assignRef('pageInfo', $pageInfo);
     $taxType = hikashop_get('type.tax');
     $this->assignRef('taxType', $taxType);
     $ratesType = hikashop_get('type.rates');
     $this->assignRef('ratesType', $ratesType);
     hikashop_setTitle(JText::_($this->nameListing), $this->icon, $this->ctrl);
     $this->getPagination();
     $manage = hikashop_isAllowed($config->get('acl_taxation_manage', 'all'));
     $this->assignRef('manage', $manage);
     $this->toolbar = array(array('name' => 'link', 'icon' => 'edit', 'alt' => JText::_('MANAGE_TAX_CATEGORIES'), 'url' => hikashop_completeLink('category&filter_id=tax'), 'display' => $manage), array('name' => 'link', 'icon' => 'edit', 'alt' => JText::_('MANAGE_RATES'), 'url' => hikashop_completeLink('tax&return=taxation'), 'display' => $manage), array('name' => '|', 'display' => $manage), array('name' => 'addNew', 'display' => $manage), array('name' => 'editList', 'display' => $manage), array('name' => 'deleteList', 'display' => hikashop_isAllowed($config->get('acl_taxation_delete', 'all'))), '|', array('name' => 'pophelp', 'target' => $this->ctrl . '-listing'), 'dashboard');
     JHTML::_('behavior.modal');
 }
Пример #23
0
    }
    ?>
							<?php 
    echo $row->email_log_subject;
    ?>
					<?php 
    if ($this->manage) {
        ?>
						</a>
					<?php 
    }
    ?>
				</td>
				<td>
					<?php 
    echo hikashop_getDate($row->email_log_date);
    ?>
				</td>
				<td>
					<?php 
    echo JText::_(strip_tags($row->email_log_name));
    ?>
				</td>
				<td width="1%" align="center">
					<?php 
    echo (int) $row->email_log_id;
    ?>
				</td>
			</tr>
<?php 
    $k = 1 - $k;
Пример #24
0
									<td class="hika_comment_listing_useless locked hide"></td>
						<?php 
                        }
                    }
                }
                ?>
					</tr>
					<?php 
                if ($show_comment_date) {
                    ?>
					<tr>
						<td>
						<?php 
                    $class = hikashop_get('class.vote');
                    $vote = $class->get($elt[$i]->vote_id);
                    echo hikashop_getDate($vote->vote_date);
                    ?>
						</td>
					</tr>
					<?php 
                }
                ?>
					<tr>
						<td colspan="3">
							<div id="<?php 
                echo $i;
                ?>
" class="hika_comment_listing_content"><?php 
                echo $elt[$i]->vote_comment;
                ?>
</div>
Пример #25
0
					</td>
					<td>
						<?php 
echo JHTML::_('calendar', hikashop_getDate(@$this->element->product_sale_start ? @$this->element->product_sale_start : '', '%Y-%m-%d %H:%M'), 'data[product][product_sale_start]', 'product_sale_start', '%Y-%m-%d %H:%M', array('size' => '20'));
?>
					</td>
				</tr>
				<tr class="hikashop_product_sale_end_row">
					<td class="key">
							<?php 
echo JText::_('PRODUCT_SALE_END');
?>
					</td>
					<td>
						<?php 
echo JHTML::_('calendar', hikashop_getDate(@$this->element->product_sale_end ? @$this->element->product_sale_end : '', '%Y-%m-%d %H:%M'), 'data[product][product_sale_end]', 'product_sale_end', '%Y-%m-%d %H:%M', array('size' => '20'));
?>
					</td>
				</tr>
				<tr class="hikashop_product_msrp_row">
					<td class="key">
							<?php 
echo JText::_('PRODUCT_MSRP');
?>
					</td>
					<?php 
$currencyClass = hikashop_get('class.currency');
$curr = '';
$mainCurr = $currencyClass->mainCurrency();
$mainCurr = $currencyClass->getCurrencies(@$mainCurr, $curr);
?>
Пример #26
0
            if (isset($filterObj->filter_html_dropdown)) {
                echo $filterObj->filter_html_dropdown;
            }
        }
    }
}
if (!is_numeric($this->pageInfo->filter->filter_start) && !empty($this->pageInfo->filter->filter_start)) {
    $this->pageInfo->filter->filter_start = strtotime($this->pageInfo->filter->filter_start);
}
if (!is_numeric($this->pageInfo->filter->filter_end) && !empty($this->pageInfo->filter->filter_end)) {
    $this->pageInfo->filter->filter_end = strtotime($this->pageInfo->filter->filter_end);
}
echo JText::_('FROM') . ' ';
echo JHTML::_('calendar', hikashop_getDate(@$this->pageInfo->filter->filter_start ? @$this->pageInfo->filter->filter_start : '', '%d %B %Y'), 'filter_start', 'period_start', '%Y-%m-%d', array('size' => '10', ''));
echo ' ' . JText::_('TO') . ' ';
echo JHTML::_('calendar', hikashop_getDate(@$this->pageInfo->filter->filter_end ? @$this->pageInfo->filter->filter_end : '', '%d %B %Y'), 'filter_end', 'period_end', '%Y-%m-%d', array('size' => '10', ''));
$this->category->multiple = true;
echo $this->category->display("filter_status", $this->pageInfo->filter->filter_status, '', false);
?>
				<button class="btn" onclick="this.form.submit();"><?php 
echo JText::_('FILTER');
?>
</button>
			</td>
		</tr>
	</table>
	<table class="adminlist table table-striped table-hover" cellpadding="1">
		<thead>
			<tr>
				<th class="title titlenum">
					<?php 
Пример #27
0
							</td>
							<td>
								<?php 
echo JHTML::_('calendar', @$this->element->discount_start ? hikashop_getDate(@$this->element->discount_start, '%Y-%m-%d %H:%M') : '', 'data[discount][discount_start]', 'discount_start', '%Y-%m-%d %H:%M', array('size' => '20'));
?>
							</td>
						</tr>
						<tr>
							<td class="key">
									<?php 
echo JText::_('DISCOUNT_END_DATE');
?>
							</td>
							<td>
								<?php 
echo JHTML::_('calendar', @$this->element->discount_end ? hikashop_getDate(@$this->element->discount_end, '%Y-%m-%d %H:%M') : '', 'data[discount][discount_end]', 'discount_end', '%Y-%m-%d %H:%M', array('size' => '20'));
?>
							</td>
						</tr>
<?php 
if (hikashop_level(1)) {
    echo $this->loadTemplate('restrictions');
} else {
    ?>
						<tr>
							<td class="key">
									<?php 
    echo JText::_('RESTRICTIONS');
    ?>
							</td>
							<td>
Пример #28
0
 function showfield($viewObj, $namekey, $row)
 {
     if (isset($row->{$namekey})) {
         $date_format = !empty($this->field_options['format']) ? $this->field_options['format'] : '%Y-%m-%d %H:%M:%S';
         return hikashop_getDate($row->{$namekey}, $date_format);
     }
     return '';
 }
Пример #29
0
         }
         if (!empty($download_number_limit) && $download_number_limit <= $file->download_number) {
             $fileHtml = JText::_('MAX_REACHED_NO_DOWNLOAD');
         }
         if (empty($fileHtml)) {
             if (empty($file->file_name)) {
                 $file->file_name = JText::_('DOWNLOAD_NOW');
             }
             $file_pos = '';
             if (!empty($file->file_pos)) {
                 $file_pos = '&file_pos=' . $file->file_pos;
             }
             $fileHtml = '<a href="' . hikashop_completeLink('order&task=download&file_id=' . $file->file_id . '&order_id=' . $this->order->order_id . $file_pos . $url_itemid) . '">' . $file->file_name . '</a>';
             $order_created = empty($this->order->order_invoice_created) ? $this->order->order_created : $this->order->order_invoice_created;
             if (!empty($this->download_time_limit)) {
                 $fileHtml .= ' / ' . JText::sprintf('UNTIL_THE_DATE', hikashop_getDate($order_created + $this->download_time_limit));
             }
             if (!empty($download_number_limit)) {
                 $fileHtml .= ' / ' . JText::sprintf('X_DOWNLOADS_LEFT', $download_number_limit - $file->download_number);
             }
         } else {
             if (empty($file->file_name)) {
                 $file->file_name = JText::_('EMPTY_FILENAME');
             }
             $fileHtml = $file->file_name . ' ' . $fileHtml;
         }
         $html[] = $fileHtml;
     }
     echo implode('<br/>', $html);
 }
 ?>
Пример #30
0
        } elseif (!empty($this->payments[$row->order_payment_method])) {
            echo $this->payments[$row->order_payment_method]->payment_name;
        } else {
            echo $row->order_payment_method;
        }
    }
    ?>
					</td>
					<td class="hikashop_order_date_value">
						<?php 
    echo hikashop_getDate($row->order_created, '%d %B %Y %H:%M');
    ?>
					</td>
					<td class="hikashop_order_modified_value">
						<?php 
    echo hikashop_getDate($row->order_modified, '%d %B %Y %H:%M');
    ?>
					</td>
					<td class="hikashop_order_status_value">
						<?php 
    if ($this->manage && !$this->popup) {
        $doc = JFactory::getDocument();
        $doc->addScriptDeclaration(' var ' . "default_filter_status_" . $row->order_id . '=\'' . $row->order_status . '\'; ');
        echo $this->category->display("filter_status_" . $row->order_id, $row->order_status, 'onchange="if(this.value==default_filter_status_' . $row->order_id . '){return;} hikashop.openBox(\'status_change_link\',\'' . hikashop_completeLink('order&task=changestatus&order_id=' . $row->order_id, true) . '&status=\'+this.value);this.value=default_filter_status_' . $row->order_id . ';if(typeof(jQuery)!=\'undefined\'){jQuery(this).trigger(\'liszt:updated\');}"');
    } else {
        echo $row->order_status;
    }
    ?>
					</td>
					<td class="hikashop_order_total_value">
						<?php