{"id":4138,"date":"2022-03-19T22:21:46","date_gmt":"2022-03-19T22:21:46","guid":{"rendered":"https:\/\/awtexperiences.com\/packs\/"},"modified":"2022-03-19T22:22:18","modified_gmt":"2022-03-19T22:22:18","slug":"packs","status":"publish","type":"page","link":"https:\/\/aldazwaterteam.com\/en\/packs\/","title":{"rendered":"Packs"},"content":{"rendered":"<p>[vc_row][vc_column][vc_column_text css_animation=&#8221;fadeInDownBig&#8221;]<\/p>\n<h1>PACKS<\/h1>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]\n<div class=\"wrap plugin-container\">\n\n\t\n\t\n\t\t\n\t\t\n<form action=\"https:\/\/aldazwaterteam.com\/en\/packs\/?option=com_vikappointments&amp;view=packagesconfirm\" method=\"post\" name=\"vappackform\" id=\"vappackform\">\n\t\n\t<div class=\"vap-packages-groups-container\" id=\"vap-packages-groups-container\">\n\t\n\t\t\t\t\t<div class=\"vap-packages-group light-theme-background\">\n\n\t\t\t\t\n\t\t\t\t<div class=\"vap-package-group-list\">\n\n\t\t\t\t\t\n<div class=\"vap-package-block\" style=\"width: calc(100% \/ 3 - 20px);\" id=\"vap-package1\">\n\n\t<div class=\"vap-package-name\">\n\t\tBONO DE 5 CLASES (5 HORAS)\t<\/div>\n\n\t<div class=\"vap-package-price\">\n\t\t750,00 \u20ac\t<\/div>\n\n\t<div class=\"vap-package-numapp\">\n\t\tx 5 appointments\t<\/div>\n\t\n\t\n\t<div class=\"vap-package-button\">\n\t\t<button type=\"button\" class=\"add-package-btn vap-btn green\" data-id=\"1\">\n\t\t\tOrder Now\t\t<\/button>\n\t<\/div>\n\n<\/div>\n\n<div class=\"vap-package-block\" style=\"width: calc(100% \/ 3 - 20px);\" id=\"vap-package2\">\n\n\t<div class=\"vap-package-name\">\n\t\tBONO DE 10 CLASES (10 HORAS)\t<\/div>\n\n\t<div class=\"vap-package-price\">\n\t\t1.259,00 \u20ac\t<\/div>\n\n\t<div class=\"vap-package-numapp\">\n\t\tx 10 appointments\t<\/div>\n\t\n\t\n\t<div class=\"vap-package-button\">\n\t\t<button type=\"button\" class=\"add-package-btn vap-btn green\" data-id=\"2\">\n\t\t\tOrder Now\t\t<\/button>\n\t<\/div>\n\n<\/div>\n\n\t\t\t\t<\/div>\n\n\t\t\t<\/div>\n\t\t\t\t\n\t<\/div>\n\n\t\n<div class=\"vap-packages-errorbox\" id=\"vap-packages-errorbox\" style=\"display: none;\"><\/div>\n\n<div class=\"vap-packages-shop\" id=\"vap-packages-shop\" style=\"display:none;\">\n\n\t<h3>Order Summary<\/h3>\n\n\t<div class=\"vap-packages-cart vap-packages-cart-shop\" id=\"vap-packages-cart\">\n\n\t\t<div class=\"vap-packages-cart-list\" id=\"vap-packages-cart-list\">\n\n\t\t\t\n\t\t<\/div>\n\n\t\t<div class=\"vap-packages-cart-total\">\n\t\t\t<div class=\"vap-packages-cart-tcost\" id=\"vap-packages-cart-tcost\">\n\t\t\t\t0,00 \u20ac\t\t\t<\/div>\n\t\t<\/div>\n\n\t<\/div>\n\n\t<div class=\"vap-packages-checkout\">\t\n\n\t\t<div class=\"shop-left\">\n\t\t\t<div class=\"vap-packages-ordernow\">\n\t\t\t\t<button type=\"submit\" class=\"vap-btn green\">Go To Checkout<\/button>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"vap-packages-emptyact\">\n\t\t\t\t<button type=\"button\" class=\"vap-btn\" id=\"empty-cart-btn\">Empty Cart<\/button>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t<\/div>\n\n<\/div>\n\n<div id=\"package-struct\" style=\"display: none;\">\n\t\n<div class=\"vap-packages-cart-row\" id=\"vap-cart-row__ID__\">\n\t\t\t\t\t\n\t<div class=\"cart-row-left\">\n\t\t<span class=\"cart-quantity\">\n\t\t\t__QTY__x\n\t\t<\/span>\n\n\t\t<span class=\"cart-name\">\n\t\t\t__NAME__\t\t<\/span>\t\t\t\t\t\t\n\n\t\t<span class=\"cart-price\">\n\t\t\t0,00 \u20ac\t\t<\/span>\n\t<\/div>\n\n\t<div class=\"cart-row-right\">\n\t\t<span class=\"cart-remove\">\n\t\t\t<a href=\"javascript:void(0)\" class=\"del-package-btn\" data-id=\"__ID__\">\n\t\t\t\t<i class=\"fas fa-minus-circle\"><\/i>\n\t\t\t<\/a>\n\t\t<\/span>\n\t<\/div>\n\n<\/div><\/div>\n\n\n<script>\n\n\tjQuery(function($) {\n\t\t\/\/ flag used to check whether the page should scroll \n\t\t\/\/ to the cart section after adding a package\n\t\tlet vapFirstAnimation = true;\n\n\t\t\/\/ flag used to track the error timeout\n\t\tvar _bad_timeout = null;\n\n\t\t\/\/ helper function used to display an error message within\n\t\t\/\/ the user interface\n\t\tconst displayErrorMessage = (errstr) => {\n\t\t\tvar elem = $('#vap-packages-errorbox');\n\n\t\t\telem.html(errstr);\n\n\t\t\tif (_bad_timeout != null) {\n\t\t\t\tclearTimeout(_bad_timeout);\n\t\t\t}\n\t\t\t\n\t\t\telem.stop(true, true).fadeIn();\n\t\t\t_bad_timeout = setTimeout(() => {\n\t\t\t\telem.fadeOut();\n\t\t\t}, 2500);\n\n\t\t\t$('html,body').animate({\n\t\t\t\tscrollTop: elem.offset().top - 5,\n\t\t\t}, {\n\t\t\t\tduration: 'normal',\n\t\t\t});\n\t\t};\n\n\t\t\/\/ helper function used to reset the (visual) cart\n\t\tconst resetCartBox = () => {\n\t\t\t$('#vap-packages-cart-list').html('');\n\t\t\t$('#vap-packages-shop').hide();\n\n\t\t\t$('html,body').animate({\n\t\t\t\tscrollTop: $('#vap-packages-groups-container').offset().top - 5,\n\t\t\t}, {\n\t\t\t\tduration: 'normal',\n\t\t\t});\n\n\t\t\t\/\/ restore animation\n\t\t\tvapFirstAnimation = true;\n\t\t};\n\n\t\t\/\/ helper function used to introduce a package into the (visual) cart\n\t\tconst addPackageToCart = (data) => {\n\t\t\t$('#vap-packages-shop').show();\n\n\t\t\tconst currency = Currency.getInstance();\n\t\t\n\t\t\tif ($('#vap-cart-row' + data.item.id).length == 0) {\n\t\t\t\t\/\/ missing package, add it\n\t\t\t\tlet html = $('#package-struct').html();\n\n\t\t\t\thtml = html.replace(\/__ID__\/g, data.item.id);\n\t\t\t\thtml = html.replace(\/__NAME__\/g, data.item.name);\n\t\t\t\thtml = html.replace(\/__QTY__\/g, data.item.quantity);\n\n\t\t\t\thtml = $(html);\n\n\t\t\t\thtml.find('.cart-price').html(currency.format(data.item.total));\n\n\t\t\t\t$('#vap-packages-cart-list').append(html);\n\t\t\t} else {\n\t\t\t\t\/\/ update the quantity and the cost of the existing package\n\t\t\t\t$('#vap-cart-row' + data.item.id).find('.cart-quantity').html(data.item.quantity + 'x');\n\t\t\t\t$('#vap-cart-row' + data.item.id).find('.cart-price').html(currency.format(data.item.total));\n\t\t\t}\n\n\t\t\t$('#vap-packages-cart-tcost').html(currency.format(data.totalCost));\n\n\t\t\tif (vapFirstAnimation) {\n\t\t\t\t$('html,body').animate({\n\t\t\t\t\tscrollTop: $('#vap-cart-row' + data.item.id).offset().top - 5,\n\t\t\t\t}, {\n\t\t\t\t\tduration: 'normal',\n\t\t\t\t});\n\n\t\t\t\tvapFirstAnimation = false;\n\t\t\t}\n\t\t};\n\n\t\t\/\/ add package to the cart\n\t\t$('.add-package-btn[data-id]').on('click', function() {\n\t\t\tUIAjax.do(\n\t\t\t\t'https:\/\/aldazwaterteam.com\/wp-admin\/admin-ajax.php?task=packages.addcart&action=vikappointments&vik_ajax_client=site',\n\t\t\t\t{\n\t\t\t\t\tid_package: $(this).data('id'),\n\t\t\t\t},\n\t\t\t\t(resp) => {\n\t\t\t\t\taddPackageToCart(resp);\n\t\t\t\t},\n\t\t\t\t(err) => {\n\t\t\t\t\tdisplayErrorMessage(err.responseText || Joomla.JText._('VAPWAITLISTADDED0'));\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\n\t\t\/\/ helper function used to introduce a package into the (visual) cart\n\t\tconst removePackageToCart = (data) => {\n\t\t\tif (!data.item) {\n\t\t\t\t\/\/ completely remove the package record\n\t\t\t\t$('#vap-cart-row' + data.idPackage).remove();\n\t\t\t} else {\n\t\t\t\t\/\/ decrease quantity and refresh package cost\n\t\t\t\t$('#vap-cart-row' + data.item.id).find('.cart-quantity').html(data.item.quantity + 'x');\n\t\t\t\t$('#vap-cart-row' + data.item.id).find('.cart-price').html(Currency.getInstance().format(data.item.total));\n\t\t\t}\n\n\t\t\t\/\/ refresh cart total cost\n\t\t\t$('#vap-packages-cart-tcost').html(Currency.getInstance().format(data.totalCost));\n\t\t\t\n\t\t\tif (data.isEmpty) {\n\t\t\t\tresetCartBox();\n\t\t\t}\n\t\t};\n\n\t\t\/\/ remove package from cart\n\t\t$(document).on('click', '.del-package-btn[data-id]', function() {\n\t\t\tUIAjax.do(\n\t\t\t\t'https:\/\/aldazwaterteam.com\/wp-admin\/admin-ajax.php?task=packages.removecart&action=vikappointments&vik_ajax_client=site',\n\t\t\t\t{\n\t\t\t\t\tid_package: $(this).data('id'),\n\t\t\t\t},\n\t\t\t\t(resp) => {\n\t\t\t\t\tremovePackageToCart(resp);\n\t\t\t\t},\n\t\t\t\t(err) => {\n\t\t\t\t\tdisplayErrorMessage(err.responseText || Joomla.JText._('VAPWAITLISTADDED0'));\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\n\t\t\/\/ empty the cart\n\t\t$('#empty-cart-btn').on('click', () => {\n\t\t\tUIAjax.do(\n\t\t\t\t'https:\/\/aldazwaterteam.com\/wp-admin\/admin-ajax.php?task=packages.emptycart&action=vikappointments&vik_ajax_client=site',\n\t\t\t\t{},\n\t\t\t\t(resp) => {\n\t\t\t\t\tresetCartBox(resp);\n\t\t\t\t},\n\t\t\t\t(err) => {\n\t\t\t\t\tdisplayErrorMessage(err.responseText || Joomla.JText._('VAPWAITLISTADDED0'));\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t});\n\n<\/script>\n\t\t\n\t<input type=\"hidden\" name=\"option\" value=\"com_vikappointments\" \/>\n\t<input type=\"hidden\" name=\"view\" value=\"packagesconfirm\" \/>\t\n\t<input type=\"hidden\" name=\"Itemid\" value=\"0\" \/>\t\n<\/form>\n\n<\/div>\n[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text css_animation=&#8221;fadeInDownBig&#8221;] PACKS [\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text][\/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-4138","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/aldazwaterteam.com\/en\/wp-json\/wp\/v2\/pages\/4138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aldazwaterteam.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/aldazwaterteam.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/aldazwaterteam.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aldazwaterteam.com\/en\/wp-json\/wp\/v2\/comments?post=4138"}],"version-history":[{"count":2,"href":"https:\/\/aldazwaterteam.com\/en\/wp-json\/wp\/v2\/pages\/4138\/revisions"}],"predecessor-version":[{"id":4140,"href":"https:\/\/aldazwaterteam.com\/en\/wp-json\/wp\/v2\/pages\/4138\/revisions\/4140"}],"wp:attachment":[{"href":"https:\/\/aldazwaterteam.com\/en\/wp-json\/wp\/v2\/media?parent=4138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}