$_payment_method = '';
   
   if($_payment == 1){
      $_payment_method = 'Bank Transfer';
   }else if($_payment == 2){
      $_payment_method = 'Credit Card';
   }
   
   /* --- CONDITION --- */
   $_condition = $_ajax->view_condition($item->type_sizefit);
   
   $total_purchase = $item->type_price - $_item_discount;
   
   /* --- INSERT --- */
   $_ajax->insert_buy_now($order_number, $_type_id, $_stock, '1', $total_purchase, 'Rp', $_global_general->currency_rate, $ord_date, '1');
   $order_id = $_ajax->get_order_id();
   $_ajax->insert_buy_now_user($order_id->order_id, ($_fname.' '.$_lname), $_email, ($_year.'-'.$_month.'-'.$_day), $_gender, $_country, $_state, $_city, ($_addr_1.' '.$_addr_2), $_postal, $_phone, $_payment);
   //$_ajax->update_stock(($stock->stock_quantity - 1), $_type_id, $_stock);
   
   
   /* --- START: EMAIL USER --- */
   $mail_body = '<body style="font-family: Helvetica, Arial, sans-serif; color:#333333" topmargin="0" leftmargin="0">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="overflow: hidden; background: #fff">
				     <tbody>
				       <tr>
					     <td>
					       <table width="600" border="0" cellspacing="0" cellpadding="0" align="center" style="overflow: hidden; background: #fff">
						     <tr>
						       <td style="padding-left: 15px; padding-top: 10px; padding-bottom: 10px">
							     <img src="'.BASE_URL.'../../admin/static/thimthumb.php?src='.$_global_notification->email_logo.'&h=50&w=50&q=100" height="50">
							   </td>