{"id":12947,"date":"2021-08-04T11:09:20","date_gmt":"2021-08-04T04:09:20","guid":{"rendered":"https:\/\/exthemes.net\/wootour\/?page_id=12947"},"modified":"2024-12-10T11:41:50","modified_gmt":"2024-12-10T04:41:50","slug":"booking-form","status":"publish","type":"page","link":"https:\/\/exthemes.net\/wootour\/booking-form\/","title":{"rendered":"Booking form"},"content":{"rendered":"<p>[vc_row][vc_column]<div class=\"exwt-booking-form woocommerce postid-34\">\t\t\t<div class=\"single-product\" data-product-page-preselected-id=\"0\">\r\n\t\t\t\t\n\t\n\t<form class=\"cart\" action=\"?atc=yes\" method=\"post\" enctype='multipart\/form-data'>\n\t\t\r\n\t\t<div class=\"tour-info-select\">\r\n\t\t\t<span class=\"wt-departure\">Date\r\n\t\t\t\t<span>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_datefm\" value=\"dd\/mm\/yyyy\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_weekday_disable\" value={\"2\":3,\"3\":4,\"5\":6,\"6\":7}>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_langu\" value=>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_date_disable\" value=\"[]\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_cust_date\" value=>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_cust_datefm\" value=[]>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_expired\" value=\"\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_firstday\" value=\"\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_daytrsl\" value=\"{&quot;1&quot;:&quot;Sun&quot;,&quot;2&quot;:&quot;Mon&quot;,&quot;3&quot;:&quot;Tue&quot;,&quot;4&quot;:&quot;Wed&quot;,&quot;5&quot;:&quot;Thu&quot;,&quot;6&quot;:&quot;Fri&quot;,&quot;7&quot;:&quot;Sat&quot;}\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_montrsl\" value=\"{&quot;1&quot;:&quot;January&quot;,&quot;2&quot;:&quot;February&quot;,&quot;3&quot;:&quot;March&quot;,&quot;4&quot;:&quot;April&quot;,&quot;5&quot;:&quot;May&quot;,&quot;6&quot;:&quot;June&quot;,&quot;7&quot;:&quot;July&quot;,&quot;8&quot;:&quot;August&quot;,&quot;9&quot;:&quot;September&quot;,&quot;10&quot;:&quot;October&quot;,&quot;11&quot;:&quot;November&quot;,&quot;12&quot;:&quot;December&quot;}\">\r\n\t\t\t\t\t\t<input type=\"text\" readonly name=\"wt_date\">\r\n\t\t\t\t\t<i class=\"fa fa-calendar wt-bticon\" aria-hidden=\"true\"><\/i>\r\n\t\t\t\t\t<input type=\"hidden\" name=\"wt_ajax_url\" value=https:\/\/exthemes.net\/wootour\/wp-admin\/admin-ajax.php>\r\n\t\t\t\t\t<input type=\"hidden\" name=\"wt_tourid\" value=34>\r\n\t\t\t\t\t<input type=\"hidden\" name=\"wt_sldate\" value=\"\">\r\n\t\t\t\t\t<input type=\"hidden\" name=\"wt_book_before\" value=\"2026-05-01\">\r\n\t\t\t\t<\/span>\r\n\t\t\t<\/span>\r\n\t\t\t<span class=\"wt-user-info wtsl-select\"><span class=\"_adult_select\"><span class=\"lb-pric\">Adult: <\/span> <span class=\"p-price\"><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>20.00<\/bdi><\/span><\/span><select name=\"wt_number_adult\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><\/select><\/span><span class=\"_child_select\"><span class=\"lb-pric\">Children: <\/span><span class=\"p-price\"><span><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>17.00<\/bdi><\/span><\/span><\/span><select name=\"wt_number_child\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><\/select><\/span><span class=\"_infant_select\"><span class=\"lb-pric\">Infant: <\/span><span class=\"p-price\"><span><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>15.00<\/bdi><\/span><\/span><\/span><select name=\"wt_number_infant\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><\/select><\/span><span class=\"_ct1_select\"><span class=\"lb-pric\">Name 1 : <\/span><span class=\"p-price\"><span><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>10.00<\/bdi><\/span><\/span><\/span><select name=\"wt_number_ct1\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><\/select><\/span><span class=\"_ct2_select\"><span class=\"lb-pric\">Name 2 : <\/span><span class=\"p-price\"><span><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>5.00<\/bdi><\/span><\/span><\/span><select name=\"wt_number_ct2\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><\/select><\/span>\r\n\t\t\t<\/span>\r\n\t\t<\/div>\n\t\t<div id=\"product_total_price\" style=\"display: block;\">Total: <span class=\"price\">20<\/span><\/div>    <script type=\"text\/javascript\">\r\n        <!--\r\n        if (typeof accounting === 'undefined') {\r\n            (function(p,z){function q(a){return!!(\"\"===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):\"[object Array]\"===v.call(a)}function r(a){return\"[object Object]\"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;e<h;e++)c[e]=b.call(d,a[e],e,a);return c}function n(a,b){a=Math.round(Math.abs(a));return isNaN(a)?b:a}function x(a){var b=c.settings.currency.format;\"function\"===typeof a&&(a=a());return q(a)&&a.match(\"%v\")?{pos:a,neg:a.replace(\"-\",\"\").replace(\"%v\",\"-%v\"),zero:a}:!a||!a.pos||!a.pos.match(\"%v\")?!q(b)?b:c.settings.currency.format={pos:b,neg:b.replace(\"%v\",\"-%v\"),zero:b}:a}var c={version:\"0.4.1\",settings:{currency:{symbol:\"$\",format:\"%s%v\",decimal:\".\",thousand:\",\",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:\",\",decimal:\".\"}}},w=Array.prototype.map,u=Array.isArray,v=Object.prototype.toString,o=c.unformat=c.parse=function(a,b){if(m(a))return j(a,function(a){return o(a,b)});a=a||0;if(\"number\"===typeof a)return a;var b=b||\".\",c=RegExp(\"[^0-9-\"+b+\"]\",[\"g\"]),c=parseFloat((\"\"+a).replace(\/\\((.*)\\)\/,\"-$1\").replace(c,\"\").replace(b,\".\"));return!isNaN(c)?c:0},y=c.toFixed=function(a,b){var b=n(b,c.settings.number.precision),d=Math.pow(10,b);return(Math.round(c.unformat(a)*d)\/d).toFixed(b)},t=c.formatNumber=c.format=function(a,b,d,i){if(m(a))return j(a,function(a){return t(a,b,d,i)});var a=o(a),e=s(r(b)?b:{precision:b,thousand:d,decimal:i},c.settings.number),h=n(e.precision),f=0>a?\"-\":\"\",g=parseInt(y(Math.abs(a||0),h),10)+\"\",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:\"\")+g.substr(l).replace(\/(\\d{3})(?=\\d)\/g,\"$1\"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(\".\")[1]:\"\")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0<a?g.pos:0>a?g.neg:g.zero).replace(\"%s\",f.symbol).replace(\"%v\",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf(\"%s\")<g.pos.indexOf(\"%v\")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0<a?g.pos:0>a?g.neg:g.zero).replace(\"%s\",f.symbol).replace(\"%v\",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length<k?l?a.replace(f.symbol,f.symbol+Array(k-a.length+1).join(\" \")):Array(k-a.length+1).join(\" \")+a:a})};if(\"undefined\"!==typeof exports){if(\"undefined\"!==typeof module&&module.exports)exports=module.exports=c;exports.accounting=c}else\"function\"===typeof define&&define.amd?define([],function(){return c}):(c.noConflict=function(a){return function(){p.accounting=a;c.noConflict=z;return c}}(p.accounting),p.accounting=c)})(this);\r\n        }\r\n\r\n        jQuery(function($){\r\n        function addCommas(nStr){\r\n            nStr += '';\r\n            x = nStr.split('.');\r\n            x1 = x[0];\r\n            x2 = x.length > 1 ? '.' + x[1] : '';\r\n            var rgx = \/(\\d+)(\\d{3})\/;\r\n            while (rgx.test(x1)) {\r\n                x1 = x1.replace(rgx, '$1' + ',' + '$2');\r\n            }\r\n            return x1 + x2;\r\n        }\r\n        var currency ='&pound;';\r\n            function priceformat($form) {\r\n                var product_total ='';\r\n                \/*\r\n                if($form.hasClass('variations_form')){\r\n                    if($('form > .single_variation_wrap .woocommerce---price ins .amount').length){\r\n                        product_total = jQuery('form > .single_variation_wrap .woocommerce---price ins .amount').text();\r\n                    }\r\n\r\n                    if(product_total==''){\r\n                        product_total = jQuery('form > .single_variation_wrap .woocommerce---price .amount').text();\r\n                    }\r\n                    if(!$('form > .single_variation_wrap .woocommerce---price').length){\r\n                        product_total = jQuery('form > .single_variation_wrap ins .amount').text();\r\n                        if(product_total==''){\r\n                            product_total = jQuery('form > .single_variation_wrap .amount').text();\r\n                        }\r\n                    }\r\n                }else{\r\n                    if($('.product-summary .price-wrapper .price').length){\r\n                        $class_pr = '.product-summary .price-wrapper';   \r\n                    }else if($('.summary .summary-inner .price').length){\r\n                        $class_pr = '.summary .summary-inner';   \r\n                    }else{$class_pr = '.summary';}\r\n                    if($($class_pr +' .price .amount').length){\r\n                        product_total = jQuery($class_pr +' > .price .amount').text();\r\n                        if($($class_pr +' > .price ins .amount').length){\r\n                            product_total = jQuery($class_pr +' > .price ins .amount').text();\r\n                        }\r\n                    }else if($('.product_field.price .amount').length){\r\n                        product_total = jQuery('.product_field.price .amount').text();\r\n                        if($('.product_field.price ins .amount').length){\r\n                            product_total = jQuery('.product_field.price ins .amount').text();\r\n                        }\r\n                    }\r\n                    if(product_total ==''){\r\n                        product_total = jQuery('.wt-user-info > span:first-of-type .amount').text();\r\n                        if($('.wt-user-info > span:first-of-type ins .amount').length){\r\n                            product_total = jQuery('.wt-user-info > span:first-of-type ins .amount').text();\r\n                        }\r\n                    }\r\n                    \r\n                }*\/\r\n                if($form.hasClass('variations_form')){\r\n                    if($form.find(' > .single_variation_wrap .woocommerce-variation .woocommerce---price ins .amount').length){\r\n                        product_total = $form.find(' > .single_variation_wrap .woocommerce-variation .woocommerce---price ins .amount').text();\r\n                    }\r\n                    if(product_total==''){\r\n                        product_total = $form.find(' > .single_variation_wrap .woocommerce-variation .woocommerce---price .amount').text();\r\n                    }\r\n                    if(!$form.find(' > .single_variation_wrap .woocommerce-variation .woocommerce---price').length){\r\n                        product_total = $form.find(' > .single_variation_wrap .woocommerce-variation ins .amount').text();\r\n                        if(product_total==''){\r\n                            product_total = $form.find(' > .single_variation_wrap .woocommerce-variation .amount').text();\r\n                        }\r\n                    }\r\n                    if ($form.find('input[name=\"variation_id\"]').val() == 0) {\r\n                        product_total = 0;\r\n                        $total_cr = accounting.formatMoney( product_total,{\r\n                            symbol      : currency,\r\n                            decimal     : '.',\r\n                            thousand    : ',',\r\n                            precision   : '2',\r\n                            format      : '%s%v'\r\n                        });\r\n                        $form.find('#product_total_price .price').html( $total_cr);\r\n                        return;\r\n                    }\r\n                }else{\r\n                    if($form.find('.wt-user-info > span:first-of-type .exwt-sspr').length){\r\n                        product_total = '';\r\n                    }else{\r\n                        product_total = $form.find('.wt-user-info > span:first-of-type .amount').text();\r\n                        if($form.find('.wt-user-info > span:first-of-type ins .amount').length){\r\n                            product_total = $form.find('.wt-user-info > span:first-of-type ins .amount').text();\r\n                        }\r\n                    }\r\n                }\r\n                if($('body.exwt-normal-product').length){ product_total='20';}\r\n                $discount = 0;\r\n                var ttbf_rm = product_total;\r\n                product_total = product_total.replace( currency, '' );\r\n                if(ttbf_rm = product_total){\r\n                    currency = $(\"<div\/>\").html('&pound;').text();\r\n                    product_total = product_total.replace( currency, '' );\r\n                }\r\n                                product_total = product_total.replace( \/\\,\/g, '' );\r\n                                                product_total = product_total.replace( '.', '.' );\r\n                                product_total = product_total.replace(\/[^0-9\\.]\/g, '' );\r\n                var _t_price = product_total;\r\n                if($form.find('[name=wt_number_adult]').length){\r\n                    var adult = $form.find('[name=wt_number_adult]').val();\r\n                    if($form.find(\".crda-dcinfo.wt-dctype-adult > span\").length){\r\n                        $form.find(\".crda-dcinfo.wt-dctype-adult > span\").each(function(){\r\n                            var $this = $(this);\r\n                            $nbad = $this.data('adult');\r\n                            if(adult >= $nbad ){\r\n                                $dc_type = $this.data('type');\r\n                                $dc_nb = $this.data('number');\r\n                                if($dc_type =='percent'){\r\n                                    $discount = (adult * product_total * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = adult *  $dc_nb;\r\n                                }\r\n                                if(!$this.hasClass('dc-active')){\r\n                                    $form.find(\".crda-dcinfo.wt-dctype-adult > span.dc-active\").removeClass('dc-active').fadeOut();\r\n                                    setTimeout(function(){ \r\n                                        $this.addClass('dc-active').fadeIn();\r\n                                    }, 500);\r\n                                }\r\n                                return false;\r\n                            }else{\r\n                                $form.find(\".crda-dcinfo.wt-dctype-adult > span.dc-active\").removeClass('dc-active').fadeOut();\r\n                            }\r\n                        });\r\n                    }else if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                        $dc_type = $form.find(\".crda-dcinfo .wt-dc-season\").data('type');\r\n                        $dc_nb = $form.find(\".crda-dcinfo .wt-dc-season\").data('number');\r\n                        if( $dc_type == 'percent'){\r\n                            $discount = (adult * product_total * $dc_nb)\/100;\r\n                        }else{\r\n                            $discount = adult *  $dc_nb;\r\n                        }\r\n                    }\r\n                }else{var adult = 1;}\r\n                                    product_total = product_total* adult;\r\n                    product_total = product_total - $discount;\r\n                    if($form.find('[name=wt_number_child]').length){\r\n                        var price_child =0;\r\n                        var child = $form.find('[name=wt_number_child]').val();\r\n                        if($form.find('.woocommerce-variation-wt-child-price .amount').length){\r\n                            price_child = $form.find('.woocommerce-variation-wt-child-price span > .amount').text();\r\n                        }else if($form.find('._child_select span > span.woocommerce-Price-amount.amount').length){\r\n                            price_child = $form.find('._child_select span > span.woocommerce-Price-amount.amount').text(); \r\n                        }\r\n                        if(price_child !=''){\r\n                            price_child = price_child.replace( currency, '' );\r\n                                                        price_child = price_child.replace( \/\\,\/g, '' );\r\n                                                                                    price_child = price_child.replace( '.', '.' );\r\n                                                        price_child = price_child.replace(\/[^0-9\\.]\/g, '' );\r\n\r\n                            product_total = product_total + (child*price_child);\r\n                            if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                                $dc_type = $form.find(\".crda-dcinfo .wt-dc-season\").data('type');\r\n                                $dc_nb = $form.find(\".crda-dcinfo .wt-dc-season\").data('number');\r\n                                if( $dc_type == 'percent'){\r\n                                    $discount = (child * price_child * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = child *  $dc_nb;\r\n                                }\r\n                                product_total = product_total - $discount;\r\n                            }\r\n                        }\r\n                    }\r\n                    if($form.find('[name=wt_number_infant]').length){\r\n                        var price_infant =0;\r\n                        var infant = $form.find('[name=wt_number_infant]').val();\r\n                        if($form.find('.woocommerce-variation-wt-infant-price .amount').length){\r\n                            price_infant = $form.find('.woocommerce-variation-wt-infant-price span > .amount').text();\r\n                        }else if($form.find('._infant_select span > span.woocommerce-Price-amount.amount').length){\r\n                            price_infant = $form.find('._infant_select span > span.woocommerce-Price-amount.amount').text();\r\n                        }\r\n                        \r\n                        if(price_infant !=''){\r\n                            price_infant = price_infant.replace( currency, '' );\r\n                                                        price_infant = price_infant.replace( \/\\,\/g, '' );\r\n                                                                                    price_infant = price_infant.replace( '.', '.' );\r\n                                                        price_infant = price_infant.replace(\/[^0-9\\.]\/g, '' );\r\n\r\n                            product_total = product_total + (infant*price_infant);\r\n                            if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                                if( $dc_type == 'percent'){\r\n                                    $discount = (infant * price_infant * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = infant *  $dc_nb;\r\n                                }\r\n                                product_total = product_total - $discount;\r\n                            }\r\n                        }\r\n                    }\r\n          \t\t\t\/\/ ct1\r\n    \t\t\t\tif($form.find('[name=wt_number_ct1]').length){\r\n                        var price_ct1 =0;\r\n                        var ct1 = $form.find('[name=wt_number_ct1]').val();\r\n                        if($form.find('.woocommerce-variation-wt-ct1-price .amount').length){\r\n                            price_ct1 = $form.find('.woocommerce-variation-wt-ct1-price span > .amount').text();\r\n                        }else if($form.find('._ct1_select span > span.woocommerce-Price-amount.amount').length){\r\n                            price_ct1 = $form.find('._ct1_select span > span.woocommerce-Price-amount.amount').text();\r\n                        }\r\n                        if(price_ct1 !=''){\r\n                            price_ct1 = price_ct1.replace( currency, '' );\r\n                                                        price_ct1 = price_ct1.replace( \/\\,\/g, '' );\r\n                                                                                    price_ct1 = price_ct1.replace( '.', '.' );\r\n                                                        price_ct1 = price_ct1.replace(\/[^0-9\\.]\/g, '' );\r\n\r\n                            product_total = product_total + (ct1*price_ct1);\r\n                            if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                                if( $dc_type == 'percent'){\r\n                                    $discount = (ct1 * price_ct1 * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = ct1 *  $dc_nb;\r\n                                }\r\n                                product_total = product_total - $discount;\r\n                            }\r\n                        }\r\n                    }\r\n    \t\t\t\t\/\/ ct2\r\n    \t\t\t\tif($form.find('[name=wt_number_ct2]').length){\r\n                        var price_ct2 =0;\r\n                        var ct2 = $form.find('[name=wt_number_ct2]').val();\r\n                        if($form.find('.woocommerce-variation-wt-ct2-price .amount').length){\r\n                            price_ct2 = $form.find('.woocommerce-variation-wt-ct2-price span > .amount').text();\r\n                        }else if($form.find('._ct2_select span > span.woocommerce-Price-amount.amount').length){\r\n                            price_ct2 = $form.find('._ct2_select span > span.woocommerce-Price-amount.amount').text();\r\n                        }\r\n                        if(price_ct2 !=''){\r\n                            price_ct2 = price_ct2.replace( currency, '' );\r\n                                                        price_ct2 = price_ct2.replace( \/\\,\/g, '' );\r\n                                                                                    price_ct2 = price_ct2.replace( '.', '.' );\r\n                                                        price_ct2 = price_ct2.replace(\/[^0-9\\.]\/g, '' );\r\n\r\n                            product_total = product_total + (ct2*price_ct2);\r\n                            if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                                if( $dc_type == 'percent'){\r\n                                    $discount = (ct2 * price_ct2 * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = ct2 *  $dc_nb;\r\n                                }\r\n                                product_total = product_total - $discount;\r\n                            }\r\n                        }\r\n                    }\r\n                                if($form.find('.quantity .qty').length){\r\n                    var $qty = $form.find('.quantity .qty').val();\r\n                    if(jQuery.isNumeric( $qty )){\r\n                        product_total = product_total*$qty;\r\n                    }\r\n                }\r\n                \/\/ support product addon\r\n                if($form.find('#product-addons-total').length){\r\n                    var addon_pr = 0;\r\n                    addon_pr = $form.find('#product-addons-total .price .amount').text();\r\n                    if(addon_pr !=''){\r\n                        addon_pr = addon_pr.replace( currency, '' );\r\n                                                addon_pr = addon_pr.replace( \/\\,\/g, '' );\r\n                                                                        addon_pr = addon_pr.replace( '.', '.' );\r\n                                                addon_pr = addon_pr.replace(\/[^0-9\\.]\/g, '' );\r\n                        if(adult < 1){\r\n                            _t_price = 0; \r\n                        }\r\n                        product_total = product_total + (adult*(addon_pr - _t_price));\r\n                        $form.find(\".wc-pao-addon-container\").each(function(){\r\n                            var $field = $(this).find('.wc-pao-addon-field');\r\n                            if($field.hasClass('wc-pao-addon-checkbox')){\r\n                                $field.each(function(){\r\n                                    if($(this).attr('data-price-type') =='flat_fee' && $(this).is(':checked')){\r\n                                        product_total = product_total - ($(this).attr('data-price') * (adult -1))      \r\n                                    }\r\n                                });\r\n                            }else if($field.hasClass('wc-pao-addon-select')){\r\n                                $field.find('option').each(function(){\r\n                                    if($(this).attr('data-price-type') =='flat_fee' && $(this).is(':selected')){\r\n                                        product_total = product_total - ($(this).attr('data-price') * (adult -1))      \r\n                                    }\r\n                                });\r\n                            }else if($field.hasClass('wc-pao-addon-input-multiplier')){\r\n                                if($field.attr('data-price-type') =='flat_fee'){\r\n                                    product_total = product_total - ($field.attr('data-price') * $field.val() * (adult -1))      \r\n                                }\r\n                            }else{\r\n                                if($field.attr('data-price-type') =='flat_fee'){\r\n                                    product_total = product_total - ($field.attr('data-price') * (adult -1))      \r\n                                }\r\n                            }\r\n                        });\r\n                        \r\n                    }\r\n                }\r\n                \/\/ support YITH addon\r\n                if($form.find('#wapo-total-options-price').length){\r\n                    var addon_pr = 0;\r\n                    addon_pr = $form.find('#wapo-total-options-price').text();\r\n                    if(addon_pr !=''){\r\n                        addon_pr = addon_pr.replace( currency, '' );\r\n                                                addon_pr = addon_pr.replace( \/\\,\/g, '' );\r\n                                                                        addon_pr = addon_pr.replace( '.', '.' );\r\n                                                addon_pr = addon_pr.replace(\/[^0-9\\-.]\/g, '' );\r\n                        if(addon_pr*1 != 0){\r\n                            product_total = product_total +  addon_pr*1;\r\n                        }   \r\n                    }\r\n                }\r\n                \/\/\r\n                $('.exwo-product-options .exrow-group:not(.exwf-offrq)').each(function(){\r\n                    var $this_sl = $(this);\r\n                    if($this_sl.hasClass('ex-radio') || $this_sl.hasClass('ex-checkbox')){\r\n                        $this_sl.find('.ex-options').each(function(){\r\n                            var $this_op = $(this);\r\n                            if($this_op.is(\":checked\")){\r\n                                var $price_op = $this_op.data('price');\r\n                                if($.isNumeric($price_op)){\r\n                                    if($this_op.data('type')=='fixed'){\r\n                                        product_total = product_total + $price_op*1;\r\n                                    }else{\r\n                                        product_total = product_total + ($price_op*adult);\r\n                                    }\r\n                                }\r\n                            }\r\n                        });\r\n                    }else if($this_sl.hasClass('ex-select')){\r\n                        $this_sl.find('.ex-options option').each(function(){\r\n                            var $this_op = $(this);\r\n                            if($this_op.is(\":selected\")){\r\n                                var $price_op = $this_op.data('price');\r\n                                if($.isNumeric($price_op)){\r\n                                    if($this_op.data('type')=='fixed'){\r\n                                        product_total = product_total + $price_op*1;\r\n                                    }else{\r\n                                        product_total = product_total + ($price_op*adult);\r\n                                    }\r\n                                }\r\n                            }\r\n                        });\r\n                    }else{\r\n                        var $this_op = $this_sl.find('.ex-options');\r\n                        var $price_op = $this_op.data('price');\r\n                        if($this_sl.hasClass('ex-quantity')){\r\n                            $price_op = $price_op*$this_sl.find('input.ex-options').val();\r\n                        }\r\n                        if($this_op.val() != '' && $.isNumeric($price_op)){\r\n                            if($this_op.data('type')=='fixed'){\r\n                                product_total = product_total + $price_op;\r\n                            }else{\r\n                                product_total = product_total + ($price_op*adult);\r\n                            }\r\n                        }\r\n                    }\r\n                });\r\n                $total_cr = accounting.formatMoney( product_total,{\r\n                    symbol      : currency,\r\n                    decimal     : '.',\r\n                    thousand    : ',',\r\n                    precision   : '2',\r\n                    format      : '%s%v'\r\n                });\r\n                $form.find('#product_total_price .price').html( $total_cr);\r\n            }\r\n            if($('#product-addons-total').length){\r\n                $(\"body\").on('DOMSubtreeModified', \"#product-addons-total\", function() {\r\n                    var $form = $(this).closest('form.cart');\r\n                    priceformat($form);\r\n                });\r\n            }\r\n            if($('#wapo-total-options-price').length){\r\n                $(\"body\").on('DOMSubtreeModified', \"#wapo-total-options-price\", function() {\r\n                    var $form = $(this).closest('form.cart');\r\n                    priceformat($form);\r\n                });\r\n            }\r\n\r\n            jQuery('body').on('change','[name=wt_number_adult], [name=wt_number_child], [name=wt_number_infant], [name=wt_number_ct1], [name=wt_number_ct2]',function(){\r\n                var $form = $(this).closest('form.cart');\r\n                priceformat($form);\r\n            });\r\n            jQuery('.quantity .qty').on('keyup mouseup', function(){ var $form = $(this).closest('form.cart');\r\n                priceformat($form);});\r\n            jQuery('.wt-quantity input[type=text]').on('keyup', function(){ var $form = $(this).closest('form.cart');\r\n                priceformat($form);});\r\n            \/\/jQuery('body').on('change','.variations select',function(){ var $form = $(this).closest('form.cart'); priceformat($form); });\r\n\r\n            jQuery('form.variations_form').on('show_variation', function(event, variation) { \r\n                var $form = $(this);\r\n                priceformat($form);\r\n            });\r\n            jQuery('form.variations_form').on('hide_variation', function() {\r\n                var $form = $(this);\r\n                priceformat($form);\r\n            });\r\n\r\n\r\n            jQuery('.woocommerce-variation, .wtsl-text').on('click', '.wt-quantity #wtminus_ticket', function(e) {\r\n                var $form = $(this).closest('form.cart');\r\n                priceformat($form);\r\n            });\r\n            jQuery('.woocommerce-variation').on('click', '.wt-quantity #wtadd_ticket', function(e) {\r\n                var $form = $(this).closest('form.cart');\r\n                priceformat($form);\r\n            });\r\n            jQuery('body').on('click', '.wt-quantity #wtminus_ticket, .wt-quantity #wtadd_ticket,  .variations input[type=radio]', function(e) {\r\n                var $this = $(this);\r\n                setTimeout(function(){\r\n\t\t\t\t\tvar $form = $this.closest('form.cart');\r\n                    priceformat($form);\r\n\t\t\t\t}, 200);\r\n            });\r\n            jQuery(\"form.cart\").each(function(){\r\n                var $form = $(this);\r\n                priceformat($form);\r\n            });\r\n            jQuery('body').on('change', '.exrow-group:not(.exwf-offrq).ex-select .ex-options',  function(e) {\r\n                jQuery(this).trigger('click'); \r\n            });\r\n            jQuery('body').on('click', '.exrow-group:not(.exwf-offrq) .ex-options',  function(e) {\r\n                var $this = $(this);\r\n                setTimeout(function(){\r\n                    var $form = $this.closest('form.cart');\r\n                    priceformat($form);\r\n                }, 200);\r\n            });\r\n            setTimeout(function(){\r\n                jQuery(\"form.cart\").each(function(){\r\n                    var $form = $(this);\r\n                    priceformat($form);\r\n                });\r\n            }, 200);\r\n        });\r\n        \/\/-->\r\n    <\/script>\t<div class=\"quantity\">\n\t\t<label class=\"screen-reader-text\" for=\"quantity_69f33bf2187a1\">Tour Hong Kong 4 days: Disney Land quantity<\/label>\n\t<input\n\t\ttype=\"hidden\"\n\t\t\t\tid=\"quantity_69f33bf2187a1\"\n\t\tclass=\"input-text qty text\"\n\t\tname=\"quantity\"\n\t\tvalue=\"1\"\n\t\taria-label=\"Product quantity\"\n\t\tsize=\"4\"\n\t\tmin=\"1\"\n\t\tmax=\"1\"\n\t\t\t\t\tstep=\"1\"\n\t\t\tplaceholder=\"\"\n\t\t\tinputmode=\"numeric\"\n\t\t\tautocomplete=\"off\"\n\t\t\t\/>\n\t<\/div>\n<span class=\"wt-tickets-status\"><\/span>\n\t\t<button type=\"submit\" name=\"add-to-cart\" value=\"34\" class=\"single_add_to_cart_button button alt\">Book Now<\/button>\n\n\t\t\t<\/form>\n\n\t\n\t\t\t<\/div>\r\n\t\t\t<\/div>[vc_column_text el_class=&#8221;shortcode-code&#8221; css=&#8221;.vc_custom_1630899509518{margin-top: 25px !important;}&#8221;][exwt_cart_form id=\"_enter_id_of_product\"][\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column]<div class=\"exwt-booking-form woocommerce postid-103\">\t\t\t<div class=\"single-product\" data-product-page-preselected-id=\"0\">\r\n\t\t\t\t\n\t\n\t<form class=\"cart\" action=\"?atc=yes\" method=\"post\" enctype='multipart\/form-data'>\n\t\t\r\n\t\t<div class=\"tour-info-select\">\r\n\t\t\t<span class=\"wt-departure\">Date\r\n\t\t\t\t<span>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_datefm\" value=\"dd\/mm\/yyyy\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_weekday_disable\" value=[]>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_langu\" value=>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_date_disable\" value=\"[]\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_cust_date\" value=>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_cust_datefm\" value=[]>\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_expired\" value=\"\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_firstday\" value=\"\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_daytrsl\" value=\"{&quot;1&quot;:&quot;Sun&quot;,&quot;2&quot;:&quot;Mon&quot;,&quot;3&quot;:&quot;Tue&quot;,&quot;4&quot;:&quot;Wed&quot;,&quot;5&quot;:&quot;Thu&quot;,&quot;6&quot;:&quot;Fri&quot;,&quot;7&quot;:&quot;Sat&quot;}\">\r\n\t\t\t\t\t\t<input type=\"hidden\" name=\"wt_montrsl\" value=\"{&quot;1&quot;:&quot;January&quot;,&quot;2&quot;:&quot;February&quot;,&quot;3&quot;:&quot;March&quot;,&quot;4&quot;:&quot;April&quot;,&quot;5&quot;:&quot;May&quot;,&quot;6&quot;:&quot;June&quot;,&quot;7&quot;:&quot;July&quot;,&quot;8&quot;:&quot;August&quot;,&quot;9&quot;:&quot;September&quot;,&quot;10&quot;:&quot;October&quot;,&quot;11&quot;:&quot;November&quot;,&quot;12&quot;:&quot;December&quot;}\">\r\n\t\t\t\t\t\t<input type=\"text\" readonly name=\"wt_date\">\r\n\t\t\t\t\t<i class=\"fa fa-calendar wt-bticon\" aria-hidden=\"true\"><\/i>\r\n\t\t\t\t\t<input type=\"hidden\" name=\"wt_ajax_url\" value=https:\/\/exthemes.net\/wootour\/wp-admin\/admin-ajax.php>\r\n\t\t\t\t\t<input type=\"hidden\" name=\"wt_tourid\" value=103>\r\n\t\t\t\t\t<input type=\"hidden\" name=\"wt_sldate\" value=\"\">\r\n\t\t\t\t\t<input type=\"hidden\" name=\"wt_book_before\" value=\"2026-05-01\">\r\n\t\t\t\t<\/span>\r\n\t\t\t<\/span>\r\n\t\t\t<span class=\"wt-user-info wtsl-select\"><span class=\"_adult_select\"><span class=\"lb-pric\">Adult: <\/span> <span class=\"p-price\"><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>35.00<\/bdi><\/span><\/span><select name=\"wt_number_adult\"><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><\/select><\/span><span class=\"_child_select\"><span class=\"lb-pric\">Children: <\/span><span class=\"p-price\"><span><span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>20.00<\/bdi><\/span><\/span><\/span><select name=\"wt_number_child\"><option value=\"0\">0<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><\/select><\/span>\r\n\t\t\t<\/span>\r\n\t\t<\/div><div class=\"exwo-product-gr-options\" id=\"exot_4417182155\"><div class=\"exwo-product-options \"><div class=\"exrow-group ex-checkbox ex-required  ex-logic-\" data-minsl=\"\"  data-maxsl=\"\" id=\"exwo-id145182475-0\"><span class=\"exfood-label\"><span class=\"exwo-otitle\">Extra<\/span> <\/span><div class=\"exwo-container\" ><span><input class=\"ex-options\" type=\"checkbox\" name=\"ex_options_0[]\" id=\"ckid-937-exwo-id145182475-0-9463\" value=\"0\" data-price=\"2\" data-def=\"\" data-type=\"fixed\"  ><label for=\"ckid-937-exwo-id145182475-0-9463\"><span class=\"exwo-op-name\">Extra 1 + <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>2.00<\/span><\/span><\/label><\/span><span><input class=\"ex-options\" type=\"checkbox\" name=\"ex_options_0[]\" id=\"ckid-678-exwo-id145182475-0-7834\" value=\"1\" data-price=\"2\" data-def=\"\" data-type=\"fixed\"  ><label for=\"ckid-678-exwo-id145182475-0-7834\"><span class=\"exwo-op-name\">Extra 2 + <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>2.00<\/span><\/span><\/label><\/span><span><input class=\"ex-options\" type=\"checkbox\" name=\"ex_options_0[]\" id=\"ckid-273-exwo-id145182475-0-5392\" value=\"2\" data-price=\"2\" data-def=\"\" data-type=\"fixed\"  ><label for=\"ckid-273-exwo-id145182475-0-5392\"><span class=\"exwo-op-name\">Extra 3 + <span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&pound;<\/span>2.00<\/span><\/span><\/label><\/span><p class=\"ex-required-message\">This option is required<\/p><\/div>\r\n\t\t\t\t<\/div><\/div><\/div>\n\t\t<div id=\"product_total_price\" style=\"display: block;\">Total: <span class=\"price\">35<\/span><\/div>    <script type=\"text\/javascript\">\r\n        <!--\r\n        if (typeof accounting === 'undefined') {\r\n            (function(p,z){function q(a){return!!(\"\"===a||a&&a.charCodeAt&&a.substr)}function m(a){return u?u(a):\"[object Array]\"===v.call(a)}function r(a){return\"[object Object]\"===v.call(a)}function s(a,b){var d,a=a||{},b=b||{};for(d in b)b.hasOwnProperty(d)&&null==a[d]&&(a[d]=b[d]);return a}function j(a,b,d){var c=[],e,h;if(!a)return c;if(w&&a.map===w)return a.map(b,d);for(e=0,h=a.length;e<h;e++)c[e]=b.call(d,a[e],e,a);return c}function n(a,b){a=Math.round(Math.abs(a));return isNaN(a)?b:a}function x(a){var b=c.settings.currency.format;\"function\"===typeof a&&(a=a());return q(a)&&a.match(\"%v\")?{pos:a,neg:a.replace(\"-\",\"\").replace(\"%v\",\"-%v\"),zero:a}:!a||!a.pos||!a.pos.match(\"%v\")?!q(b)?b:c.settings.currency.format={pos:b,neg:b.replace(\"%v\",\"-%v\"),zero:b}:a}var c={version:\"0.4.1\",settings:{currency:{symbol:\"$\",format:\"%s%v\",decimal:\".\",thousand:\",\",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:\",\",decimal:\".\"}}},w=Array.prototype.map,u=Array.isArray,v=Object.prototype.toString,o=c.unformat=c.parse=function(a,b){if(m(a))return j(a,function(a){return o(a,b)});a=a||0;if(\"number\"===typeof a)return a;var b=b||\".\",c=RegExp(\"[^0-9-\"+b+\"]\",[\"g\"]),c=parseFloat((\"\"+a).replace(\/\\((.*)\\)\/,\"-$1\").replace(c,\"\").replace(b,\".\"));return!isNaN(c)?c:0},y=c.toFixed=function(a,b){var b=n(b,c.settings.number.precision),d=Math.pow(10,b);return(Math.round(c.unformat(a)*d)\/d).toFixed(b)},t=c.formatNumber=c.format=function(a,b,d,i){if(m(a))return j(a,function(a){return t(a,b,d,i)});var a=o(a),e=s(r(b)?b:{precision:b,thousand:d,decimal:i},c.settings.number),h=n(e.precision),f=0>a?\"-\":\"\",g=parseInt(y(Math.abs(a||0),h),10)+\"\",l=3<g.length?g.length%3:0;return f+(l?g.substr(0,l)+e.thousand:\"\")+g.substr(l).replace(\/(\\d{3})(?=\\d)\/g,\"$1\"+e.thousand)+(h?e.decimal+y(Math.abs(a),h).split(\".\")[1]:\"\")},A=c.formatMoney=function(a,b,d,i,e,h){if(m(a))return j(a,function(a){return A(a,b,d,i,e,h)});var a=o(a),f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format);return(0<a?g.pos:0>a?g.neg:g.zero).replace(\"%s\",f.symbol).replace(\"%v\",t(Math.abs(a),n(f.precision),f.thousand,f.decimal))};c.formatColumn=function(a,b,d,i,e,h){if(!a)return[];var f=s(r(b)?b:{symbol:b,precision:d,thousand:i,decimal:e,format:h},c.settings.currency),g=x(f.format),l=g.pos.indexOf(\"%s\")<g.pos.indexOf(\"%v\")?!0:!1,k=0,a=j(a,function(a){if(m(a))return c.formatColumn(a,f);a=o(a);a=(0<a?g.pos:0>a?g.neg:g.zero).replace(\"%s\",f.symbol).replace(\"%v\",t(Math.abs(a),n(f.precision),f.thousand,f.decimal));if(a.length>k)k=a.length;return a});return j(a,function(a){return q(a)&&a.length<k?l?a.replace(f.symbol,f.symbol+Array(k-a.length+1).join(\" \")):Array(k-a.length+1).join(\" \")+a:a})};if(\"undefined\"!==typeof exports){if(\"undefined\"!==typeof module&&module.exports)exports=module.exports=c;exports.accounting=c}else\"function\"===typeof define&&define.amd?define([],function(){return c}):(c.noConflict=function(a){return function(){p.accounting=a;c.noConflict=z;return c}}(p.accounting),p.accounting=c)})(this);\r\n        }\r\n\r\n        jQuery(function($){\r\n        function addCommas(nStr){\r\n            nStr += '';\r\n            x = nStr.split('.');\r\n            x1 = x[0];\r\n            x2 = x.length > 1 ? '.' + x[1] : '';\r\n            var rgx = \/(\\d+)(\\d{3})\/;\r\n            while (rgx.test(x1)) {\r\n                x1 = x1.replace(rgx, '$1' + ',' + '$2');\r\n            }\r\n            return x1 + x2;\r\n        }\r\n        var currency ='&pound;';\r\n            function priceformat($form) {\r\n                var product_total ='';\r\n                \/*\r\n                if($form.hasClass('variations_form')){\r\n                    if($('form > .single_variation_wrap .woocommerce---price ins .amount').length){\r\n                        product_total = jQuery('form > .single_variation_wrap .woocommerce---price ins .amount').text();\r\n                    }\r\n\r\n                    if(product_total==''){\r\n                        product_total = jQuery('form > .single_variation_wrap .woocommerce---price .amount').text();\r\n                    }\r\n                    if(!$('form > .single_variation_wrap .woocommerce---price').length){\r\n                        product_total = jQuery('form > .single_variation_wrap ins .amount').text();\r\n                        if(product_total==''){\r\n                            product_total = jQuery('form > .single_variation_wrap .amount').text();\r\n                        }\r\n                    }\r\n                }else{\r\n                    if($('.product-summary .price-wrapper .price').length){\r\n                        $class_pr = '.product-summary .price-wrapper';   \r\n                    }else if($('.summary .summary-inner .price').length){\r\n                        $class_pr = '.summary .summary-inner';   \r\n                    }else{$class_pr = '.summary';}\r\n                    if($($class_pr +' .price .amount').length){\r\n                        product_total = jQuery($class_pr +' > .price .amount').text();\r\n                        if($($class_pr +' > .price ins .amount').length){\r\n                            product_total = jQuery($class_pr +' > .price ins .amount').text();\r\n                        }\r\n                    }else if($('.product_field.price .amount').length){\r\n                        product_total = jQuery('.product_field.price .amount').text();\r\n                        if($('.product_field.price ins .amount').length){\r\n                            product_total = jQuery('.product_field.price ins .amount').text();\r\n                        }\r\n                    }\r\n                    if(product_total ==''){\r\n                        product_total = jQuery('.wt-user-info > span:first-of-type .amount').text();\r\n                        if($('.wt-user-info > span:first-of-type ins .amount').length){\r\n                            product_total = jQuery('.wt-user-info > span:first-of-type ins .amount').text();\r\n                        }\r\n                    }\r\n                    \r\n                }*\/\r\n                if($form.hasClass('variations_form')){\r\n                    if($form.find(' > .single_variation_wrap .woocommerce-variation .woocommerce---price ins .amount').length){\r\n                        product_total = $form.find(' > .single_variation_wrap .woocommerce-variation .woocommerce---price ins .amount').text();\r\n                    }\r\n                    if(product_total==''){\r\n                        product_total = $form.find(' > .single_variation_wrap .woocommerce-variation .woocommerce---price .amount').text();\r\n                    }\r\n                    if(!$form.find(' > .single_variation_wrap .woocommerce-variation .woocommerce---price').length){\r\n                        product_total = $form.find(' > .single_variation_wrap .woocommerce-variation ins .amount').text();\r\n                        if(product_total==''){\r\n                            product_total = $form.find(' > .single_variation_wrap .woocommerce-variation .amount').text();\r\n                        }\r\n                    }\r\n                    if ($form.find('input[name=\"variation_id\"]').val() == 0) {\r\n                        product_total = 0;\r\n                        $total_cr = accounting.formatMoney( product_total,{\r\n                            symbol      : currency,\r\n                            decimal     : '.',\r\n                            thousand    : ',',\r\n                            precision   : '2',\r\n                            format      : '%s%v'\r\n                        });\r\n                        $form.find('#product_total_price .price').html( $total_cr);\r\n                        return;\r\n                    }\r\n                }else{\r\n                    if($form.find('.wt-user-info > span:first-of-type .exwt-sspr').length){\r\n                        product_total = '';\r\n                    }else{\r\n                        product_total = $form.find('.wt-user-info > span:first-of-type .amount').text();\r\n                        if($form.find('.wt-user-info > span:first-of-type ins .amount').length){\r\n                            product_total = $form.find('.wt-user-info > span:first-of-type ins .amount').text();\r\n                        }\r\n                    }\r\n                }\r\n                if($('body.exwt-normal-product').length){ product_total='35';}\r\n                $discount = 0;\r\n                var ttbf_rm = product_total;\r\n                product_total = product_total.replace( currency, '' );\r\n                if(ttbf_rm = product_total){\r\n                    currency = $(\"<div\/>\").html('&pound;').text();\r\n                    product_total = product_total.replace( currency, '' );\r\n                }\r\n                                product_total = product_total.replace( \/\\,\/g, '' );\r\n                                                product_total = product_total.replace( '.', '.' );\r\n                                product_total = product_total.replace(\/[^0-9\\.]\/g, '' );\r\n                var _t_price = product_total;\r\n                if($form.find('[name=wt_number_adult]').length){\r\n                    var adult = $form.find('[name=wt_number_adult]').val();\r\n                    if($form.find(\".crda-dcinfo.wt-dctype-adult > span\").length){\r\n                        $form.find(\".crda-dcinfo.wt-dctype-adult > span\").each(function(){\r\n                            var $this = $(this);\r\n                            $nbad = $this.data('adult');\r\n                            if(adult >= $nbad ){\r\n                                $dc_type = $this.data('type');\r\n                                $dc_nb = $this.data('number');\r\n                                if($dc_type =='percent'){\r\n                                    $discount = (adult * product_total * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = adult *  $dc_nb;\r\n                                }\r\n                                if(!$this.hasClass('dc-active')){\r\n                                    $form.find(\".crda-dcinfo.wt-dctype-adult > span.dc-active\").removeClass('dc-active').fadeOut();\r\n                                    setTimeout(function(){ \r\n                                        $this.addClass('dc-active').fadeIn();\r\n                                    }, 500);\r\n                                }\r\n                                return false;\r\n                            }else{\r\n                                $form.find(\".crda-dcinfo.wt-dctype-adult > span.dc-active\").removeClass('dc-active').fadeOut();\r\n                            }\r\n                        });\r\n                    }else if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                        $dc_type = $form.find(\".crda-dcinfo .wt-dc-season\").data('type');\r\n                        $dc_nb = $form.find(\".crda-dcinfo .wt-dc-season\").data('number');\r\n                        if( $dc_type == 'percent'){\r\n                            $discount = (adult * product_total * $dc_nb)\/100;\r\n                        }else{\r\n                            $discount = adult *  $dc_nb;\r\n                        }\r\n                    }\r\n                }else{var adult = 1;}\r\n                                    product_total = product_total* adult;\r\n                    product_total = product_total - $discount;\r\n                    if($form.find('[name=wt_number_child]').length){\r\n                        var price_child =0;\r\n                        var child = $form.find('[name=wt_number_child]').val();\r\n                        if($form.find('.woocommerce-variation-wt-child-price .amount').length){\r\n                            price_child = $form.find('.woocommerce-variation-wt-child-price span > .amount').text();\r\n                        }else if($form.find('._child_select span > span.woocommerce-Price-amount.amount').length){\r\n                            price_child = $form.find('._child_select span > span.woocommerce-Price-amount.amount').text(); \r\n                        }\r\n                        if(price_child !=''){\r\n                            price_child = price_child.replace( currency, '' );\r\n                                                        price_child = price_child.replace( \/\\,\/g, '' );\r\n                                                                                    price_child = price_child.replace( '.', '.' );\r\n                                                        price_child = price_child.replace(\/[^0-9\\.]\/g, '' );\r\n\r\n                            product_total = product_total + (child*price_child);\r\n                            if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                                $dc_type = $form.find(\".crda-dcinfo .wt-dc-season\").data('type');\r\n                                $dc_nb = $form.find(\".crda-dcinfo .wt-dc-season\").data('number');\r\n                                if( $dc_type == 'percent'){\r\n                                    $discount = (child * price_child * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = child *  $dc_nb;\r\n                                }\r\n                                product_total = product_total - $discount;\r\n                            }\r\n                        }\r\n                    }\r\n                    if($form.find('[name=wt_number_infant]').length){\r\n                        var price_infant =0;\r\n                        var infant = $form.find('[name=wt_number_infant]').val();\r\n                        if($form.find('.woocommerce-variation-wt-infant-price .amount').length){\r\n                            price_infant = $form.find('.woocommerce-variation-wt-infant-price span > .amount').text();\r\n                        }else if($form.find('._infant_select span > span.woocommerce-Price-amount.amount').length){\r\n                            price_infant = $form.find('._infant_select span > span.woocommerce-Price-amount.amount').text();\r\n                        }\r\n                        \r\n                        if(price_infant !=''){\r\n                            price_infant = price_infant.replace( currency, '' );\r\n                                                        price_infant = price_infant.replace( \/\\,\/g, '' );\r\n                                                                                    price_infant = price_infant.replace( '.', '.' );\r\n                                                        price_infant = price_infant.replace(\/[^0-9\\.]\/g, '' );\r\n\r\n                            product_total = product_total + (infant*price_infant);\r\n                            if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                                if( $dc_type == 'percent'){\r\n                                    $discount = (infant * price_infant * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = infant *  $dc_nb;\r\n                                }\r\n                                product_total = product_total - $discount;\r\n                            }\r\n                        }\r\n                    }\r\n          \t\t\t\/\/ ct1\r\n    \t\t\t\tif($form.find('[name=wt_number_ct1]').length){\r\n                        var price_ct1 =0;\r\n                        var ct1 = $form.find('[name=wt_number_ct1]').val();\r\n                        if($form.find('.woocommerce-variation-wt-ct1-price .amount').length){\r\n                            price_ct1 = $form.find('.woocommerce-variation-wt-ct1-price span > .amount').text();\r\n                        }else if($form.find('._ct1_select span > span.woocommerce-Price-amount.amount').length){\r\n                            price_ct1 = $form.find('._ct1_select span > span.woocommerce-Price-amount.amount').text();\r\n                        }\r\n                        if(price_ct1 !=''){\r\n                            price_ct1 = price_ct1.replace( currency, '' );\r\n                                                        price_ct1 = price_ct1.replace( \/\\,\/g, '' );\r\n                                                                                    price_ct1 = price_ct1.replace( '.', '.' );\r\n                                                        price_ct1 = price_ct1.replace(\/[^0-9\\.]\/g, '' );\r\n\r\n                            product_total = product_total + (ct1*price_ct1);\r\n                            if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                                if( $dc_type == 'percent'){\r\n                                    $discount = (ct1 * price_ct1 * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = ct1 *  $dc_nb;\r\n                                }\r\n                                product_total = product_total - $discount;\r\n                            }\r\n                        }\r\n                    }\r\n    \t\t\t\t\/\/ ct2\r\n    \t\t\t\tif($form.find('[name=wt_number_ct2]').length){\r\n                        var price_ct2 =0;\r\n                        var ct2 = $form.find('[name=wt_number_ct2]').val();\r\n                        if($form.find('.woocommerce-variation-wt-ct2-price .amount').length){\r\n                            price_ct2 = $form.find('.woocommerce-variation-wt-ct2-price span > .amount').text();\r\n                        }else if($form.find('._ct2_select span > span.woocommerce-Price-amount.amount').length){\r\n                            price_ct2 = $form.find('._ct2_select span > span.woocommerce-Price-amount.amount').text();\r\n                        }\r\n                        if(price_ct2 !=''){\r\n                            price_ct2 = price_ct2.replace( currency, '' );\r\n                                                        price_ct2 = price_ct2.replace( \/\\,\/g, '' );\r\n                                                                                    price_ct2 = price_ct2.replace( '.', '.' );\r\n                                                        price_ct2 = price_ct2.replace(\/[^0-9\\.]\/g, '' );\r\n\r\n                            product_total = product_total + (ct2*price_ct2);\r\n                            if($form.find(\".crda-dcinfo .wt-dc-season\").length){\r\n                                if( $dc_type == 'percent'){\r\n                                    $discount = (ct2 * price_ct2 * $dc_nb)\/100;\r\n                                }else{\r\n                                    $discount = ct2 *  $dc_nb;\r\n                                }\r\n                                product_total = product_total - $discount;\r\n                            }\r\n                        }\r\n                    }\r\n                                if($form.find('.quantity .qty').length){\r\n                    var $qty = $form.find('.quantity .qty').val();\r\n                    if(jQuery.isNumeric( $qty )){\r\n                        product_total = product_total*$qty;\r\n                    }\r\n                }\r\n                \/\/ support product addon\r\n                if($form.find('#product-addons-total').length){\r\n                    var addon_pr = 0;\r\n                    addon_pr = $form.find('#product-addons-total .price .amount').text();\r\n                    if(addon_pr !=''){\r\n                        addon_pr = addon_pr.replace( currency, '' );\r\n                                                addon_pr = addon_pr.replace( \/\\,\/g, '' );\r\n                                                                        addon_pr = addon_pr.replace( '.', '.' );\r\n                                                addon_pr = addon_pr.replace(\/[^0-9\\.]\/g, '' );\r\n                        if(adult < 1){\r\n                            _t_price = 0; \r\n                        }\r\n                        product_total = product_total + (adult*(addon_pr - _t_price));\r\n                        $form.find(\".wc-pao-addon-container\").each(function(){\r\n                            var $field = $(this).find('.wc-pao-addon-field');\r\n                            if($field.hasClass('wc-pao-addon-checkbox')){\r\n                                $field.each(function(){\r\n                                    if($(this).attr('data-price-type') =='flat_fee' && $(this).is(':checked')){\r\n                                        product_total = product_total - ($(this).attr('data-price') * (adult -1))      \r\n                                    }\r\n                                });\r\n                            }else if($field.hasClass('wc-pao-addon-select')){\r\n                                $field.find('option').each(function(){\r\n                                    if($(this).attr('data-price-type') =='flat_fee' && $(this).is(':selected')){\r\n                                        product_total = product_total - ($(this).attr('data-price') * (adult -1))      \r\n                                    }\r\n                                });\r\n                            }else if($field.hasClass('wc-pao-addon-input-multiplier')){\r\n                                if($field.attr('data-price-type') =='flat_fee'){\r\n                                    product_total = product_total - ($field.attr('data-price') * $field.val() * (adult -1))      \r\n                                }\r\n                            }else{\r\n                                if($field.attr('data-price-type') =='flat_fee'){\r\n                                    product_total = product_total - ($field.attr('data-price') * (adult -1))      \r\n                                }\r\n                            }\r\n                        });\r\n                        \r\n                    }\r\n                }\r\n                \/\/ support YITH addon\r\n                if($form.find('#wapo-total-options-price').length){\r\n                    var addon_pr = 0;\r\n                    addon_pr = $form.find('#wapo-total-options-price').text();\r\n                    if(addon_pr !=''){\r\n                        addon_pr = addon_pr.replace( currency, '' );\r\n                                                addon_pr = addon_pr.replace( \/\\,\/g, '' );\r\n                                                                        addon_pr = addon_pr.replace( '.', '.' );\r\n                                                addon_pr = addon_pr.replace(\/[^0-9\\-.]\/g, '' );\r\n                        if(addon_pr*1 != 0){\r\n                            product_total = product_total +  addon_pr*1;\r\n                        }   \r\n                    }\r\n                }\r\n                \/\/\r\n                $('.exwo-product-options .exrow-group:not(.exwf-offrq)').each(function(){\r\n                    var $this_sl = $(this);\r\n                    if($this_sl.hasClass('ex-radio') || $this_sl.hasClass('ex-checkbox')){\r\n                        $this_sl.find('.ex-options').each(function(){\r\n                            var $this_op = $(this);\r\n                            if($this_op.is(\":checked\")){\r\n                                var $price_op = $this_op.data('price');\r\n                                if($.isNumeric($price_op)){\r\n                                    if($this_op.data('type')=='fixed'){\r\n                                        product_total = product_total + $price_op*1;\r\n                                    }else{\r\n                                        product_total = product_total + ($price_op*adult);\r\n                                    }\r\n                                }\r\n                            }\r\n                        });\r\n                    }else if($this_sl.hasClass('ex-select')){\r\n                        $this_sl.find('.ex-options option').each(function(){\r\n                            var $this_op = $(this);\r\n                            if($this_op.is(\":selected\")){\r\n                                var $price_op = $this_op.data('price');\r\n                                if($.isNumeric($price_op)){\r\n                                    if($this_op.data('type')=='fixed'){\r\n                                        product_total = product_total + $price_op*1;\r\n                                    }else{\r\n                                        product_total = product_total + ($price_op*adult);\r\n                                    }\r\n                                }\r\n                            }\r\n                        });\r\n                    }else{\r\n                        var $this_op = $this_sl.find('.ex-options');\r\n                        var $price_op = $this_op.data('price');\r\n                        if($this_sl.hasClass('ex-quantity')){\r\n                            $price_op = $price_op*$this_sl.find('input.ex-options').val();\r\n                        }\r\n                        if($this_op.val() != '' && $.isNumeric($price_op)){\r\n                            if($this_op.data('type')=='fixed'){\r\n                                product_total = product_total + $price_op;\r\n                            }else{\r\n                                product_total = product_total + ($price_op*adult);\r\n                            }\r\n                        }\r\n                    }\r\n                });\r\n                $total_cr = accounting.formatMoney( product_total,{\r\n                    symbol      : currency,\r\n                    decimal     : '.',\r\n                    thousand    : ',',\r\n                    precision   : '2',\r\n                    format      : '%s%v'\r\n                });\r\n                $form.find('#product_total_price .price').html( $total_cr);\r\n            }\r\n            if($('#product-addons-total').length){\r\n                $(\"body\").on('DOMSubtreeModified', \"#product-addons-total\", function() {\r\n                    var $form = $(this).closest('form.cart');\r\n                    priceformat($form);\r\n                });\r\n            }\r\n            if($('#wapo-total-options-price').length){\r\n                $(\"body\").on('DOMSubtreeModified', \"#wapo-total-options-price\", function() {\r\n                    var $form = $(this).closest('form.cart');\r\n                    priceformat($form);\r\n                });\r\n            }\r\n\r\n            jQuery('body').on('change','[name=wt_number_adult], [name=wt_number_child], [name=wt_number_infant], [name=wt_number_ct1], [name=wt_number_ct2]',function(){\r\n                var $form = $(this).closest('form.cart');\r\n                priceformat($form);\r\n            });\r\n            jQuery('.quantity .qty').on('keyup mouseup', function(){ var $form = $(this).closest('form.cart');\r\n                priceformat($form);});\r\n            jQuery('.wt-quantity input[type=text]').on('keyup', function(){ var $form = $(this).closest('form.cart');\r\n                priceformat($form);});\r\n            \/\/jQuery('body').on('change','.variations select',function(){ var $form = $(this).closest('form.cart'); priceformat($form); });\r\n\r\n            jQuery('form.variations_form').on('show_variation', function(event, variation) { \r\n                var $form = $(this);\r\n                priceformat($form);\r\n            });\r\n            jQuery('form.variations_form').on('hide_variation', function() {\r\n                var $form = $(this);\r\n                priceformat($form);\r\n            });\r\n\r\n\r\n            jQuery('.woocommerce-variation, .wtsl-text').on('click', '.wt-quantity #wtminus_ticket', function(e) {\r\n                var $form = $(this).closest('form.cart');\r\n                priceformat($form);\r\n            });\r\n            jQuery('.woocommerce-variation').on('click', '.wt-quantity #wtadd_ticket', function(e) {\r\n                var $form = $(this).closest('form.cart');\r\n                priceformat($form);\r\n            });\r\n            jQuery('body').on('click', '.wt-quantity #wtminus_ticket, .wt-quantity #wtadd_ticket,  .variations input[type=radio]', function(e) {\r\n                var $this = $(this);\r\n                setTimeout(function(){\r\n\t\t\t\t\tvar $form = $this.closest('form.cart');\r\n                    priceformat($form);\r\n\t\t\t\t}, 200);\r\n            });\r\n            jQuery(\"form.cart\").each(function(){\r\n                var $form = $(this);\r\n                priceformat($form);\r\n            });\r\n            jQuery('body').on('change', '.exrow-group:not(.exwf-offrq).ex-select .ex-options',  function(e) {\r\n                jQuery(this).trigger('click'); \r\n            });\r\n            jQuery('body').on('click', '.exrow-group:not(.exwf-offrq) .ex-options',  function(e) {\r\n                var $this = $(this);\r\n                setTimeout(function(){\r\n                    var $form = $this.closest('form.cart');\r\n                    priceformat($form);\r\n                }, 200);\r\n            });\r\n            setTimeout(function(){\r\n                jQuery(\"form.cart\").each(function(){\r\n                    var $form = $(this);\r\n                    priceformat($form);\r\n                });\r\n            }, 200);\r\n        });\r\n        \/\/-->\r\n    <\/script>\t<div class=\"quantity\">\n\t\t<label class=\"screen-reader-text\" for=\"quantity_69f33bf219dd1\">Abu Dhabi- Dubai- Hotel 4* quantity<\/label>\n\t<input\n\t\ttype=\"hidden\"\n\t\t\t\tid=\"quantity_69f33bf219dd1\"\n\t\tclass=\"input-text qty text\"\n\t\tname=\"quantity\"\n\t\tvalue=\"1\"\n\t\taria-label=\"Product quantity\"\n\t\tsize=\"4\"\n\t\tmin=\"1\"\n\t\tmax=\"1\"\n\t\t\t\t\tstep=\"1\"\n\t\t\tplaceholder=\"\"\n\t\t\tinputmode=\"numeric\"\n\t\t\tautocomplete=\"off\"\n\t\t\t\/>\n\t<\/div>\n<span class=\"wt-tickets-status\"><\/span>\n\t\t<button type=\"submit\" name=\"add-to-cart\" value=\"103\" class=\"single_add_to_cart_button button alt\">Book Now<\/button>\n\n\t\t\t<\/form>\n\n\t\n\t\t\t<\/div>\r\n\t\t\t<\/div>[vc_column_text el_class=&#8221;shortcode-code&#8221; css=&#8221;.vc_custom_1630899509518{margin-top: 25px !important;}&#8221;][exwt_cart_form id=\"_enter_id_of_product\"][\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text el_class=&#8221;shortcode-code&#8221; css=&#8221;.vc_custom_1630899509518{margin-top: 25px !important;}&#8221;] Date Select Time Choose an option03:0007:0017:00Clear Total: 40 Boat booking quantity Book Now [\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text el_class=&#8221;shortcode-code&#8221; css=&#8221;.vc_custom_1630899509518{margin-top: 25px !important;}&#8221;] Date Select Time Choose an option03:0007:0017:00Clear Total: 40 Boat booking quantity Book Now [\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-12947","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/exthemes.net\/wootour\/wp-json\/wp\/v2\/pages\/12947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exthemes.net\/wootour\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/exthemes.net\/wootour\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/exthemes.net\/wootour\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exthemes.net\/wootour\/wp-json\/wp\/v2\/comments?post=12947"}],"version-history":[{"count":10,"href":"https:\/\/exthemes.net\/wootour\/wp-json\/wp\/v2\/pages\/12947\/revisions"}],"predecessor-version":[{"id":15421,"href":"https:\/\/exthemes.net\/wootour\/wp-json\/wp\/v2\/pages\/12947\/revisions\/15421"}],"wp:attachment":[{"href":"https:\/\/exthemes.net\/wootour\/wp-json\/wp\/v2\/media?parent=12947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}