includes/arcavis-transaction.php
## Returns the applied voucher codes from check transaction call to show to the user
Returns the applied voucher codes from check transaction call to show to the user
Returns the applied voucher codes from check transaction call to show to the user
public function arcavis_get_applied_voucher_code(){
		global $wpdb;
		$applied_vouchers = $wpdb->get_row("SELECT * FROM ".$wpdb->prefix."applied_vouchers WHERE session_id='".session_id()."' AND discount_type='voucher'");
		if(!empty($applied_vouchers)){
			echo json_encode($applied_vouchers);
		}else{
			echo "";
		}
		exit;
	}
public function arcavis_get_applied_voucher_code ( ) { global $ wpdb ; $ applied_vouchers = $ wpdb -> get_row ( " SELECT * FROM  " . $ wpdb -> prefix . " applied_vouchers WHERE session_id=' " . session_id ( ) . " ' AND discount_type='voucher' " ) ; if ( ! empty ( $ applied_vouchers ) ) { echo json_encode ( $ applied_vouchers ) ; } else { echo " " ; } exit ; }
Returns the applied voucher codes from check transaction call to show to the user
Returns the applied voucher codes from check transaction call to show to the user