예제 #1
0
<?php
/*
* ----------------------------------------------------------------------
* EMAIL - NOTIFICATION CONFIRM PAYMENT ADMIN: CONTROL
* ----------------------------------------------------------------------
*/



$_get    = new EMAIL_GET();
$_update = new EMAIL_UPDATE();

$order_number = filter_var($_REQUEST['order_number'], FILTER_SANITIZE_STRING);

$data         = $_get->get_user_confirm($order_number);


$mail_body = '';

$mail_body = '<body style="font-family: Helvetica, Arial, sans-serif; color:#fff" topmargin="0" leftmargin="0">
  			    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="overflow: hidden;">
				  <tbody>
				    <tr>
					  <td>
					    <table width="600" border="0" cellspacing="0" cellpadding="0" align="center" style="overflow: hidden;">
						  <tr>
						    <td style="padding-left: 15px; padding-top: 10px; padding-bottom: 10px; color: #333; font-size: 20px;">
							  '.$_global_general->website_title.'
							</td>
					      </tr>
						</table>
예제 #2
0
<?php

/*
* ----------------------------------------------------------------------
* EMAIL - NOTIFICATION BACK ORDER: CONTROL
* ----------------------------------------------------------------------
*/
$_get = new EMAIL_GET();
$_update = new EMAIL_UPDATE();
//$order_number = filter_var($_REQUEST['order_number'], FILTER_SANITIZE_STRING);
$order_number = $order_number;
$get_order = $_get->detail_order($order_number);
$get_item = $_get->detail_order_item($get_order->order_id);
if ($get_order->order_voucher_value == 0 && $get_order->order_shipping_amount == 0) {
    $get_order->currency = '';
    $order_shipping_amount = 'Free Shipping';
} else {
    if ($get_order->order_voucher_value != 0 && $get_order->order_shipping_amount == 0) {
        $get_order->currency = '';
        $order_shipping_amount = 'Free Shipping';
    } else {
        $get_order->currency = $get_order->currency;
        $order_shipping_amount = price(CURRENCY, $get_order->order_shipping_amount);
    }
}
$day = date('d');
$month = date('m');
$year = date('Y');
$hour = date('H');
$minute = date('i');
$second = date('s');
예제 #3
0
<?php

/*
* ----------------------------------------------------------------------
* EMAIL - NOTIFICATION BACK ORDER: CONTROL
* ----------------------------------------------------------------------
*/
$_get = new EMAIL_GET();
$_update = new EMAIL_UPDATE();
$back_id = filter_var($_REQUEST['back_id'], FILTER_SANITIZE_NUMBER_INT);
$count_order = $_get->count_backorder($back_id);
$get_order = $_get->get_backorder($back_id);
$get_item = $_get->count_stock($get_order->type_id, $get_order->stock_name);
if ($get_order->user_fullname == '') {
    $get_order->user_fullname = $get_order->email;
} else {
    $get_order->user_fullname = $get_order->user_fullname;
}
if ($get_order->promo_item_id != '') {
    if ($get_order->promo_id == 1) {
        $price = $get_order->promo_value / 100 * $get_order->type_price;
    } else {
        if ($get_order->promo_id == 2) {
            $price = $get_order->type_price - $get_order->promo_value;
        }
    }
    $get_order->type_price = $price;
} else {
    $get_order->type_price = $get_order->type_price;
}
$day = date('d');
예제 #4
0
<?php

/*
* ----------------------------------------------------------------------
* EMAIL - NOTIFICATION BACK ORDER: CONTROL
* ----------------------------------------------------------------------
*/
$_get = new EMAIL_GET();
$_update = new EMAIL_UPDATE();
//$order_number = filter_var($_REQUEST['order_number'], FILTER_SANITIZE_STRING);
$order_number = $order_number;
$get_order = $_get->detail_order($order_number);
$get_item = $_get->detail_order_item($get_order->order_id);
if ($get_order->order_voucher_value == 0 && $get_order->order_shipping_amount == 0) {
    $get_order->currency = '';
    $order_shipping_amount = 'Free Shipping';
} else {
    if ($get_order->order_voucher_value != 0 && $get_order->order_shipping_amount == 0) {
        $get_order->currency = '';
        $order_shipping_amount = 'Free Shipping';
    } else {
        $get_order->currency = $get_order->currency;
        $order_shipping_amount = price(CURRENCY, $get_order->order_shipping_amount);
    }
}
/* --- CONTROL PAYMENT TYPE --- */
if ($get_order->order_confirm_type == 0) {
    if ($get_order->order_payment_type == 1) {
        $bank_name = $_get->get_bank_channel($get_order->order_payment_method);
        $method = 'Bank Transfer<br/>';
        $payment_method = $method;
예제 #5
0
<?php

/*
* ----------------------------------------------------------------------
* EMAIL - NOTIFICATION CONFIRM PAYMENT ADMIN: CONTROL
* ----------------------------------------------------------------------
*/
$_get = new EMAIL_GET();
$_update = new EMAIL_UPDATE();
//$order_number = filter_var($_REQUEST['order_number'], FILTER_SANITIZE_STRING);
$data = $_get->get_user_confirm($order_number);
$bank_confirm = $_get->get_bank_confirm($data->order_confirm_bank);
/* --- CURRENCY SYMBOL --- */
if ($data->currency == 1) {
    $curr_symbol = $_sym_curr_idr;
} else {
    $curr_symbol = $_sym_curr_usd;
}
$mail_body = '';
$mail_body = '<body style="font-family: Helvetica, Arial, sans-serif; color:#fff" topmargin="0" leftmargin="0">
  			    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="overflow: hidden;">
				  <tbody>
				    <tr>
					  <td>
					    <table width="600" border="0" cellspacing="0" cellpadding="0" align="center" style="overflow: hidden;">
						  <tr>
						    <td style="padding-left: 15px; padding-top: 10px; padding-bottom: 10px; color: #333; font-size: 20px;">
							  ' . $_global_general->website_title . '
							</td>
					      </tr>
						</table>