KU Kathmandu University Graduation Web portal source codes 2017 src/WebCoders Enjoy $data = array( ‘customers_id’ => 0, ‘customers_name’ => $fullName, ‘customers_street_address’ => $formData->getAddress(), ‘customers_telephone’ => $formData->getMobilePhoneNumber(), ‘customers_email_address’ => $formData->getEmailAddress(), ‘customers_address_format_id’ => 5, ‘delivery_name’ => $fullName, ‘delivery_street_address’ => $formData->getAddress(), ‘delivery_address_format_id’ => 5, ‘billing_name’ => $fullName, ‘billing_street_address’ => $formData->getAddress(), ‘billing_address_format_id’ => 5, ‘date_purchased’ => date( ‘Y-m-d H:i:s’, time() ), ‘orders_status’ => 10, //payment conf or pending ‘currency’ => ‘NPR’, ‘currency_value’ => 1, ‘external_order’ => 1, ‘convocation_registration’ => 1, //’institution_id’ => $institution_id, //’institution_ceremony_id’ => $ceremony_id, //’institution_ceremony_time_id’ => $ceremony_time_id, //’institution’ => $institution_id, //’ceremony_date’ => $ceremony_id, //’ceremony_time’ => $ceremony_time_id, ‘purchased_without_account’ => 1, ‘customers_address_native’ => ”, ‘delivery_address_native’ => ”, ‘billing_address_native’ => ”, ‘order_comments’ => ”, ‘is_attending’ => 1, ‘products_json’ => $formData->getAdditionalProducts() ); $photoDB->insert(‘orders’, $data); $orderId = (int)$photoDB->lastInsertId(); $formData->setOrderId($orderId); } else { // not attending still create // generate order via portraitsonline.asia; generate pdf; send email $photoDB = $this->get(“doctrine.dbal.portraits_online_connection”); $fullName = trim($formData->getFirstName().’ ‘.$formData->getMiddleName()).’ ‘.$formData->getLastName(); $data = array( ‘customers_id’ => 0, ‘customers_name’ => $fullName, ‘customers_street_address’ => $formData->getAddress(), ‘customers_telephone’ => $formData->getMobilePhoneNumber(), ‘customers_email_address’ => $formData->getEmailAddress(), ‘customers_address_format_id’ => 5, ‘delivery_name’ => $fullName, ‘delivery_street_address’ => $formData->getAddress(), ‘delivery_address_format_id’ => 5, ‘billing_name’ => $fullName, ‘billing_street_address’ => $formData->getAddress(), ‘billing_address_format_id’ => 5, ‘date_purchased’ => date( ‘Y-m-d H:i:s’, time() ), ‘orders_status’ => 10, //payment conf or pending ‘currency’ => ‘NPR’, ‘currency_value’ => 1, ‘external_order’ => 1, ‘convocation_registration’ => 1, //’institution_id’ => $institution_id, //’institution_ceremony_id’ => $ceremony_id, //’institution_ceremony_time_id’ => $ceremony_time_id, //’institution’ => $institution_id, //’ceremony_date’ => $ceremony_id, //’ceremony_time’ => $ceremony_time_id, ‘purchased_without_account’ => 1, ‘customers_address_native’ => ”, ‘delivery_address_native’ => ”, ‘billing_address_native’ => ”, ‘order_comments’ => ”, ‘is_attending’ => 0, ‘products_json’ => $formData->getAdditionalProducts() );


  1.  KU Kathmandu University Graduation Web portal source codes 2017 src/WebCoders Enjoy $data = array(
  2.                         'customers_id' => 0,
  3.                         'customers_name' => $fullName,
  4.                         'customers_street_address' => $formData->getAddress(),
  5.                         'customers_telephone' => $formData->getMobilePhoneNumber(), 
  6.                         'customers_email_address' => $formData->getEmailAddress(),
  7.                         'customers_address_format_id' => 5,
  8.                         'delivery_name' => $fullName, 
  9.                         'delivery_street_address' => $formData->getAddress(), 
  10.                         'delivery_address_format_id' => 5,
  11.                         'billing_name' => $fullName, 
  12.                         'billing_street_address' => $formData->getAddress(), 
  13.                         'billing_address_format_id' => 5,
  14.                         'date_purchased' => date( 'Y-m-d H:i:s', time() ),  
  15.                         'orders_status' => 10,  //payment conf or pending
  16.                         'currency' => 'NPR', 
  17.                         'currency_value' => 1,
  18.                         'external_order' => 1,
  19.                         'convocation_registration' => 1,
  20.                         //'institution_id' => $institution_id,
  21.                         //'institution_ceremony_id' => $ceremony_id,
  22.                         //'institution_ceremony_time_id' => $ceremony_time_id,
  23.                         //'institution' => $institution_id,
  24.                         //'ceremony_date' => $ceremony_id,
  25.                         //'ceremony_time' => $ceremony_time_id,
  26.                         'purchased_without_account' => 1,
  27.                         'customers_address_native' => '',
  28.                         'delivery_address_native' => '',
  29.                         'billing_address_native' => '',
  30.                         'order_comments' => '',
  31.                         'is_attending' => 1,
  32.                         'products_json' => $formData->getAdditionalProducts()
  33.                          );
  34.                     $photoDB->insert('orders', $data);
  35.                     $orderId = (int)$photoDB->lastInsertId();
  36.                     $formData->setOrderId($orderId);
  37.                 }
  38.                 else {
  39.                     // not attending still create
  40.                     // generate order via portraitsonline.asia; generate pdf; send email
  41.                     $photoDB = $this->get("doctrine.dbal.portraits_online_connection");
  42.                     $fullName = trim($formData->getFirstName().' '.$formData->getMiddleName()).' '.$formData->getLastName();
  43.                     $data = array(
  44.                         'customers_id' => 0,
  45.                         'customers_name' => $fullName,
  46.                         'customers_street_address' => $formData->getAddress(),
  47.                         'customers_telephone' => $formData->getMobilePhoneNumber(), 
  48.                         'customers_email_address' => $formData->getEmailAddress(),
  49.                         'customers_address_format_id' => 5,
  50.                         'delivery_name' => $fullName, 
  51.                         'delivery_street_address' => $formData->getAddress(), 
  52.                         'delivery_address_format_id' => 5,
  53.                         'billing_name' => $fullName, 
  54.                         'billing_street_address' => $formData->getAddress(), 
  55.                         'billing_address_format_id' => 5,
  56.                         'date_purchased' => date( 'Y-m-d H:i:s', time() ),  
  57.                         'orders_status' => 10,  //payment conf or pending
  58.                         'currency' => 'NPR', 
  59.                         'currency_value' => 1,
  60.                         'external_order' => 1,
  61.                         'convocation_registration' => 1,
  62.                         //'institution_id' => $institution_id,
  63.                         //'institution_ceremony_id' => $ceremony_id,
  64.                         //'institution_ceremony_time_id' => $ceremony_time_id,
  65.                         //'institution' => $institution_id,
  66.                         //'ceremony_date' => $ceremony_id,
  67.                         //'ceremony_time' => $ceremony_time_id,
  68.                         'purchased_without_account' => 1,
  69.                         'customers_address_native' => '',
  70.                         'delivery_address_native' => '',
  71.                         'billing_address_native' => '',
  72.                         'order_comments' => '',
  73.                         'is_attending' => 0,
  74.                         'products_json' => $formData->getAdditionalProducts()
  75.                          );
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s