booking-order-details.php
unknown
php
2 years ago
1.3 kB
2
Indexable
<?php include("../../../wp-config.php"); global $wpdb; session_start(); global $woocommerce; if(count(WC()->cart->get_cart())>0){ $_SESSION["date"] = $_REQUEST['date_value']; $_SESSION["location"] = $_REQUEST['location_value']; $_SESSION["pickup_piont"] = $_REQUEST['pickuppoint_value']; $_SESSION["pickup_point_name"] = $_REQUEST['pickuppoint_name']; if($_REQUEST['adult_qty']!=''){ $_SESSION["adult_qty"] = $_REQUEST['adult_qty']; }else{ $_SESSION["adult_qty"] = 0; } $_SESSION["adult_price"] = number_format((float)$_REQUEST['adult_price'], 2, '.', ''); if($_REQUEST['student_qty']!=''){ $_SESSION["student_qty"] = $_REQUEST['student_qty']; }else{ $_SESSION["student_qty"] = 0; } $_SESSION["student_price"] = number_format((float)$_REQUEST['student_price'], 2, '.', ''); if($_REQUEST['child_qty']!=''){ $_SESSION["child_qty"] = $_REQUEST['child_qty']; }else{ $_SESSION["child_qty"] = 0; } $_SESSION["child_price"] = number_format((float)$_REQUEST['child_price'], 2, '.', ''); if($_REQUEST['addones_qty']){ $_SESSION["add_ons_qty"] = $_REQUEST['addones_qty']; }else{ $_SESSION["add_ons_qty"] = 0; } $_SESSION["add_price"] = number_format((float)$_REQUEST['addones_price'], 2, '.', ''); $_SESSION["total_charge"] = number_format((float)$_REQUEST['total_price'], 2, '.', ''); echo 1; } ?>
Editor is loading...
Leave a Comment