This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this is a function that fires when the webapp receives a GET request | |
function doGet(e) { | |
return HtmlService.createHtmlOutput("request received"); | |
} | |
//this is a function that fires when the webapp receives a POST request | |
function doPost(e) { | |
var myData = JSON.parse([e.postData.contents]); | |
var order_number = myData.number; | |
var order_created = myData.date_created; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bkap_woocommerce_cart_item_subtotal( $product_subtotal, $cart_item, $cart_item_key ) { | |
if ( isset( $cart_item['bkap_booking'] ) ) { | |
$booking = $cart_item['bkap_booking'][0]; | |
if ( isset( $booking[ 'hidden_date_checkout' ] ) ) { | |
$checkin_date_str = strtotime( $booking[ 'hidden_date' ] ); | |
$checkout_date_str = strtotime( $booking[ 'hidden_date_checkout' ] ); | |
$checkin_date = date( 'Y-m-d', $checkin_date_str ); | |
$checkout_date = date( 'Y-m-d', $checkout_date_str ); |
OlderNewer