Changeset 2189376
- Timestamp:
- 11/11/2019 12:47:46 AM (6 years ago)
- Location:
- narnoo-commerce-manager/trunk
- Files:
-
- 9 edited
-
assets/js/ncm_front.js (modified) (8 diffs)
-
includes/controller/ncm_cart.class.php (modified) (43 diffs)
-
includes/controller/ncm_checkout.class.php (modified) (15 diffs)
-
includes/controller/ncm_narnoo_helper.class.php (modified) (4 diffs)
-
includes/controller/ncm_narnoo_operator_helper.class.php (modified) (1 diff)
-
includes/controller/ncm_product.class.php (modified) (1 diff)
-
includes/controller/ncm_shortcode.class.php (modified) (3 diffs)
-
log/ncm_log.txt (modified) (1 diff)
-
narnoo-commerce-manager.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
narnoo-commerce-manager/trunk/assets/js/ncm_front.js
r2176621 r2189376 771 771 }); 772 772 773 /*jQuery(document).ready(function() { 774 775 var pc = jQuery('.ncm_pickup_location option:selected').attr("data-pick-price"); 776 console.log(pc); 777 778 //var pc = jQuery('.ncm_pickup_location option:selected').trigger("change"); 779 //console.log(pc); 780 781 });*/ 773 782 774 783 … … 781 790 782 791 var booking_date = jQuery(this).attr("data-ncm_booking_date"); 792 793 var data_ncm_pick_loc_price = jQuery(this).attr("data-ncm_pick_loc_price"); 794 //console.log('Yes'+data_ncm_pick_loc_price); 795 //console.log(jQuery("select.ncm_pickup_location").length > 0); 783 796 784 797 ncm_add_to_cart( post_id, booking_date, '', '', pickup, '', '' ); 785 798 786 799 var PickPrice = jQuery(this).find("option:selected").data("pick-price"); 787 console.log(PickPrice);788 789 if (PickPrice == 'undefined') {800 //console.log(PickPrice); 801 802 /*if (PickPrice == 'undefined') { 790 803 PickPrice = 0; 791 804 }else{ 792 805 PickPrice = PickPrice; 793 } 806 }*/ 794 807 795 808 var PickLocationPrice = jQuery('option:selected', this).attr('data-pick-price'); 796 809 //console.log(PickLocationPrice); 797 798 jQuery(".ncm_pickup_location").attr("data-ncm_pick_loc_price", PickPrice); 810 var selectid = jQuery(this).attr('id'); 811 jQuery(this).attr("data-ncm_pick_loc_price", PickPrice); 812 //console.log('datancm_pick_loc_price'+PickPrice); 799 813 800 814 ncm_calculate_price(); … … 839 853 840 854 var levy = jQuery(this).attr("data-ncm_levy"); 841 console.log(levy);855 //console.log(levy); 842 856 843 857 if(ncm_post_id==post_id && ncm_booking_date==booking_date) { … … 1300 1314 var products = []; 1301 1315 1302 var picklocprice = jQuery('.ncm_pickup_location').attr("data-ncm_pick_loc_price"); 1303 console.log(picklocprice); 1316 1304 1317 1305 1318 jQuery("select.ncm_passenger").each( function () { … … 1317 1330 var commission = select.attr('data-ncm_commission'); 1318 1331 1332 var group = select.attr('data-ncm_group'); 1333 1334 var maxquantity = select.attr('data-ncm_maxquantity'); 1335 1336 //console.log('Yes-->'+group); 1337 1319 1338 var product_subtotal_id = select.attr('data-ncm_subtotal_id'); 1320 1339 … … 1333 1352 var ncm_passenger_fields = jQuery("#ncm_passenger_fields_"+ncm_cart_row_id).val(); 1334 1353 1335 1354 var pickppriceselect = jQuery('.ncm_passenger_'+ncm_cart_row_id).find('.ncm_pickup_location').attr('data-ncm_pick_loc_price'); 1355 1336 1356 1337 1357 products.push({ … … 1346 1366 1347 1367 'commission' : commission, 1368 1369 'group' : group, 1370 1371 'maxquantity' : maxquantity, 1348 1372 1349 1373 'product_subtotal_id' : product_subtotal_id, … … 1362 1386 1363 1387 'ncm_passenger_fields' : ncm_passenger_fields, 1364 1365 'ncm_pick_loc_price' : picklocprice, 1388 1389 'ncm_pick_loc_price' : pickppriceselect, 1390 1366 1391 1367 1392 }); -
narnoo-commerce-manager/trunk/includes/controller/ncm_cart.class.php
r2176621 r2189376 103 103 foreach ($_POST['product'] as $product) { 104 104 105 $passenger = isset($product['passenger']) ? $product['passenger'] : 0; 105 106 //$passenger = isset($product['passenger']) ? $product['passenger'] : 0; 106 107 107 108 $price = isset($product['price']) ? $product['price'] : 0; … … 111 112 $pax = isset($product['pax']) ? $product['pax'] : 1; 112 113 114 $group = $product['group']; 115 116 $maxQuantity = $product['maxQuantity']; 117 118 //$passenger = isset($product['passenger']) ? $product['passenger'] : 0; 119 120 if($group == 'false'){ 121 $passenger = isset($product['passenger']) ? $product['passenger'] : 0; 122 }else{ 123 if($product['passenger'] == 0){ 124 $passenger = 0; 125 }elseif($product['passenger'] >= 1){ 126 $passenger = 1; 127 } 128 } 129 130 //$passenger = isset($product['passenger']) ? $product['passenger'] : 0; 131 132 //echo 'Price->>>'.$price; 133 //echo 'Pes->>>'.$passenger; 134 113 135 $pick_loc_price = isset($product['ncm_pick_loc_price']) ? $product['ncm_pick_loc_price'] : 0; 136 137 //echo 'picklocation===>'.$pick_loc_price; 114 138 115 139 $commission = isset($product['commission']) ? $product['commission'] : 0; … … 133 157 134 158 135 159 136 160 137 161 $product_levy = $levy * $passenger; 138 162 163 139 164 //if($pick_loc_price > 0 && !empty($pick_loc_price)){ 140 165 … … 154 179 155 180 $product_price = $price * $passenger; 181 182 //$product_price = $price * $passenger; 156 183 157 184 $product_total = $product_levy + $product_price; 158 185 //} 159 186 //echo 'Product Price'.$product_price; 160 187 161 188 // For sub total amount … … 163 190 if( !empty( $product_sub_arr ) && in_array( $product_subtotal_id, $product_sub_arr ) ) { 164 191 192 165 193 $picloc = $pick_loc_price * $passenger; 166 194 167 195 $subtotal = $ncm_calculate[$product_subtotal_id]['amount'] + $product_price + $picloc; 168 196 197 169 198 $ncm_calculate[$product_subtotal_id] = array('amount' => $subtotal, 'subtotal' => $ncm_settings->ncm_display_price($subtotal) ); 170 199 200 171 201 } else { 172 202 173 203 $picloc = $pick_loc_price * $passenger; 174 204 205 175 206 $subtotal = $product_price + $picloc; 176 207 208 177 209 $ncm_calculate[$product_subtotal_id] = array('amount' => $subtotal, 'subtotal' => $ncm_settings->ncm_display_price($subtotal) ); 178 210 … … 180 212 181 213 $ncm_cart_subtotal = $ncm_cart_subtotal + $product_price + $picloc + $product_levy; 214 182 215 183 216 $product_sub_arr[] = $product_subtotal_id; … … 207 240 208 241 209 210 242 // For total amount 211 243 … … 233 265 234 266 235 236 267 // For Passenger fields 237 268 … … 246 277 247 278 248 $ncm_passenger_fields = json_decode( stripslashes( $ncm_passenger_fields ), true ); 279 $ncm_passenger_fields = json_decode( stripslashes( $ncm_passenger_fields ), true ); 280 281 249 282 250 283 // set fields for no of passengers. … … 315 348 316 349 317 318 350 if( !empty( $product_passenger_fields_arr ) && in_array( $product_passenger_fields, $product_passenger_fields_arr ) ) { 319 351 … … 328 360 } 329 361 362 330 363 $product_passenger_fields_arr[] = $product_passenger_fields; 331 364 … … 334 367 } 335 368 369 336 370 $ncm_calculate['ncm_cart_subtotal'] = array('amount' => $ncm_cart_subtotal, 'subtotal' => $ncm_settings->ncm_display_price($ncm_cart_subtotal)); 337 371 … … 676 710 $ncm_passenger_data = array(); 677 711 712 /*echo '<pre>'; 713 print_r($ncm_booking_data); 714 echo '</pre>';*/ 715 678 716 $fields = ( isset( $booking_data['bookingFields'] ) && !empty( $booking_data['bookingFields'] ) ) ? $booking_data['bookingFields'] : array(); 679 717 … … 706 744 // get passenger fields from api 707 745 746 /*echo '<pre>'; 747 print_r($fields['perParticipant']); 748 echo '</pre>';*/ 749 708 750 $passenger_fields = ( isset( $fields['perParticipant'] ) && !empty( $fields['perParticipant'] ) ) ? $fields['perParticipant'] : array(); 709 751 … … 728 770 global $ncm_narnoo_helper, $ncm; 729 771 772 /*echo '<pre>'; 773 print_r($ncm_booking_data); 774 echo '</pre>';*/ 775 776 730 777 $passenger_type = array(); 731 778 … … 746 793 $passenger = isset($cart_data['passenger']) ? $cart_data['passenger'] : '0'; 747 794 748 795 //echo 'pik====>'.$pickup; 796 if (is_array($ncm_booking_data['productPickUps']) || is_object($ncm_booking_data['productPickUps'])){ 797 798 foreach($ncm_booking_data['productPickUps'] as $keyp => $valuep){ 799 800 /*echo '<pre>'; 801 print_r($valuep); 802 echo '</pre>';*/ 803 804 if($valuep['id'] == $pickup){ 805 //echo 'Yes'; 806 $pickuplocval = $valuep['price']; 807 } 808 } 809 } 810 //echo 'pickval=>>>>>'.$pickuplocval; 749 811 750 812 $passenger_info = array(); … … 763 825 764 826 765 766 827 $product_available = isset($result['productAvailability'][0]) ? $result['productAvailability'][0] : array(); 767 828 … … 770 831 $availability_option = array_combine(range(0,$availability), range(0,$availability)); 771 832 772 833 /*echo '<pre>'; 834 print_r($ncm_booking_data['productPrices']); 835 echo '</pre>';*/ 773 836 774 837 $ncm_product_prices = array(); … … 778 841 foreach( $ncm_booking_data['productPrices'] as $price ) { 779 842 843 /*echo '<pre>'; 844 print_r($price); 845 echo '</pre>';*/ 846 780 847 $passenger_id = isset($price['id']) ? $price['id'] : 0; 781 848 782 849 $pax = isset($price['pax']) ? $price['pax'] : 1; 783 850 851 $group = !empty($price['group']) ? $price['group'] : 'false'; 852 //$group = $price['group']; 853 //echo 'Group-->'.$price['minQuantity']; 854 855 $maxQuantity = !empty($price['maxQuantity']) ? $price['maxQuantity'] : 'null'; 856 784 857 $ncm_product_prices[$passenger_id] = $pax; 785 858 … … 788 861 } 789 862 790 863 //echo 'Group-->'.$maxQuantity; 791 864 792 865 … … 796 869 $levy = 0; 797 870 871 //$pickuplocval = 0; 872 798 873 if( isset($product_available['price']) && !empty($product_available['price']) ) { 799 874 … … 802 877 foreach( $product_available['price'] as $type ) { 803 878 879 880 /*echo '<pre>'; 881 print_r($type); 882 echo '</pre>';*/ 883 804 884 $passengers = array(); 805 885 … … 820 900 $passengers['commission'] = isset($type['commission']) ? $type['commission'] : 0; 821 901 902 $passengers['group'] = $group; 903 904 $passengers['maxQuantity'] = $maxQuantity; 905 906 822 907 823 908 824 909 $passenger_type[] = $passengers; 825 910 826 911 //echo 'Group Val->>>'.$group; 912 913 914 if($group == 1){ 915 if($passengers['value'] == 0 ){ 916 $passengers['value'] = 0; 917 }elseif($passengers['value'] >= 1){ 918 $passengers['value'] = 1; 919 } 920 }elseif($group == false){ 921 $passengers['value'] = $passengers['value']; 922 }else{ 923 $passengers['value'] = $passengers['value']; 924 } 925 926 //echo 'Pas val-->'.$passengers['value'].'<br/>'; 827 927 828 928 $levy = $levy + ( $passengers['value'] * $passengers['levy'] ); … … 830 930 $subtotal = $subtotal + ( $passengers['value'] * $passengers['price'] ); 831 931 932 //$subtotal = $subtotal + $pickuplocval; 933 934 //echo $passengers['value']; 935 936 //$pickuplocval = $passengers['value'] * 25; 937 //echo 'pric==>'.$passengers['price'].'<br/>'; 938 939 832 940 } 833 941 834 942 } 835 836 943 944 837 945 838 946 $passenger_info['tour_name'] = $tour_names; … … 842 950 $passenger_info['passenger_types'] = $passenger_type; 843 951 844 $passenger_info['subtotal'] = $subtotal; 952 /*echo '<pre>'; 953 print_r($passenger_type); 954 echo '</pre>';*/ 955 956 $subpescount = 0; 957 foreach($passenger_type as $key => $datap){ 958 //echo $datap['value']; 959 if($datap['value'] >= 1){ 960 $subpescount = $subpescount + $datap['value']; 961 } 962 } 963 //echo $subpescount; 964 965 //$passenger_info['subtotal'] = $subtotal; 966 $pickuplocval = $pickuplocval * $subpescount; 967 if(!empty($pickuplocval)){ 968 $passenger_info['subtotal'] = $subtotal + $pickuplocval; 969 }else{ 970 $passenger_info['subtotal'] = $subtotal; 971 } 845 972 846 973 $passenger_info['levy'] = $levy; 847 974 975 $passenger_info['picklocationprice'] = $pickuplocval; 976 977 848 978 //$passenger_info['total'] = $subtotal; // + $levy; 849 $passenger_info['total'] = $subtotal + $levy; 979 //$passenger_info['total'] = $subtotal + $levy; 980 981 if(!empty($pickuplocval)){ 982 $passenger_info['total'] = $subtotal + $levy + $pickuplocval; 983 }else{ 984 $passenger_info['total'] = $subtotal + $levy; 985 } 986 850 987 851 988 $passenger_info['ncm_res_availability'] = $result_available; … … 853 990 $passenger_info['passenger_fields'] = isset($ncm_fields['passenger_fields']) ? $ncm_fields['passenger_fields'] : array(); 854 991 992 855 993 } 856 994 … … 867 1005 $passengers_info = $this->passenger_type; 868 1006 1007 /*echo '<pre>'; 1008 print_r($passengers_info); 1009 echo '</pre>';*/ 869 1010 870 1011 … … 878 1019 $availability_option = isset($passenger_info['availability_option']) ? $passenger_info['availability_option'] : ''; 879 1020 1021 /*echo '<pre>'; 1022 print_r($passenger_info); 1023 echo '</pre>';*/ 1024 880 1025 $passenger_types = isset($passenger_info['passenger_types']) ? $passenger_info['passenger_types'] : ''; 881 1026 882 1027 883 884 1028 $passenger_type = array(); 885 1029 … … 892 1036 foreach ($passenger_types as $key => $passenger) { 893 1037 894 1038 /*echo '<pre>'; 1039 print_r($passenger); 1040 echo '</pre>';*/ 895 1041 896 1042 $id = isset($passenger['id']) ? $passenger['id'] : 0; … … 910 1056 $commission = isset($type['commission']) ? $type['commission'] : 0; 911 1057 1058 $group = $passenger['group']; 1059 1060 $maxQuantity = $passenger['maxQuantity']; 1061 1062 //echo 'Group->>>'.$group; 1063 1064 912 1065 $name = 'passenger_'.$cart_row_id.'_'.$id; 913 1066 914 1067 915 1068 //echo 'max qty->>'.$maxQuantity; 1069 1070 if($maxQuantity == 'null'){ 1071 $availability_option = $availability_option; 1072 }else{ 1073 $ncm_maxqty = 0; 1074 $maxQuantityarray = array(); 1075 while($ncm_maxqty <= $maxQuantity) { 1076 $maxQuantityarray[] = $ncm_maxqty; 1077 $ncm_maxqty++; 1078 } 1079 1080 $availability_option = $maxQuantityarray; 1081 } 1082 1083 916 1084 $control = $ncm_controls->ncm_control( 917 1085 … … 929 1097 930 1098 "options" => $availability_option, 931 1099 932 1100 "data-ncm_price" => $price, 933 1101 … … 937 1105 938 1106 "data-ncm_commission" => $commission, 1107 1108 "data-ncm_group" => $group, 1109 1110 "data-ncm_maxQuantity" => $maxQuantity, 939 1111 940 1112 "data-ncm_subtotal_id" => "product_subtotal_".$cart_row_id, … … 1078 1250 1079 1251 1080 1081 1252 $ncm_booking_data = isset( $ncm_product_booking_data['bookingData'] ) ? $ncm_product_booking_data['bookingData'] : array(); 1082 1253 1083 1254 1084 1085 1255 $ncm_fields = $this->ncm_get_fields($cart_row_id, $ncm_booking_data); 1086 1256 … … 1115 1285 } 1116 1286 1287 foreach ($pickup_options as $keypick => $valuepick) { 1288 if($keypick == $pickup){ 1289 $pickuplocval = $valuepick[1]; 1290 } 1291 } 1292 1117 1293 $ncm_is_live = isset( $ncm_booking_data['isLive'] ) ? $ncm_booking_data['isLive'] : true; 1118 1294 … … 1134 1310 1135 1311 $products[$cart_row_id]['pickup_value'] = $pickup; 1312 $products[$cart_row_id]['pickup_price'] = $pickuplocval; 1136 1313 1137 1314 $products[$cart_row_id]['dropoff_value'] = $dropoff; … … 1165 1342 $products_info = $this->ncm_cart_product_info(); 1166 1343 1344 /*echo '<pre>'; 1345 print_r($products_info); 1346 echo '</pre>';*/ 1167 1347 1168 1348 $ncm_booking_fields = array(); … … 1191 1371 $booking_fields = isset($product['ncm_booking_fields']) ? $product['ncm_booking_fields'] : array(); 1192 1372 1373 1374 //echo $product['pickup_dropoff_option']$product['pickup_value']; 1375 foreach ($product['pickup_dropoff_option'] as $key => $value) { 1376 if($key == $pickup){ 1377 $pickpir = $value[1]; 1378 } 1379 } 1380 //echo 'pickprice===>>'.$pickpir; 1381 //setcookie('NCM_pickuplocationprice', $pickpir, 0, '/'); 1193 1382 1194 1383 … … 1209 1398 if( count( $pickup_options ) > 1 ) { 1210 1399 1400 1211 1401 $ncm_data_val = ''; 1212 1402 … … 1233 1423 "data-ncm_booking_date" => $booking_date, 1234 1424 1235 "data-ncm_pick_loc_price" => $pick_loc_price, 1425 "data-ncm_pick_loc_price" => $pickpir, 1426 //"data-ncm_pick_loc_price" => $pick_loc_price, 1236 1427 1237 1428 "data-error_required" => __("Please select pickup location.", NCM_txt_domain), … … 1399 1590 } 1400 1591 1592 1401 1593 return $product_info; 1402 1594 … … 1453 1645 $ncm_passenger = $this->ncm_get_passenger(); 1454 1646 1647 /*echo '<pre>'; 1648 print_r($ncm_passenger); 1649 echo '</pre>';*/ 1650 1455 1651 foreach ($ncm_passenger as $row_id => $ncm_product_field) { 1456 1652 … … 1550 1746 1551 1747 $ncm_levy = array_sum(array_column($ncm_cart->passenger_type, 'levy')); 1552 1748 1749 $ncm_picklocation = array_sum(array_column($ncm_cart->passenger_type, 'picklocationprice')); 1750 1751 //$ncm_subtotal = $ncm_subtotal + $ncm_levy + $ncm_picklocation; 1553 1752 $ncm_subtotal = $ncm_subtotal + $ncm_levy; 1554 1753 1754 1555 1755 echo '<span class="ncm_cart_subtotal" id="ncm_cart_subtotal">'.$ncm_settings->ncm_display_price($ncm_subtotal).'</span>'; 1556 1756 … … 1571 1771 $ncm_levy = array_sum(array_column($ncm_cart->passenger_type, 'levy')); 1572 1772 1773 $ncm_picklocation = array_sum(array_column($ncm_cart->passenger_type, 'picklocationprice')); 1774 1775 1776 1777 //$ncm_total = $ncm_total + $ncm_picklocation; 1573 1778 $ncm_total = $ncm_total - $ncm_levy; 1574 1779 //echo 'pickprice=>>'.$ncm_picklocation.'---Total====>>'.$ncm_total; 1780 1575 1781 echo '<span class="ncm_cart_total" id="ncm_cart_total">'.$ncm_settings->ncm_display_price($ncm_total).'</span>'; 1576 1782 -
narnoo-commerce-manager/trunk/includes/controller/ncm_checkout.class.php
r2176621 r2189376 519 519 $cart_products = $ncm_cart->ncm_cart_product_info(); 520 520 521 /*echo '<pre>'; 522 print_r($cart_products); 523 echo '</pre>';*/ 524 521 525 $cart_passenger = $ncm_cart->passenger_type; 522 526 … … 525 529 foreach ($cart_products as $key => $product) { 526 530 527 531 /* echo '<pre>'; 532 print_r($product); 533 echo '</pre>';*/ 528 534 529 535 $checkout_data = array(); … … 545 551 $ncm_dropoff_data_val = ( $checkout_data['dropoff'] == 'Please Select' ) ? 'data-val="Please select"' : ''; 546 552 547 553 554 555 //echo 'pickloc===>'.$checkout_data['pickup'][1]; 548 556 549 557 $checkout_data['pickup']='<span class="ncm_pickup" ' . $ncm_pickup_data_val . '>'. $checkout_data['pickup'][0] .'</span>'; … … 552 560 553 561 554 562 foreach ($product['pickup_dropoff_option'] as $keypick => $valuepick) { 563 if($keypick == $checkout_data['pickup_value']){ 564 $pickuplocval = $valuepick[1]; 565 } 566 } 567 568 //echo $checkout_data['pickup_price']; 569 570 //echo $pickuplocval; 555 571 556 572 … … 559 575 $passenger_text = ''; 560 576 577 /*echo '<pre>'; 578 print_r($cart_passenger[$key]['passenger_types']); 579 echo '</pre>';*/ 580 561 581 if( isset($cart_passenger[$key]['passenger_types']) && !empty($cart_passenger[$key]['passenger_types']) && is_array($cart_passenger[$key]['passenger_types']) ) { 562 582 … … 581 601 $checkout_data['passenger'] = empty($passenger_text) ? '-' : $passenger_text; 582 602 583 603 /*echo '<pre>'; 604 echo count($passenger_data); 605 echo '</pre>';*/ 606 //echo $passenger['value']; 607 //echo 'subttal==>'.$checkout_data['pickup_price']; 608 //echo 'subtotal==>'.$cart_passenger[$key]['subtotal']; 609 610 //$pickprice = $checkout_data['pickup_price'] * count($passenger_data); 611 //echo $pickprice; 612 613 $checkoutsubtotal = $cart_passenger[$key]['subtotal'] + $checkout_data['pickup_price']; 614 $checkouttotal = $cart_passenger[$key]['total'] + $checkout_data['pickup_price']; 615 616 //echo $cart_passenger[$key]['subtotal']; 584 617 585 618 $checkout_data['subtotal'] = $ncm_settings->ncm_display_price($cart_passenger[$key]['subtotal']); 586 619 620 //echo 'Subtotla'.$checkout_data['subtotal']; 621 //$checkout_data['subtotal'] = $ncm_settings->ncm_display_price($checkoutsubtotal); 622 623 587 624 $checkout_data['levy'] = $ncm_settings->ncm_display_price($cart_passenger[$key]['levy']); 588 625 589 626 $checkout_data['total'] = $ncm_settings->ncm_display_price($cart_passenger[$key]['total']); 627 628 //$checkout_data['total'] = $ncm_settings->ncm_display_price($checkouttotal); 590 629 591 630 ncm_get_template("ncm-checkout-product", $checkout_data); … … 769 808 $pickup = isset($location_option[$product['pickup_value']]) ? $location_option[$product['pickup_value']] : ''; 770 809 810 //echo '<pre>'; 811 //echo $pickup[0]; 812 //echo '</pre>'; die(); 813 771 814 $dropoff = isset($location_option[$product['dropoff_value']]) ? $location_option[$product['dropoff_value']] : ''; 772 815 … … 777 820 $prod_post_id = isset($product['post_id']) ? $product['post_id'] : 0; 778 821 779 822 $subtotalorder = $product['subtotal'] + $product['picklocationprice']; 823 $totalorder = $product['total'] + $product['picklocationprice']; 780 824 781 825 $product_data = array( … … 799 843 'pickup_id' => isset($product['pickup_value']) ? $product['pickup_value'] : '', 800 844 801 'pickup' => $pickup, 845 //'pickup' => $pickup, 846 'pickup' => $pickup[0], 802 847 803 848 'dropoff_id' => isset($product['dropoff_value']) ? $product['dropoff_value'] : '', … … 808 853 809 854 'subtotal' => $product['subtotal'], 855 //'subtotal' => $subtotalorder, 810 856 811 857 'levy' => $product['levy'], 812 858 813 859 'total' => $product['total'], 860 //'total' => $totalorder, 814 861 815 862 ); … … 929 976 global $ncm, $wpdb, $ncm_cart, $ncm_narnoo_helper, $ncm_payment_gateways, $ncm_order; 930 977 978 931 979 $order_id = ''; 932 980 … … 948 996 949 997 $cart_passenger = $ncm_cart->passenger_type; 998 999 /*echo '<pre>'; 1000 print_r($cart_passenger); 1001 echo '</pre>'; die();*/ 950 1002 951 1003 $products = array(); … … 1036 1088 $data['subtotal'] = array_sum(array_column($products, 'subtotal')) + array_sum(array_column($products, 'levy')); 1037 1089 1090 //$data['subtotal'] = array_sum(array_column($products, 'subtotal')) + array_sum(array_column($products, 'levy')) + array_sum(array_column($products, 'picklocationprice')); 1091 1092 1038 1093 $data['levy'] = array_sum(array_column($products, 'levy')); 1039 1094 … … 1044 1099 }else{ 1045 1100 $data['total'] = array_sum(array_column($products, 'total')) - array_sum(array_column($products, 'levy')); 1101 //$totalprice = array_sum(array_column($products, 'total')) + array_sum(array_column($products, 'picklocationprice')); 1102 //$data['total'] = $totalprice - array_sum(array_column($products, 'levy')); 1046 1103 } 1047 1104 … … 1287 1344 1288 1345 $order_id = $data['order_id']; 1289 1290 1346 1291 1347 -
narnoo-commerce-manager/trunk/includes/controller/ncm_narnoo_helper.class.php
r2176621 r2189376 256 256 $result_data = json_decode($result); 257 257 258 /*echo '<pre>'; 259 print_r($result_data); 260 echo '</pre>'; die();*/ 261 258 262 $result = isset($result_data->data) ? json_encode($result_data->data) : json_encode($result_data); 259 263 … … 327 331 } 328 332 329 333 330 334 331 335 if( $response_type == 'array' ) { … … 379 383 380 384 $result_data = json_decode($result); 385 386 /*echo '<pre>'; 387 print_r($result_data); 388 echo '</pre>';*/ 381 389 382 390 $result = isset($result_data->data) ? json_encode($result_data->data) : json_encode($result_data); … … 480 488 $option["price"] = $passenger['price']; 481 489 490 $option["group"] = $passenger['group']; 491 492 $option["maxQuantity"] = $passenger['maxQuantity']; 493 482 494 $options[] = $option; 483 495 -
narnoo-commerce-manager/trunk/includes/controller/ncm_narnoo_operator_helper.class.php
r2155249 r2189376 375 375 $option["price"] = $passenger['price']; 376 376 377 $option["group"] = $passenger['group']; 378 377 379 $options[] = $option; 378 380 -
narnoo-commerce-manager/trunk/includes/controller/ncm_product.class.php
r2155249 r2189376 81 81 $product_data = $ncm_narnoo_helper->ncm_product_details( $op_id, $product_id, 'array' ); 82 82 83 83 84 $booking_data = isset($product_data['bookingData']) ? $product_data['bookingData'] : array(); 84 85 -
narnoo-commerce-manager/trunk/includes/controller/ncm_shortcode.class.php
r2176621 r2189376 1814 1814 1815 1815 1816 1817 $col = $atts['col']; 1818 1819 $posts_per_page = $atts['posts_per_page']; 1820 1821 1822 1823 if(!empty($posts_per_page)){ 1824 1825 $perpage = $posts_per_page; 1816 if(!empty($atts['col'])){ 1817 $col = $atts['col']; 1818 } 1819 1820 //$posts_per_page = $atts['posts_per_page']; 1821 1822 1823 1824 if(!empty($atts['posts_per_page'])){ 1825 1826 $perpage = $atts['posts_per_page']; 1826 1827 1827 1828 }else{ … … 2007 2008 global $ncm_settings, $post; 2008 2009 2009 2010 2011 $col = $atts['col'];2012 2013 $posts_per_page = $atts['posts_per_page']; 2014 2015 2016 2017 if(!empty($ posts_per_page)){2018 2019 $perpage = $ posts_per_page;2010 2011 if(!empty($atts['col'])){ 2012 $col = $atts['col']; 2013 } 2014 2015 2016 //$posts_per_page = $atts['posts_per_page']; 2017 2018 if(!empty($atts['posts_per_page'])){ 2019 2020 $perpage = $atts['posts_per_page']; 2020 2021 2021 2022 }else{ … … 2043 2044 'post_status' => 'publish', 2044 2045 2045 'posts_per_page' => $p osts_per_page,2046 'posts_per_page' => $perpage, 2046 2047 2047 2048 'order' => 'DESC', -
narnoo-commerce-manager/trunk/log/ncm_log.txt
r2176621 r2189376 404 404 after make booking call response values => {"success":true,"uniqueId":"XpaAwSgVsGBEdKA","data":{"contact":{"firstName":"Developer","lastName":"Last Name","phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode\/Zip":"12345","country":"Australia","Comment":"fasfafasfaffasfafasfa","I agree to the terms and conditions of travel":"I"},"booking":[{"confirmed":true,"reservationCode":173694,"bookingDate":"20-10-2019","productBookingCode":"RP:16:41:5","productId":496,"reservationProductName":null,"reservationPaymentOption":"full-agent","reservationProvider":"Respax"}],"bookingCount":1,"reservationQueryTime":"1029.48ms","success":true,"timestamp":"2019-10-18T21:46:35+11:00","cacheTime":null},"queryTime":"1797.39ms"} 405 405 406 =============== Write At => 19-10-24 10:13:09 =============== 407 after make booking call response values => {"success":true,"uniqueId":"0jeaLFl5wLEyXb9","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"dsdsfsdfsd","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"26-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"demo"},{"label":"Last Name","value":"demo"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"dsdsfsdfsd","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"120.3ms","success":true,"timestamp":"2019-10-24T21:13:04+11:00","cacheTime":null},"queryTime":"689.44ms"} 408 409 =============== Write At => 19-10-24 10:46:55 =============== 410 after make booking call response values => {"success":true,"uniqueId":"MDSUBAtZj8wJhw0","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"dasdasd","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"26-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"asdasd"},{"label":"Last Name","value":"dasd"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"dasdasd","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"25.84ms","success":true,"timestamp":"2019-10-24T21:46:51+11:00","cacheTime":null},"queryTime":"700.89ms"} 411 412 =============== Write At => 19-10-24 11:05:38 =============== 413 after make booking call response values => {"success":true,"uniqueId":"KjsOkR4Hm5v6DH2","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"fsdfsdfsdfsdfsd","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"26-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"dsadsaf"},{"label":"Last Name","value":"fdsfsdf"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"fsdfsdfsdfsdfsd","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"69.43ms","success":true,"timestamp":"2019-10-24T22:05:34+11:00","cacheTime":null},"queryTime":"640.21ms"} 414 415 =============== Write At => 19-10-24 13:58:20 =============== 416 after make booking call response values => {"success":true,"uniqueId":"ovVRAPr1YXvCJpD","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"Testing Comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"26-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"Testing Comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"26.77ms","success":true,"timestamp":"2019-10-25T00:58:15+11:00","cacheTime":null},"queryTime":"481.12ms"} 417 418 =============== Write At => 19-10-25 06:57:52 =============== 419 after make booking call response values => {"success":true,"uniqueId":"pEsi5jrLACANy5k","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"Testing comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"27-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"Last Name"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"Testing comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"17.51ms","success":true,"timestamp":"2019-10-25T17:57:48+11:00","cacheTime":null},"queryTime":"560.66ms"} 420 421 =============== Write At => 19-10-25 07:22:16 =============== 422 after make booking call response values => {"success":true,"uniqueId":"sPm3EekTw26Lh3O","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"sbcbcbcbcbcbcb","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"27-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"Last Name"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"sbcbcbcbcbcbcb","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"62.2ms","success":true,"timestamp":"2019-10-25T18:22:12+11:00","cacheTime":null},"queryTime":"581.05ms"} 423 424 =============== Write At => 19-10-25 07:44:09 =============== 425 after make booking call response values => {"success":true,"uniqueId":"g2m5lgHPqWcmbUx","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"testing comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"27-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"First Name"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"testing comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"26.68ms","success":true,"timestamp":"2019-10-25T18:44:06+11:00","cacheTime":null},"queryTime":"706.77ms"} 426 427 =============== Write At => 19-10-25 08:06:18 =============== 428 after make booking call response values => {"success":true,"uniqueId":"WpdRAXwMr1k478B","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"testing comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"27-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"First Name"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"testing comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"24.94ms","success":true,"timestamp":"2019-10-25T19:06:14+11:00","cacheTime":null},"queryTime":"686.77ms"} 429 430 =============== Write At => 19-10-25 08:44:22 =============== 431 after make booking call response values => {"success":true,"uniqueId":"pgskHKpJOCNlfEH","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"testing comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"27-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"First Name"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"testing comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"70ms","success":true,"timestamp":"2019-10-25T19:44:18+11:00","cacheTime":null},"queryTime":"719.98ms"} 432 433 =============== Write At => 19-10-25 09:09:41 =============== 434 after make booking call response values => {"success":true,"uniqueId":"Hm8wwIXfiFShkUi","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"dadadadadsd","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"27-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"Last Name"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"dadadadadsd","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"28.07ms","success":true,"timestamp":"2019-10-25T20:09:37+11:00","cacheTime":null},"queryTime":"566.08ms"} 435 436 =============== Write At => 19-10-29 06:16:25 =============== 437 after make booking call response values => {"success":true,"uniqueId":"HSmgCx0i0XRz3ce","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"Testing Comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"31-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"Testing Comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"25.8ms","success":true,"timestamp":"2019-10-29T17:16:23+11:00","cacheTime":null},"queryTime":"806.3ms"} 438 439 =============== Write At => 19-10-29 06:22:34 =============== 440 after make booking call response values => {"success":true,"uniqueId":"CKfkUIDm2VjCu0B","data":{"contact":{"firstName":"First Name","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"Testing comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"31-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}]],"bookingForm":{"2":{"value":"First Name","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"Testing comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"27.44ms","success":true,"timestamp":"2019-10-29T17:22:31+11:00","cacheTime":null},"queryTime":"712.63ms"} 441 442 =============== Write At => 19-10-29 07:48:41 =============== 443 after make booking call response values => {"success":true,"uniqueId":"L8um61aSw35Jc8M","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"asdsadasdas","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"31-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"First Name"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"asdsadasdas","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"17.16ms","success":true,"timestamp":"2019-10-29T18:48:39+11:00","cacheTime":null},"queryTime":"643.57ms"} 444 445 =============== Write At => 19-10-29 13:06:01 =============== 446 after make booking call response values => {"success":true,"uniqueId":"kSYE0V636K0qN8R","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"Testing comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"31-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"},{"id":395132,"label":"Child with Dive","quantity":1,"price":"155.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"First Name"}],[{"label":"First Name","value":"Test"},{"label":"Last Name","value":"Test"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"Testing comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"18.25ms","success":true,"timestamp":"2019-10-30T00:05:58+11:00","cacheTime":null},"queryTime":"661.69ms"} 447 448 =============== Write At => 19-10-29 13:21:53 =============== 449 after make booking call response values => {"success":true,"uniqueId":"NescBbxdIFH9cjS","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"bcbcbcvb","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"31-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"bcbcbcvb","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"18.22ms","success":true,"timestamp":"2019-10-30T00:21:50+11:00","cacheTime":null},"queryTime":"655.76ms"} 450 451 =============== Write At => 19-10-29 13:51:52 =============== 452 after make booking call response values => {"success":true,"uniqueId":"IFriaundIHV31e6","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"Testing comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"31-10-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":1,"price":"175.00"},{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"},{"id":395132,"label":"Child with Dive","quantity":1,"price":"155.00"}],"participants":[[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}],[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"First Name"}],[{"label":"First Name","value":"Test"},{"label":"Last Name","value":"Test"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"Testing comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"17.68ms","success":true,"timestamp":"2019-10-30T00:51:49+11:00","cacheTime":null},"queryTime":"576.7ms"} 453 454 =============== Write At => 19-10-30 11:52:50 =============== 455 after make booking call response values => {"success":true,"uniqueId":"oYiWlvRLxGto1FI","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"Testing Comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"01-11-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"demo"},{"label":"Last Name","value":"demo"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"Testing Comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}},{"confirmed":true,"reservationCode":854192,"bookingDate":"01-11-2019","productBookingCode":"RP:16:41:5","productId":496,"reservationProductName":null,"reservationPaymentOption":"full-agent","reservationProvider":"Respax"},{"confirmed":true,"reservationCode":839982,"bookingDate":"31-10-2019","productBookingCode":"RP:7:15:1","productId":495,"reservationProductName":null,"reservationPaymentOption":"full-agent","reservationProvider":"Respax"}],"bookingCount":3,"reservationQueryTime":"1863.42ms","success":true,"timestamp":"2019-10-30T22:52:46+11:00","cacheTime":null},"queryTime":"2508.06ms"} 456 457 =============== Write At => 19-10-31 10:02:23 =============== 458 after make booking call response values => {"success":true,"uniqueId":"1zhHHkpLVst0cMU","data":{"contact":{"firstName":"Web","lastName":"Developer","email":"aj.developer055@gmail.com","phone":"0123456789","country":"Australia"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"03-11-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395131,"label":"Child Snorkelers","quantity":1,"price":"110.00"}],"participants":[[{"label":"First Name","value":"Test"},{"label":"Last Name","value":"Test"}]],"bookingForm":{"1":{"value":"Web","label":"First Name"},"2":{"value":"Developer","label":"Last Name"},"3":{"value":"aj.developer055@gmail.com","label":"Email"},"4":{"value":"0123456789","label":"Phone\/Mobile"},"5":{"value":"Australia","label":"Country"}}}}],"bookingCount":1,"reservationQueryTime":"68.89ms","success":true,"timestamp":"2019-10-31T21:02:20+11:00","cacheTime":null},"queryTime":"606.75ms"} 459 460 =============== Write At => 19-11-04 06:42:11 =============== 461 after make booking call response values => {"success":true,"uniqueId":"4zcBTZ3qyZHxzCu","data":{"contact":{"firstName":"Developer","lastName":"Last Name","Phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode":"12345","country":"Australia","Comment":"Testing comment","I agree to the terms and conditions of travel":"I"},"booking":[{"error":true,"msg":"No availability reference code - check bookingDate","bookingCode":"FH:489:TT","order":{"productId":489,"bookingCode":"FH:489:TT","bookingDate":"06-11-2019 08:00:00","paymentMethod":"FULL_AGENT","productOptions":[{"id":395127,"label":"Adult Snorkelers","quantity":2,"price":"175.00","group":"false"},{"id":395130,"label":"Adult with Dive","quantity":2,"price":"220.00","group":"false"}],"participants":[[{"label":"First Name","value":"First Name"},{"label":"Last Name","value":"Last Name"}],[{"label":"First Name","value":"Demo"},{"label":"Last Name","value":"Demo"}]],"bookingForm":{"2":{"value":"Developer","label":"First Name"},"3":{"value":"Last Name","label":"Last Name"},"4":{"value":"0123456789","label":"Phone"},"5":{"value":"aj.developer055@gmail.com","label":"Email"},"6":{"value":"Business State","label":"State"},"7":{"value":"12345","label":"Postcode"},"8":{"value":"Australia","label":"Country"},"1":{"value":"Testing comment","label":"Comment"},"9":{"value":"I","label":"I agree to the terms and conditions of travel"}}}}],"bookingCount":1,"reservationQueryTime":"16.92ms","success":true,"timestamp":"2019-11-04T17:42:03+11:00","cacheTime":null},"queryTime":"5450.23ms"} 462 463 =============== Write At => 19-11-04 07:02:44 =============== 464 after make booking call response values => {"success":true,"uniqueId":"jGmhOwCNeN3RQAG","data":{"contact":{"firstName":"Developer","lastName":"Last Name","phone":"0123456789","email":"aj.developer055@gmail.com","State":"Business State","Postcode\/Zip":"12345","country":"Australia","Comment":"Testing Comment","I agree to the terms and conditions of travel":"I"},"booking":[{"confirmed":true,"reservationCode":121662,"bookingDate":"05-11-2019","productBookingCode":"RP:1655:3776:1777","productId":1324,"reservationProductName":null,"reservationPaymentOption":"full-agent","reservationProvider":"Respax"},{"confirmed":true,"reservationCode":561158,"bookingDate":"06-11-2019","productBookingCode":"RP:7:15:1","productId":495,"reservationProductName":null,"reservationPaymentOption":"full-agent","reservationProvider":"Respax"}],"bookingCount":2,"reservationQueryTime":"2188.17ms","success":true,"timestamp":"2019-11-04T18:02:39+11:00","cacheTime":null},"queryTime":"2890.63ms"} 465 466 =============== Write At => 19-11-06 07:09:41 =============== 467 after make booking call response values => {"success":false,"message":"Error with booking details via the gateway","queryTime":"755.69ms"} 468 469 =============== Write At => 19-11-08 07:24:50 =============== 470 after make booking call response values => {"success":true,"uniqueId":"arL8H3Vd2gkQTmL","data":{"contact":{"country":"Aland Islands","email":"aj.developer055@gmail.com","firstName":"First Name","Mobile":"0123456789","lastName":"Last Name"},"booking":[{"reservationProvider":"Rezdy","confirmed":true,"reservationCode":284923,"productId":1773,"productBookingCode":"RZ:1773:TT","bookingDate":"10-11-2019","reservationProductName":null,"reservationPaymentOption":"FULL_AGENT"},{"reservationProvider":"Rezdy","confirmed":true,"reservationCode":707072,"productId":1772,"productBookingCode":"RZ:1772:TT","bookingDate":"10-11-2019","reservationProductName":null,"reservationPaymentOption":"FULL_AGENT"}],"bookingCount":2,"reservationQueryTime":"2044.14ms","success":true,"timestamp":"2019-11-08T18:24:46+11:00","cacheTime":null},"queryTime":"2717.37ms"} 471 472 =============== Write At => 19-11-08 11:29:31 =============== 473 after make booking call response values => {"success":true,"uniqueId":"yY6h7qVAEgVM6oa","data":{"contact":{"country":"Australia","email":"aj.developer055@gmail.com","firstName":"First Name","Mobile":"0123456789","lastName":"Last Name","Pick up Location":"10"},"booking":[{"reservationProvider":"Rezdy","confirmed":true,"reservationCode":813487,"productId":1774,"productBookingCode":"RZ:1774:TT","bookingDate":"10-11-2019","reservationProductName":null,"reservationPaymentOption":"FULL_AGENT"},{"reservationProvider":"Rezdy","confirmed":true,"reservationCode":736171,"productId":1776,"productBookingCode":"RZ:1776:TT","bookingDate":"10-11-2019","reservationProductName":null,"reservationPaymentOption":"FULL_AGENT"}],"bookingCount":2,"reservationQueryTime":"2393.16ms","success":true,"timestamp":"2019-11-08T22:29:26+11:00","cacheTime":null},"queryTime":"2959.34ms"} 474 -
narnoo-commerce-manager/trunk/narnoo-commerce-manager.php
r2176621 r2189376 4 4 Plugin URI: https://www.narnoo.com/ 5 5 Description: Allows Narnoo distributors to manager their bookings via the Narnooo BYOB system. 6 Version: 1. 5.06 Version: 1.6.0 7 7 Author: Narnoo Wordpress developer 8 8 Author URI: https://www.narnoo.com/ … … 65 65 66 66 global $ncm_version; 67 $ncm_version = '1. 1';67 $ncm_version = '1.6'; 68 68 69 69 class Narnoo_Commerce_Manager {
Note: See TracChangeset
for help on using the changeset viewer.