Example #1
0
 public function addRetailerProduct($productId = 0)
 {
     $productId = id_decrypt($productId);
     $this->data['result'] = $this->product_lib->addRetailerProduct($productId);
     $this->data['productId'] = $productId;
     $this->retailerCustomView('product_managements/addRetailerProduct', $this->data);
 }
Example #2
0
 public function track_order($orderCustomPaymentId = '')
 {
     $this->session->set_userdata(array('log_MODULE' => 'Track Order', 'log_MID' => ''));
     $orderCustomPaymentId = id_decrypt($orderCustomPaymentId);
     $this->data['title'] = 'Track Order';
     $this->data['result'] = $this->order_lib->track_orders_detail($orderCustomPaymentId);
     $this->frontendCustomView('orders/track_order', $this->data);
 }
Example #3
0
 public function user_detail($newsletterId)
 {
     $this->session->set_userdata(array('log_MODULE' => 'user_detail', 'log_MID' => ''));
     $newsletterId = id_decrypt($newsletterId);
     $this->data['result'] = $this->customer_lib->news_letter_user_details($newsletterId);
     $this->data['newsletterId'] = $newsletterId;
     $this->superAdminCustomView('admin/news_managements/user_details', $this->data);
 }
Example #4
0
 public function change_false($orderID = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'change_false', 'log_MID' => ''));
     $orderID = id_decrypt($orderID);
     $this->custom_log->write_log('custom_log', 'Order Id is ' . $orderID);
     if ($orderID) {
         $this->order_pickup_lib->cancel_order($orderID);
     }
 }
Example #5
0
 public function view_attribute_list($productTypeId)
 {
     $this->session->set_userdata(array('log_MODULE' => 'edit_attribute_list', 'log_MID' => ''));
     $productTypeId = id_decrypt($productTypeId);
     $result = $this->product_lib->attributeDetailsView($productTypeId);
     $this->data['result'] = $result;
     $this->data['productTypeId'] = $productTypeId;
     $this->adminCustomView('attribute_managements/view_attribute_list', $this->data);
 }
Example #6
0
 public function edit_commission($catId = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'edit_commission', 'log_MID' => ''));
     $catId = id_decrypt($catId);
     $result = $this->category_lib->edit_spacepointe_commission2($catId);
     $this->data['result'] = $result;
     $this->data['catId'] = $catId;
     $this->superAdminCustomView('category_commission_managements/spacepointe_commission_edit2', $this->data);
 }
Example #7
0
 public function add_inventory($organizationId = 0, $productId = 0)
 {
     $organizationId = id_decrypt($organizationId);
     $productId = id_decrypt($productId);
     $this->data['result'] = $this->product_lib->add_check_stock_inventory($organizationId, $productId);
     $this->data['organizationId'] = $organizationId;
     $this->data['productId'] = $productId;
     $this->adminCustomView('check_stock_managements/add_inventory', $this->data);
 }
Example #8
0
 public function unblock_block($customerId, $status)
 {
     $customerId = id_decrypt($customerId);
     if ($customerId) {
         $this->customer_lib->customer_unblock_block($customerId, $status);
     } else {
         $this->session->set_flashdata('error', $this->lang->line('error_invalie_id'));
     }
     redirect(base_url() . 'admin/pointeforce_management/user_detail/' . id_encrypt($customerId));
 }
Example #9
0
 public function history_order_view($orderID = '')
 {
     $this->session->set_userdata(array('log_MODULE' => 'history_order_view', 'log_MID' => ''));
     $this->data['title'] = 'History Orders View';
     $orderID = id_decrypt($orderID);
     $result = $this->order_pickup_lib->pickup_order_view($orderID, 6);
     $this->data['result'] = $result;
     $this->data['orderID'] = $orderID;
     $this->adminCustomView('shipping_management/pickup_orders_management/history_order_view', $this->data);
 }
Example #10
0
 public function search_order_view($orderID = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'search_order_view', 'log_MID' => ''));
     $this->data['title'] = 'Search Orders View';
     $orderID = id_decrypt($orderID);
     $result = $this->order_lib->search_order_view($orderID);
     $this->data['result'] = $result;
     $this->data['orderID'] = $orderID;
     $this->superAdminCustomView('admin/shipping_management/orders_management/search_order_view', $this->data);
 }
Example #11
0
 public function order_search_view($orderCustomPaymentId = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'order_search_view', 'log_MID' => ''));
     $this->data['title'] = 'Order Details View';
     $orderCustomPaymentId = id_decrypt($orderCustomPaymentId);
     $result = $this->order_lib->order_search_view($orderCustomPaymentId);
     $this->data['result'] = $result;
     $this->data['orderCustomPaymentId'] = $orderCustomPaymentId;
     $this->superAdminCustomView('admin/order_search_managements/order_search_view', $this->data);
 }
Example #12
0
 public function delivered_order_view($orderID = '')
 {
     $this->session->set_userdata(array('log_MODULE' => 'delivered_order_view', 'log_MID' => ''));
     $this->data['title'] = 'Delivered Orders View';
     $orderID = id_decrypt($orderID);
     $result = $this->order_lib->order_view($orderID, 5);
     $this->data['result'] = $result;
     $this->data['orderID'] = $orderID;
     $this->retailerCustomView('admin/shipping_management/orders_management/delivered_order_view', $this->data);
 }
Example #13
0
 public function balance_paid_view($customerId = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'balance_paid_view', 'log_MID' => ''));
     $customerId = id_decrypt($customerId);
     if (!$customerId) {
         redirect(base_url() . 'admin/finance_pointe_force_management/paid_balance');
     }
     $this->data['result'] = $this->finance_pointe_force_lib->balance_paid_view($customerId);
     $this->data['customerId'] = $customerId;
     $this->adminCustomView('finance_pointe_force_managements/balance_paid_view', $this->data);
 }
Example #14
0
 public function balance_paid_view($shippingOrgId = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'balance_paid_view', 'log_MID' => ''));
     $shippingOrgId = id_decrypt($shippingOrgId);
     if (!$shippingOrgId) {
         redirect(base_url() . 'superadmin/finance_vendor_management/paid_balance');
     }
     $this->data['result'] = $this->finance_vendor_lib->balance_paid_view($shippingOrgId);
     $this->data['shippingOrgId'] = $shippingOrgId;
     $this->superAdminCustomView('admin/finance_vendor_managements/balance_paid_view', $this->data);
 }
Example #15
0
 public function editVendor($organizationId = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'editVendor', 'log_MID' => ''));
     $organizationId = id_decrypt($organizationId);
     $this->data['result'] = $this->profile_lib->shipping_vendor_employee_edit($organizationId);
     $this->data['imagePath'] = base_url() . 'uploads/shipping/thumb50/';
     $this->data['imageUploadPath'] = base_url() . 'admin/vendor_management/upload_image/';
     $this->data['organizationId'] = $organizationId;
     //echo "<pre>"; print_r($this->data['result']); exit;
     $this->adminCustomView('employee/editVendoremployee', $this->data);
 }
Example #16
0
 public function decline_request($productId = 0)
 {
     $productId = id_decrypt($productId);
     if ($productId) {
         if ($this->product_m->decline_request($productId)) {
             $this->session->set_flashdata('success', 'Product Request Declined successfully');
         } else {
             $this->session->set_flashdata('error', 'Product Request not decline');
         }
     }
     redirect(base_url() . $this->session->userdata('userType') . '/product_management');
 }
Example #17
0
 public function delete_request($productId = '')
 {
     $this->session->set_userdata(array('log_MODULE' => 'product_view', 'log_MID' => ''));
     $productId = id_decrypt($productId);
     if ($productId) {
         if ($this->product_m->delete_request($productId)) {
             $this->session->set_flashdata('success', 'Product Request Deleted successfully');
         } else {
             $this->session->set_flashdata('error', 'Product Request not Delete');
         }
     }
     redirect(base_url() . $this->session->userdata('userType') . '/product_request_management');
 }
Example #18
0
 public function order_details($customerId = '', $orderID = '')
 {
     $this->session->set_userdata(array('log_MODULE' => 'order_details', 'log_MID' => ''));
     $this->data['title'] = 'Orders View';
     $orderID = id_decrypt($orderID);
     $customerId = id_decrypt($customerId);
     $this->custom_log->write_log('custom_log', 'order id is ' . $orderID . ' and customer id is ' . $customerId);
     $result = $this->order_lib->customer_order_view($orderID);
     $this->data['result'] = $result;
     $this->data['orderID'] = $orderID;
     $this->data['customerId'] = $customerId;
     $this->adminCustomView('superadmin/customer_managements/order_details', $this->data);
 }
Example #19
0
 public function confirm_order_view($orderID = '')
 {
     $this->session->set_userdata(array('log_MODULE' => 'new_order_view', 'log_MID' => ''));
     $this->data['title'] = 'Confirmation Orders View';
     $orderID = id_decrypt($orderID);
     $result = $this->order_lib->order_view($orderID, 2);
     if (empty($result['productName'])) {
         $result = $this->order_lib->order_view($orderID, 3);
         if (empty($result['productName'])) {
             $result = $this->order_lib->order_view($orderID, 4);
         }
     }
     $this->data['result'] = $result;
     $this->data['orderID'] = $orderID;
     $this->retailerCustomView('admin/shipping_management/orders_management/confirm_order_view', $this->data);
 }
Example #20
0
 public function save_delivered_date()
 {
     $this->session->set_userdata(array('log_MODULE' => 'save_delivered_date', 'log_MID' => ''));
     $this->custom_log->write_log('custom_log', 'Post data is ' . print_r($_POST, true));
     $order_id = id_decrypt($this->input->post('order_id'));
     $delivered_date = $this->input->post('delivered_date');
     if ($order_id) {
         if ($this->order_m->save_delivered_date($order_id, $delivered_date)) {
             $this->session->set_flashdata('success', $this->lang->line('success_save_delivered_date'));
             $this->custom_log->write_log('custom_log', $this->lang->line('success_save_delivered_date'));
         } else {
             $this->session->set_flashdata('error', $this->lang->line('error_save_delivered_date'));
             $this->custom_log->write_log('custom_log', $this->lang->line('error_save_delivered_date'));
         }
     }
 }
Example #21
0
 public function deletePriceRange($priceMngtId = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'deletePriceRange', 'log_MID' => ''));
     $priceMngtId = id_decrypt($priceMngtId);
     $this->custom_log->write_log('custom_log', 'price management id is ' . $priceMngtId);
     if ($priceMngtId) {
         if ($this->segment_cat_m->delete_old_price_management($priceMngtId)) {
             $this->session->set_flashdata('success', 'Range Deleted Successfully');
             $this->custom_log->write_log('custom_log', 'Range Deleted Successfully');
         } else {
             $this->session->set_flashdata('error', 'Range not delete');
             $this->custom_log->write_log('custom_log', 'Range not delete');
         }
     }
     redirect(base_url() . 'superadmin/price_management');
 }
Example #22
0
 public function unblock_block($employeeId, $status)
 {
     $employeeId = id_decrypt($employeeId);
     if (!empty($employeeId)) {
         $return = $this->profile_lib->block_unblock($employeeId, $status);
         if ($return) {
             if (!$status) {
                 $this->session->set_flashdata('success', $this->lang->line('success_block_user'));
             } else {
                 $this->session->set_flashdata('success', $this->lang->line('success_unblock_user'));
             }
         } else {
             $this->session->set_flashdata('error', $this->lang->line('error_not_update'));
         }
     } else {
         $this->session->set_flashdata('error', $this->lang->line('error_invalie_id'));
     }
     redirect(base_url() . 'admin/cse_management/user_detail/' . id_encrypt($employeeId));
 }
Example #23
0
 public function change_status($brandID = '', $status = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'change_status', 'log_MID' => ''));
     $this->custom_log->write_log('custom_log', 'brand id is ' . $brandID);
     $brandID = id_decrypt($brandID);
     if ($brandID) {
         if ($this->brand_m->change_status($brandID, $status)) {
             $this->session->set_flashdata('success', $this->lang->line('success_brand_status_change'));
             $this->custom_log->write_log('custom_log', $this->lang->line('success_brand_status_change'));
         } else {
             $this->session->set_flashdata('error', $this->lang->line('error_not_change'));
             $this->custom_log->write_log('custom_log', $this->lang->line('error_not_change'));
         }
     } else {
         $this->session->set_flashdata('error', $this->lang->line('error_not_change'));
         $this->custom_log->write_log('custom_log', $this->lang->line('error_not_change'));
     }
     redirect(base_url() . 'superadmin/brand_management');
 }
Example #24
0
 public function delete_free_shipping_category($freeShipCatId = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'delete_free_shipping_category', 'log_MID' => ''));
     $freeShipCatId = id_decrypt($freeShipCatId);
     $this->custom_log->write_log('custom_log', 'free shipping category id is ' . $freeShipCatId);
     if ($freeShipCatId) {
         if ($this->segment_cat_m->delete_free_shipping_category($freeShipCatId)) {
             $this->session->set_flashdata('success', 'Free shipping category deleted successfully');
             $this->custom_log->write_log('custom_log', 'Free shipping category deleted successfully');
         } else {
             $this->session->set_flashdata('error', 'Free shipping category not delete');
             $this->custom_log->write_log('custom_log', 'Free shipping category not delete');
         }
     } else {
         $this->session->set_flashdata('error', 'Free shipping category not found');
         $this->custom_log->write_log('custom_log', 'Free shipping category not found');
     }
     redirect(base_url() . $this->session->userdata('userType') . '/free_shipping_category');
 }
Example #25
0
 public function addEditCategory($parentCategoryId = 0, $categoryId = 0)
 {
     $organizationId = $this->session->userdata('organizationId');
     $categoryId = id_decrypt($categoryId);
     $parentCategoryId = id_decrypt($parentCategoryId);
     $category_detail = $this->organization_category_m->category_detail($categoryId, $organizationId);
     //print_r($category_detail);
     if (!empty($category_detail)) {
         $categoryCode = $category_detail->categoryCode;
         $categoryDescription = $category_detail->categoryDescription;
         $image = $category_detail->imageName;
     } else {
         $categoryCode = '';
         $categoryDescription = '';
         $image = '';
     }
     if (isset($_POST) && !empty($_POST)) {
         $organization_id = $this->session->userdata('organizationId');
         $categoryCode = $this->input->post('categoryCode');
         $categoryDescription = $this->input->post('categoryDescription');
         $parentCategoryId = $parentCategoryId;
         $image = $this->input->post('categoryimage');
         $lastModifiedBy = $this->session->userdata('userId');
         if (!empty($category_detail)) {
             $rs = $this->organization_category_m->update_category($organization_id, $categoryId, $categoryCode, $categoryDescription, $image, $lastModifiedBy, $parentCategoryId);
         } else {
             $rs = $this->organization_category_m->add_category($organization_id, $categoryCode, $categoryDescription, $image, $lastModifiedBy, $parentCategoryId);
         }
         redirect(base_url() . 'retailer/category_Mgmt/category_listing/' . id_encrypt($parentCategoryId));
     }
     $this->data['categoryCode'] = $categoryCode;
     $this->data['categoryDescription'] = $categoryDescription;
     $this->data['imageName'] = $image;
     $this->data['parentCatId'] = $parentCategoryId;
     $this->data['imagePath'] = base_url() . 'uploads/category/';
     $this->data['imageUploadPath'] = base_url() . 'retailer/category_Mgmt/upload_category_image';
     $this->data['catId'] = $categoryId;
     $this->data['parentCatId'] = $parentCategoryId;
     $this->data['categoryName'] = $categoryCode;
     $this->retailerCustomView('pointepay/category_Mgmt/addEditcategory', $this->data);
 }
Example #26
0
 public function test($ordeID)
 {
     $this->session->set_userdata(array('log_MODULE' => 'print_page', 'log_MID' => ''));
     $orderID = id_decrypt($ordeID);
     $result = $this->order_pickup_lib->pickup_order_view($orderID, 3);
     $this->data['result'] = $result;
     //echo "<pre>"; print_r($result); exit;
     echo $this->load->view('shipping_management/pickup_orders_management/print_page', $this->data, true);
 }
Example #27
0
 public function save_delivered_date()
 {
     $this->session->set_userdata(array('log_MODULE' => 'save_delivered_date', 'log_MID' => ''));
     $this->custom_log->write_log('custom_log', 'Post data is ' . print_r($_POST, true));
     $order_id = id_decrypt($this->input->post('order_id'));
     $delivered_date = $this->input->post('delivered_date');
     if ($order_id) {
         if ($this->order_m->save_delivered_date($order_id, $delivered_date)) {
             $getDetails = $this->order_m->order_details($order_id);
             if (!empty($getDetails)) {
                 $customOrderDet = $this->order_m->order_organization_custom_payment_details($getDetails->customOrderId, $getDetails->organizationProductId);
                 if (!empty($customOrderDet)) {
                     if (!empty($customOrderDet->orderDetailId) && $customOrderDet->orderDetailId) {
                         $this->order_m->custom_save_delivered_date($customOrderDet->orderDetailId, $delivered_date);
                     }
                 }
             }
             $this->session->set_flashdata('success', $this->lang->line('success_save_delivered_date'));
             $this->custom_log->write_log('custom_log', $this->lang->line('success_save_delivered_date'));
         } else {
             $this->session->set_flashdata('error', $this->lang->line('error_save_delivered_date'));
             $this->custom_log->write_log('custom_log', $this->lang->line('error_save_delivered_date'));
         }
     }
 }
Example #28
0
 public function unsubscribe_email($newSubId = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'unsubscribe_email', 'log_MID' => ''));
     $newSubId = id_decrypt($newSubId);
     $this->custom_log->write_log('custom_log', 'new subscrition id is ' . $newSubId);
     if (!empty($newSubId) && $newSubId) {
         //$getDetails = $this->news_sub_email_m->news_letter_subscription_email($newSubId);
         //$this->custom_log->write_log('custom_log','News letter details is '.print_r($getDetails,true));
     } else {
         $this->session->set_flashdata('error', 'News letter id not found');
         $this->custom_log->write_log('custom_log', 'News letter id not found');
     }
     redirect(base_url());
 }
Example #29
0
 public function update_attribute()
 {
     $key = array_keys($_POST);
     $data = array('productAttributeName' => $_POST[$key[0]]);
     $attribute_id = id_decrypt($key[0]);
     $this->db->where('productAttributeNameId', $attribute_id);
     $rs = $this->db->update('product_attribute_name', $data);
     echo json_encode($_POST);
 }
Example #30
0
 public function rating_review_list($productId = 0, $rating = 0)
 {
     $this->session->set_userdata(array('log_MODULE' => 'rating_review_list', 'log_MID' => ''));
     $productId = id_decrypt($productId);
     $result = array('productName' => '', 'avgRating' => 0, 'totalRating' => 0, 'productRating1' => 0, 'productRating2' => 0, 'productRating3' => 0, 'productRating4' => 0, 'productRating5' => 0);
     $this->data['title'] = 'Product Rating Review List';
     $this->custom_log->write_log('custom_log', 'product id is ' . $productId);
     if (!$productId) {
         $this->session->set_flashdata('error', 'Product not select for rating or review');
         redirect(base_url());
     } else {
         $productDetails = $this->product_m->product_details($productId);
         if (!empty($productDetails)) {
             $result['productName'] = $productDetails->code;
         }
     }
     $ratingReviewCount = $this->rating_review_m->check_rating_product($productId);
     if (!empty($ratingReviewCount)) {
         $result['avgRating'] = $ratingReviewCount->avgProductRating;
         $result['totalRating'] = $ratingReviewCount->totalProductRating;
         $result['productRating1'] = $ratingReviewCount->productRating1;
         $result['productRating2'] = $ratingReviewCount->productRating2;
         $result['productRating3'] = $ratingReviewCount->productRating3;
         $result['productRating4'] = $ratingReviewCount->productRating4;
         $result['productRating5'] = $ratingReviewCount->productRating5;
     }
     $ratingReviewList = $this->rating_review_m->frontend_rating_review_list($productId, $rating);
     //echo "<pre>"; print_r($ratingReviewList); exit;
     $this->data['productId'] = $productId;
     $this->data['ratingReviewList'] = $ratingReviewList;
     $this->data['result'] = $result;
     $this->frontendCustomView('product_rating_review/rating_review_list', $this->data);
 }