{"id":332,"date":"2024-02-28T14:07:27","date_gmt":"2024-02-28T14:07:27","guid":{"rendered":"https:\/\/freelancecreative.solutions\/demo\/ristorante\/?page_id=332"},"modified":"2026-05-05T13:20:48","modified_gmt":"2026-05-05T11:20:48","slug":"takeaway","status":"publish","type":"page","link":"https:\/\/paseo60.es\/pl\/takeaway\/","title":{"rendered":"Na wynos"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1248px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\">\n<div class=\"wrap plugin-container vikrestaurants-page-takeaway\">\n\n\t\n\t\n\t\n<div class=\"vikrestaurants-start-body\">\n\t<!--\n\t\tThis tag is simply used to understand where the\n\t\tbody of VikRestaurants starts.\n\t-->\n<\/div>\n\n<div class=\"vrtkitemspagediv\">\n\n\t\n<form action=\"https:\/\/paseo60.es\/pl\/takeaway\/\" method=\"post\" name=\"vrmenuform\" id=\"vrmenuform\">\n\n\t<div class=\"vrtk-menus-filter-head\">\n\t\t\n\t\t<div class=\"vrtk-filter-secondary\">\n\t\t\t<div class=\"vrtk-menus-date-block\">\n\t\t\t\t<label for=\"vrtk-menus-filter-date\" class=\"visually-hidden\">Date<\/label>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"takeaway_date\" value=\"06\/05\/2026\" \/>\n\t\t\t\t\t\n\t\t\t\t<div class=\"vre-calendar-wrapper\">\n\t\t\t\t\t<input type=\"text\" class=\"vrtk-menus-filter-date enabled vre-calendar\" id=\"vrtk-menus-filter-date\" value=\"Today\" size=\"12\" readonly=\"readonly\" \/>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t\t<\/div>\n\n\t<\/div>\n\n\t<input type=\"hidden\" name=\"option\" value=\"com_vikrestaurants\" \/>\n\t<input type=\"hidden\" name=\"view\" value=\"takeaway\" \/>\n\n<\/form>\n\n<script>\n\t(function($) {\n\t\t'use strict';\n\n\t\t$(function() {\n\t\t\tlet MENUS_ROUTE_LOOKUP = {};\n\n\t\t\t\t\t\t\tMENUS_ROUTE_LOOKUP['0'] = 'https:\/\/paseo60.es\/pl\/takeaway\/';\n\t\t\t\t\t\t\t\tMENUS_ROUTE_LOOKUP['4'] = 'https:\/\/paseo60.es\/pl\/takeaway\/?option=com_vikrestaurants&view=takeaway&takeaway_menu=4';\n\t\t\t\t\n\t\t\t$('#vrtkselectmenu').on('change', function() {\n\t\t\t\tlet id = $(this).val();\n\n\t\t\t\tif (MENUS_ROUTE_LOOKUP.hasOwnProperty(id)) {\n\t\t\t\t\t\/\/ change form URL for a better SEO\n\t\t\t\t\t$(this).closest('form').attr('action', MENUS_ROUTE_LOOKUP[id]);\n\t\t\t\t}\n\n\t\t\t\t\/\/ submit form\n\t\t\t\tdocument.vrmenuform.submit();\n\t\t\t});\n\n\t\t\t$('#vrtk-menus-filter-time').on('change', () => {\n\t\t\t\tdocument.vrmenuform.submit();\n\t\t\t});\n\n\t\t\t\t\t\t\t$('#vrtk-menus-filter-date:input').on('change', function() {\n\t\t\t\t\t$('input[name=\"takeaway_date\"]').val($(this).val());\n\t\t\t\t\tdocument.vrmenuform.submit();\n\t\t\t\t});\n\t\t\t\t\t});\n\t})(jQuery);\n<\/script>\n\t<div class=\"vrtkitemsdiv\">\n\n\t\t\n\t<\/div>\n\n\t<div class=\"vrtkgotopaydiv\">\n\t\t<a href=\"https:\/\/paseo60.es\/pl\/takeaway\/?option=com_vikrestaurants&amp;view=takeawayconfirm\" class=\"vre-btn primary big\" id=\"vre-order-now-btn\">\n\t\t\tOrder Now\t\t<\/a>\n\t<\/div>\n\n<\/div>\n\n\n<div class=\"vrtk-attributes-legend\">\n            <div class=\"vrtk-attribute-box\">\n            <img decoding=\"async\" alt=\"Spicy\" title=\"Spicy\" loading=\"lazy\" class=\"food-attribute\" src=\"https:\/\/paseo60.es\/wp-content\/uploads\/vikrestaurants\/media\/spicy.png\" \/>            \n            <span\n                            >Spicy<\/span>\n        <\/div>\n            <div class=\"vrtk-attribute-box\">\n            <img decoding=\"async\" alt=\"Vegetarian\" title=\"Vegetarian\" loading=\"lazy\" class=\"food-attribute\" src=\"https:\/\/paseo60.es\/wp-content\/uploads\/vikrestaurants\/media\/veggie.png\" \/>            \n            <span\n                            >Vegetarian<\/span>\n        <\/div>\n            <div class=\"vrtk-attribute-box\">\n            <img decoding=\"async\" alt=\"Contains Nuts\" title=\"Contains Nuts\" loading=\"lazy\" class=\"food-attribute\" src=\"https:\/\/paseo60.es\/wp-content\/uploads\/vikrestaurants\/media\/nuts.png\" \/>            \n            <span\n                            >Contains Nuts<\/span>\n        <\/div>\n    <\/div>\n\n\n<div class=\"vr-overlay\" id=\"vrupselloverlay\" style=\"display: none;\">\n\n\t<div class=\"vr-modal-box\">\n\n\t\t<div class=\"vr-modal-head\">\n\n\t\t\t<div class=\"vr-modal-head-title\">\n\t\t\t\t<h3>The perfect finishing touch<\/h3>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"vr-modal-head-dismiss\">\n\t\t\t\t<a href=\"javascript:void(0)\" onClick=\"vrCloseUpsellingOverlay();\" data-role=\"dismiss\">\n\t\t\t\t\t<span class=\"visually-hidden\">Close<\/span>\n\t\t\t\t\t<span aria-hidden=\"true\">\u00d7<\/span>\n\t\t\t\t<\/a>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\n\t\t<div class=\"vr-modal-body\">\n\n\t\t\t<div class=\"vre-overlay-upselling-items\">\n\t\t\t\t\n\t\t\t<\/div>\n\n\t\t\t<div class=\"vrtk-additem-bottom dish-item-overlay-footer\">\n\n\t\t\t\t<!-- CHECKOUT LINK -->\n\n\t\t\t\t<a href=\"https:\/\/paseo60.es\/pl\/takeaway\/?option=com_vikrestaurants&amp;view=takeawayconfirm\" id=\"vrtk-checkout-button\" class=\"vre-btn success\">\n\t\t\t\t\tGo to Checkout\t\t\t\t<\/a>\n\t\t\t\t\n\t\t\t<\/div>\n\n\t\t<\/div>\n\n\t<\/div>\n\n<\/div>\n\n\n<script>\n\t(function($) {\n\t\t'use strict';\n\n\t\twindow.vrOpenUpsellingOverlay = (ref) => {\n\t\t\tconst overlay = $('#' + (ref || 'vrupselloverlay'));\n\t\t\t\n\t\t\t\/\/ add loading image\n\t\t\toverlay.find('.vre-overlay-upselling-items').html(\n\t\t\t\t'<div class=\"vr-modal-overlay-loading\">\\n'+\n\t\t\t\t\t'<img decoding=\"async\" id=\"img-loading\" src=\"https:\/\/paseo60.es\/wp-content\/plugins\/vikrestaurants\/site\/assets\/css\/images\/hor-loader.gif\" \/>\\n'+\n\t\t\t\t'<\/div>\\n'\n\t\t\t);\n\n\t\t\t\/\/ show modal\n\t\t\toverlay.show();\n\n\t\t\t\/\/ prevent body from scrolling\n\t\t\t$('body').css('overflow', 'hidden');\n\t\t\t\n\t\t\t\/\/ make request to load the eligible items for upselling\n\t\t\tvrOverlayRefreshUpselling(overlay);\n\t\t}\n\n\t\twindow.vrCloseUpsellingOverlay = (ref) => {\n\t\t\tconst overlay = $('#' + (ref || 'vrupselloverlay'));\n\n\t\t\t\/\/ make body scrollable again\n\t\t\t$('body').css('overflow', 'auto');\n\n\t\t\t\/\/ hide overlay\n\t\t\toverlay.hide();\n\t\t\t\/\/ clear overlay body\n\t\t\toverlay.find('.vre-overlay-upselling-items').html('');\n\t\t}\n\n\t\tconst vrOverlayRefreshUpselling = (overlay) => {\n\t\t\t\/\/ call promise defined by the component\n\t\t\twindow.vrRefreshUpselling().then((data) => {\n\t\t\t\tif (typeof vrRefreshUpselling !== 'function') {\n\t\t\t\t\tthrow 'Missing [vrRefreshUpselling] function! Possible outdated override.';\n\t\t\t\t}\n\n\t\t\t\tif (!(data.menus || []).length) {\n\t\t\t\t\tthrow 'No items eligible for upselling.';\n\t\t\t\t}\n\n\t\t\t\tconst upsellingContainer = $('.vre-overlay-upselling-items');\n\t\t\t\tupsellingContainer.html('');\n\n\t\t\t\tconst currency = VRECurrency.getInstance();\n\n\t\t\t\tdata.menus.forEach((menu) => {\n\t\t\t\t\tmenu.products.forEach((item) => {\n\t\t\t\t\t\tif ((item.options || []).length == 0) {\n\t\t\t\t\t\t\t\/\/ normalize options with a placeholder\n\t\t\t\t\t\t\titem.options.push({\n\t\t\t\t\t\t\t\tid: 0,\n\t\t\t\t\t\t\t\tname: '',\n\t\t\t\t\t\t\t\tprice: 0,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titem.options.forEach((option) => {\n\t\t\t\t\t\t\tconst itemBox = $('<div class=\"overlay-upselling-item\"><\/div>');\n\n\t\t\t\t\t\t\tconst itemFullName = item.name + (option.name ? ' - ' + option.name : '');\n\t\t\t\t\t\t\tconst itemPrice = parseFloat(item.price) + parseFloat(option.price);\n\n\t\t\t\t\t\t\tif (item.image) {\n\t\t\t\t\t\t\t\tconst imageBox = $('<div class=\"upselling-item-image\"><\/div>').html(item.image);\n\t\t\t\t\t\t\t\timageBox.on('click', function() {\n\t\t\t\t\t\t\t\t\tconst imgTag = $(this).find('img');\n\n\t\t\t\t\t\t\t\t\t$.fancybox.open({\n\t\t\t\t\t\t\t\t\t\tsrc:  imgTag.attr('src'),\n\t\t\t\t\t\t\t\t\t\ttype: 'image',\n\t\t\t\t\t\t\t\t\t\topts: {\n\t\t\t\t\t\t\t\t\t\t\tcaption: imgTag.attr('alt') || itemFullName,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\titemBox.append(imageBox);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tconst body = $('<div class=\"upselling-item-body\"><\/div>');\n\n\t\t\t\t\t\t\tconst details = $('<div class=\"upselling-item-details\"><\/div>');\n\n\t\t\t\t\t\t\tconst detailsTop = $('<div class=\"upselling-item-details-top\"><\/div>');\n\t\t\t\t\t\t\tdetailsTop.append($('<div class=\"upselling-item-details-name\"><\/div>').html(itemFullName));\n\n\t\t\t\t\t\t\tif ((item.attributes || []).length) {\n\t\t\t\t\t\t\t\tconst detailsAttributes = $('<div class=\"upselling-item-details-attributes\"><\/div>');\n\t\t\t\t\t\t\t\titem.attributes.forEach((attr) => {\n\t\t\t\t\t\t\t\t\tdetailsAttributes.append(attr.image);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tdetailsTop.append(detailsAttributes);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tdetails.append(detailsTop);\n\n\t\t\t\t\t\t\tif (item.description) {\n\t\t\t\t\t\t\t\tdetails.append($('<div class=\"upselling-item-details-desc\"><\/div>').html(item.description));\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tbody.append(details);\n\n\t\t\t\t\t\t\tconst priceBox = $('<div class=\"upselling-item-pricing\"><\/div>');\n\n\t\t\t\t\t\t\tpriceBox.append($('<div class=\"upselling-item-details-price\"><\/div>').html(currency.format(itemPrice)));\n\n\t\t\t\t\t\t\tconst addButton = $('<a href=\"javascript:void(0)\" class=\"upselling-item-add\"><\/a>');\n\t\t\t\t\t\t\taddButton.append($('<i class=\"fas fa-plus-square\"><\/i>').attr('aria-label', Joomla.JText._('VRE_ARIA_ADD_ITEM_CART').replace(\/%s\/, itemFullName)))\n\t\t\t\t\t\t\taddButton.on('click', () => {\n\t\t\t\t\t\t\t\tvrOpenOverlay('vrnewitemoverlay', itemFullName, item.id, option.id, -1, 'upselling');\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tpriceBox.append(addButton);\n\n\t\t\t\t\t\t\tbody.append(priceBox);\n\n\t\t\t\t\t\t\titemBox.append(body);\n\n\t\t\t\t\t\t\tupsellingContainer.append(itemBox);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}).catch((error) => {\n\t\t\t\t\/\/ unable to fetch the eligible items for upselling... immediately move to the checkout page\n\t\t\t\tdocument.location.href = 'https:\/\/paseo60.es\/pl\/takeaway\/?option=com_vikrestaurants&view=takeawayconfirm';\n\t\t\t});\n\t\t}\n\n\t\t$(function() {\n\t\t\t$('.vr-modal-box').on('click', function(e) {\n\t\t\t\t\/\/ ignore outside click\n\t\t\t\te.stopPropagation();\n\t\t\t});\n\n\t\t\t$('.vr-overlay').on('click', function() {\n\t\t\t\t\/\/ close overlay when the background is clicked\n\t\t\t\t$(this).find('[data-role=\"dismiss\"]').trigger('click');\n\t\t\t});\n\t\t});\n\t})(jQuery);\n<\/script>\n<div class=\"vr-overlay\" id=\"vrnewitemoverlay\" style=\"display: none;\">\n\n\t<div class=\"vr-modal-box\">\n\n\t\t<div class=\"vr-modal-head\">\n\n\t\t\t<div class=\"vr-modal-head-title\">\n\t\t\t\t<h3>Add Item<\/h3>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"vr-modal-head-dismiss\">\n\t\t\t\t<a href=\"javascript: void(0);\" onClick=\"vrCloseOverlay('vrnewitemoverlay');\" data-role=\"dismiss\">\n\t\t\t\t\t<span class=\"visually-hidden\">Close<\/span>\n\t\t\t\t\t<span aria-hidden=\"true\">\u00d7<\/span>\n\t\t\t\t<\/a>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\n\t\t<div class=\"vr-modal-body\">\n\t\t\t\n\t\t<\/div>\n\n\t<\/div>\n\n<\/div>\n\n\n<script>\n\t(function($) {\n\t\t'use strict';\n\n\t\twindow.vrOpenOverlay = (ref, title, id_entry, id_option, index, tags) => {\n\t\t\tconst overlay = $('#' + ref);\n\n\t\t\tif (index == -1) {\n\t\t\t\ttitle = Joomla.JText._('VRTKADDDISHTITLE');\n\t\t\t} else {\n\t\t\t\ttitle = Joomla.JText._('VRTKADDEDITDISHTITLE');\n\t\t\t}\n\n\t\t\t\/\/ change overlay title\n\t\t\toverlay.find('.vr-modal-head-title h3').text(title);\n\t\t\t\n\t\t\t\/\/ add loading image\n\t\t\toverlay.find('.vr-modal-body').html(\n\t\t\t\t'<div class=\"vr-modal-overlay-loading\">\\n'+\n\t\t\t\t\t'<img decoding=\"async\" id=\"img-loading\" src=\"https:\/\/paseo60.es\/wp-content\/plugins\/vikrestaurants\/site\/assets\/css\/images\/hor-loader.gif\" \/>\\n'+\n\t\t\t\t'<\/div>\\n'\n\t\t\t);\n\t\t\t\n\t\t\t\/\/ show modal\n\t\t\toverlay.show();\n\n\t\t\t\/\/ prevent body from scrolling\n\t\t\t$('body').css('overflow', 'hidden');\n\t\t\t\n\t\t\t\/\/ make request to load product details\n\t\t\tUIAjax.do(\n\t\t\t\t'https:\/\/paseo60.es\/wp-admin\/admin-ajax.php?view=tkadditem&tmpl=component&action=vikrestaurants&vik_ajax_client=site',\n\t\t\t\t{\n\t\t\t\t\teid:   id_entry,\n\t\t\t\t\toid:   id_option,\n\t\t\t\t\tindex: index,\n\t\t\t\t\ttags:  tags,\n\t\t\t\t},\n\t\t\t\t(resp) => {\n\t\t\t\t\toverlay.find('.vr-modal-body').html(resp);\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tif (!error.responseText || error.responseText.length > 1024) {\n\t\t\t\t\t\t\/\/ use default generic error\n\t\t\t\t\t\terror.responseText = Joomla.JText._('VRTKADDITEMERR2');\n\t\t\t\t\t}\n\n\t\t\t\t\talert(error.responseText);\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\n\t\twindow.vrCloseOverlay = (ref) => {\n\t\t\tconst overlay = $('#' + ref);\n\n\t\t\t\/\/ hide overlay\n\t\t\toverlay.hide();\n\t\t\t\/\/ clear overlay body\n\t\t\toverlay.find('.vr-modal-body').html('');\n\n\t\t\tif ($('.vr-overlay:visible').length == 0) {\n\t\t\t\t\/\/ make body scrollable again, only if there no other overlays in background\n\t\t\t\t$('body').css('overflow', 'auto');\n\t\t\t}\n\t\t}\n\n\t\t$(function() {\n\t\t\t$('.vr-modal-box').on('click', function(e) {\n\t\t\t\t\/\/ ignore outside click\n\t\t\t\te.stopPropagation();\n\t\t\t});\n\n\t\t\t$('.vr-overlay').on('click', function() {\n\t\t\t\t\/\/ close overlay when the background is clicked\n\t\t\t\t$(this).find('[data-role=\"dismiss\"]').trigger('click');\n\t\t\t});\n\t\t});\n\t})(jQuery);\n<\/script>\n<script>\n\t(function($) {\n\t\t'use strict';\n\n\t\tconst GALLERY_DATA = {\"groupBy\":\"menu\",\"images\":[]};\n\n\t\t\/\/ adjust gallery data for being used by FontAwesome\n\t\tfor (let id in GALLERY_DATA.images) {\n\t\t\tif (GALLERY_DATA.images.hasOwnProperty(id)) {\n\t\t\t\t\/\/ iterate images\n\t\t\t\tfor (let i = 0; i < GALLERY_DATA.images[id].length; i++) {\n\t\t\t\t\tlet img = GALLERY_DATA.images[id][i];\n\n\t\t\t\t\tGALLERY_DATA.images[id][i] = {\n\t\t\t\t\t\tsrc:  img.uri,\n\t\t\t\t\t\ttype: 'image',\n\t\t\t\t\t\topts: {\n\t\t\t\t\t\t\tcaption: img.caption,\n\t\t\t\t\t\t\tthumb:   img.thumb,\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twindow.vreOpenGallery = (link) => {\n\t\t\t\/\/ get clicked image\n\t\t\tconst img = $(link).find('img');\n\n\t\t\tif (GALLERY_DATA.groupBy == 'menu') {\n\t\t\t\t\/\/ get menu ID\n\t\t\t\tlet id_menu = img.data('menu');\n\n\t\t\t\tif (!GALLERY_DATA.images.hasOwnProperty(id_menu)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t\/\/ open fancybox to show only the items that belong to this menu\n\t\t\t\tconst instance = $.fancybox.open(GALLERY_DATA.images[id_menu]);\n\n\t\t\t\t\/\/ get clicked image index\n\t\t\t\tvar index = $('a.vremodal img[data-menu=\"' + id_menu + '\"]').index(img);\n\n\t\t\t\tif (index > 0) {\n\t\t\t\t\t\/\/ jump to selected image ('0' turns off the animation)\n\t\t\t\t\tinstance.jumpTo(index, 0);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\/\/ get product ID\n\t\t\t\tlet id_prod = img.data('prod');\n\n\t\t\t\tif (!GALLERY_DATA.images.hasOwnProperty(id_prod)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t\/\/ open fancybox to show only the items that belong to this product\n\t\t\t\t$.fancybox.open(GALLERY_DATA.images[id_prod]);\n\t\t\t}\n\t\t}\n\n\t\twindow.showMoreDesc = (id) => {\n\t\t\tsetDescriptionVisible(id, true);\n\t\t}\n\n\t\twindow.showLessDesc = (id) => {\n\t\t\tsetDescriptionVisible(id, false);\n\t\t}\n\n\t\tconst setDescriptionVisible = (id, status) => {\n\t\t\tif (status) {\n\t\t\t\t$('#vrtkitemshortdescsp' + id).hide();\n\t\t\t\t$('#vrtkitemlongdescsp' + id).show();\n\t\t\t} else {\n\t\t\t\t$('#vrtkitemlongdescsp' + id).hide();\n\t\t\t\t$('#vrtkitemshortdescsp' + id).show();\n\t\t\t}\n\t\t}\n\n\t\twindow.vrInsertTakeAwayItem = (id_entry, id_option) => {\n\t\t\tconst data = {\n\t\t\t\tid_entry:   id_entry,\n\t\t\t\tid_option:  id_option,\n\t\t\t\titem_index: -1,\n\t\t\t};\n\n\t\t\tvrMakeAddCartRequest(data).then((response) => {\n\t\t\t\t\/\/ do nothing here\n\t\t\t}).catch((error) => {\n\t\t\t\t\/\/ do nothing here\n\t\t\t});\n\t\t}\n\n\t\twindow.vrMakeAddCartRequest = (data) => {\n\t\t\t\/\/ create promise\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\t\/\/ make request to add the item within the cart\n\t\t\t\tUIAjax.do(\n\t\t\t\t\t'https:\/\/paseo60.es\/wp-admin\/admin-ajax.php?task=takeaway.addtocartajax&action=vikrestaurants&vik_ajax_client=site',\n\t\t\t\t\tdata,\n\t\t\t\t\t(obj) => {\n\t\t\t\t\t\tlet msg = {\n\t\t\t\t\t\t\tstatus: 0,\n\t\t\t\t\t\t\ttext:   '',\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif (vrIsCartPublished()) {\n\t\t\t\t\t\t\t\/\/ refresh cart module in case it is published\n\t\t\t\t\t\t\tvrCartRefreshItems(obj.items, obj.total, obj.discount, obj.finalTotal);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\/\/ resolve promise\n\t\t\t\t\t\tresolve(obj);\n\n\t\t\t\t\t\tif (obj.message) {\n\t\t\t\t\t\t\t\/\/ use the message fetched by the controller\n\t\t\t\t\t\t\tmsg = obj.message;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\/\/ Display the default successful message only in case there is no message text\n\t\t\t\t\t\t\/\/ and the cart is not published (or currently not visible on the screen).\n\t\t\t\t\t\tif (msg.text.length == 0 && (!vrIsCartPublished() || !vrIsCartVisibleOnScreen())) {\n\t\t\t\t\t\t\tmsg.text   = Joomla.JText._('VRTKADDITEMSUCC');\n\t\t\t\t\t\t\tmsg.status = 1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (msg.text.length) {\n\t\t\t\t\t\t\t\/\/ dispatch toast message\n\t\t\t\t\t\t\tVREToast.dispatch(msg);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t(error) => {\n\t\t\t\t\t\tif (!error.responseText || error.responseText.length > 1024) {\n\t\t\t\t\t\t\t\/\/ use default generic error\n\t\t\t\t\t\t\terror.responseText = Joomla.JText._('VRTKADDITEMERR2');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\/\/ reject promise\n\t\t\t\t\t\treject(error);\n\n\t\t\t\t\t\t\/\/ raise error\n\t\t\t\t\t\tVREToast.dispatch({\n\t\t\t\t\t\t\ttext:   error.responseText,\n\t\t\t\t\t\t\tstatus: VREToast.ERROR_STATUS,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t});\n\t\t}\n\n\t\twindow.vrRefreshUpselling = () => {\n\t\t\t\/\/ create promise\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\tUIAjax.do(\n\t\t\t\t\t'https:\/\/paseo60.es\/wp-admin\/admin-ajax.php?task=takeaway.upsellajax&action=vikrestaurants&vik_ajax_client=site',\n\t\t\t\t\t{\n\t\t\t\t\t\t\/\/ no request args\n\t\t\t\t\t},\n\t\t\t\t\t(data) => {\n\t\t\t\t\t\tresolve(data);\n\t\t\t\t\t},\n\t\t\t\t\t(error) => {\n\t\t\t\t\t\treject(error);\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t});\n\t\t}\n\n\t\t$(function() {\n\t\t\t\t\t});\n\t})(jQuery);\n<\/script>\n<\/div>\n\n<\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"100-width.php","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-332","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/paseo60.es\/pl\/wp-json\/wp\/v2\/pages\/332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paseo60.es\/pl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/paseo60.es\/pl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/paseo60.es\/pl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/paseo60.es\/pl\/wp-json\/wp\/v2\/comments?post=332"}],"version-history":[{"count":12,"href":"https:\/\/paseo60.es\/pl\/wp-json\/wp\/v2\/pages\/332\/revisions"}],"predecessor-version":[{"id":798,"href":"https:\/\/paseo60.es\/pl\/wp-json\/wp\/v2\/pages\/332\/revisions\/798"}],"wp:attachment":[{"href":"https:\/\/paseo60.es\/pl\/wp-json\/wp\/v2\/media?parent=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}