{"id":10067436,"date":"2025-02-21T00:21:10","date_gmt":"2025-02-20T23:21:10","guid":{"rendered":"https:\/\/belovedlingerie.com\/si\/?page_id=10067436"},"modified":"2025-02-21T00:22:14","modified_gmt":"2025-02-20T23:22:14","slug":"obrazec-za-vracilo","status":"publish","type":"page","link":"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/","title":{"rendered":"Obrazec za vra\u010dilo"},"content":{"rendered":"    <style>\n        #kiwwwi-refund-form, #kiwwwi-refund-items-form {\n            margin: 0 auto;\n            padding: 20px;\n            border: 1px solid #ddd;\n            background-color: #f9f9f9;\n        }\n        #kiwwwi-refund-form label, #kiwwwi-refund-items-form label {\n            display: flex;\n            margin-bottom: 5px;\n            font-weight: bold;\n        }\n\n\t\t#kiwwwi-order-details h2 {\n\t\t\tmargin-bottom: 20px;\n\t\t\tmargin-top: 40px;\n\t\t\ttext-align: center;\n\t\t}\n\n        #kiwwwi-order-details ul {\n            list-style: none;\n            padding: 0;\n        }\n        #kiwwwi-order-details li {\n            display: flex;\n            align-items: center;\n            margin-bottom: 10px;\n\t\t\tmargin-left: 0;\n\t\t\tjustify-content: space-between;\n        }\n\n\t\t.product-list-price-quantity {\n\t\t\tdisplay: flex;\n\t\t\tgap: 20px;\n\t\t\talign-items: center;\n\t\t}\n\n\t\t.product-list-price-quantity input{\n\t\t\tmargin: 0;\n\t\t\tmin-width: 35px;\n\t\t}\n\n        #kiwwwi-order-details img {\n            margin-right: 10px;\n            width: 50px;\n            height: 50px;\n        }\n        .refund-reason, .refund-type {\n            margin-bottom: 10px;\n        }\n\n\t\t#exchange-message, #refund-address {\n\t\t\tfont-size: 14px;\n\t\t\tfont-weight: 600;\n\t\t\tfont-style: italic;\n\t\t\tmargin-bottom: 40px;\n\t\t}\n\n\t\t#exchange-message a{\n\t\t\ttext-decoration: underline;\n\t\t}\n\n\t\t.error {\n\t\t\ttext-align: center;\n\t\t\tmargin-top: 30px;\n\t\t}\n\n\t\t.message {\n\t\t\ttext-align: center;\n\t\t\tmargin-top: 30px;\n\t\t\tfont-size: 16px;\n\t\t}\n    <\/style>\n\t<h2>Vra\u010dila in menjave<\/h2>\n\t<p>Tukaj lahko enostavno vrnete ali zamenjate izdelek iz va\u0161ega naro\u010dila.<\/p>\n\n    <form id=\"kiwwwi-refund-form\" method=\"post\">\n\n        <label for=\"order_id\">Vnesite va\u0161o \u0161tevilko naro\u010dila:<\/label>\n        <input type=\"text\" name=\"order_id\" id=\"order_id\" required>\n        <button class=\"button button-primary\" type=\"submit\">Poi\u0161\u010di moje naro\u010dilo<\/button>\n\t\t<br><small>Za prikaz va\u0161ega naro\u010dila potrebujemo \u0161t. naro\u010dila, ki ste jo prejeli v potrditvenem elektronskem sporo\u010dilu ob oddaji naro\u010dila.<\/small>\n    <\/form>\n    <div id=\"kiwwwi-order-details\"><\/div>\n<script>\n    jQuery(document).ready(function($) {\n        \/\/ Step 1: Find Order\n        $('#kiwwwi-refund-form').on('submit', function(e) {\n            e.preventDefault();\n            var orderId = $('#order_id').val();\n            $.post('https:\/\/belovedlingerie.com\/si\/wp-admin\/admin-ajax.php', {\n                action: 'kiwwwi_find_order',\n                order_id: orderId\n            }, function(response) {\n                $('#kiwwwi-order-details').empty(); \/\/ Clear previous details or messages\n                if (response.success) {\n                    $('#kiwwwi-refund-form').hide(); \/\/ Hide the find order form\n                    $('#kiwwwi-order-details').html(response.data); \/\/ Display the refund form\n                } else {\n                    $('#kiwwwi-order-details').html(response.data); \/\/ Display the error message\n                }\n            }, 'json');\n        });\n\n\t\t\/\/ Step 2: Submit Refund Form\n\t\t$(document).on('submit', '#kiwwwi-refund-items-form', function(e) {\n\t\t\te.preventDefault();\n\n\t\t\t\/\/ Use FormData to include all inputs correctly\n\t\t\tvar formData = new FormData(this);\n\n\t\t\t$.ajax({\n\t\t\t\turl: 'https:\/\/belovedlingerie.com\/si\/wp-admin\/admin-ajax.php',\n\t\t\t\ttype: 'POST',\n\t\t\t\tdata: formData,\n\t\t\t\tprocessData: false, \/\/ Prevent jQuery from processing the data\n\t\t\t\tcontentType: false, \/\/ Prevent jQuery from setting the content type\n\t\t\t\tdataType: 'json',\n\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t$('#kiwwwi-order-details').empty(); \/\/ Clear previous details or messages\n\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t$('#kiwwwi-order-details').html(response.data); \/\/ Display the thank you message\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$('#kiwwwi-order-details').html('<div class=\"error\">' + response.data + '<\/div>');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\terror: function(xhr, status, error) {\n\t\t\t\t\t$('#kiwwwi-order-details').html('<div class=\"error\">Pojavila se je napaka: ' + error + '<\/div>');\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\n        \/\/ Step 3: Cancel Refund\n        $(document).on('click', '#cancel-refund-button', function(e) {\n            e.preventDefault();\n            var orderId = $(this).data('order-id');\n            $.post('https:\/\/belovedlingerie.com\/si\/wp-admin\/admin-ajax.php', {\n                action: 'kiwwwi_cancel_refund',\n                order_id: orderId\n            }, function(response) {\n                $('#kiwwwi-order-details').empty(); \/\/ Clear previous details or messages\n                if (response.success) {\n                    $('#kiwwwi-order-details').html('<div class=\"message\">' + response.data + '<\/div>'); \/\/ Display success message\n                } else {\n                    $('#kiwwwi-order-details').html('<div class=\"error\">' + response.data + '<\/div>'); \/\/ Display error message\n                }\n            }, 'json');\n        });\n    });\n<\/script>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":91,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-10067436","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Obrazec za vra\u010dilo - Beloved Lingerie<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/\" \/>\n<meta property=\"og:locale\" content=\"sl_SI\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Obrazec za vra\u010dilo - Beloved Lingerie\" \/>\n<meta property=\"og:url\" content=\"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/\" \/>\n<meta property=\"og:site_name\" content=\"Beloved Lingerie\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-20T23:22:14+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuta\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/\",\"url\":\"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/\",\"name\":\"Obrazec za vra\u010dilo - Beloved Lingerie\",\"isPartOf\":{\"@id\":\"https:\/\/belovedlingerie.com\/si\/#website\"},\"datePublished\":\"2025-02-20T23:21:10+00:00\",\"dateModified\":\"2025-02-20T23:22:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/#breadcrumb\"},\"inLanguage\":\"sl-SI\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/belovedlingerie.com\/si\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Obrazec za vra\u010dilo\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/belovedlingerie.com\/si\/#website\",\"url\":\"https:\/\/belovedlingerie.com\/si\/\",\"name\":\"Beloved Lingerie\",\"description\":\"Your beloved fashion store!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/belovedlingerie.com\/si\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"sl-SI\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Obrazec za vra\u010dilo - Beloved Lingerie","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/","og_locale":"sl_SI","og_type":"article","og_title":"Obrazec za vra\u010dilo - Beloved Lingerie","og_url":"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/","og_site_name":"Beloved Lingerie","article_modified_time":"2025-02-20T23:22:14+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minuta"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/","url":"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/","name":"Obrazec za vra\u010dilo - Beloved Lingerie","isPartOf":{"@id":"https:\/\/belovedlingerie.com\/si\/#website"},"datePublished":"2025-02-20T23:21:10+00:00","dateModified":"2025-02-20T23:22:14+00:00","breadcrumb":{"@id":"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/#breadcrumb"},"inLanguage":"sl-SI","potentialAction":[{"@type":"ReadAction","target":["https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/belovedlingerie.com\/si\/obrazec-za-vracilo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/belovedlingerie.com\/si\/"},{"@type":"ListItem","position":2,"name":"Obrazec za vra\u010dilo"}]},{"@type":"WebSite","@id":"https:\/\/belovedlingerie.com\/si\/#website","url":"https:\/\/belovedlingerie.com\/si\/","name":"Beloved Lingerie","description":"Your beloved fashion store!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/belovedlingerie.com\/si\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"sl-SI"}]}},"_links":{"self":[{"href":"https:\/\/belovedlingerie.com\/si\/wp-json\/wp\/v2\/pages\/10067436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belovedlingerie.com\/si\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/belovedlingerie.com\/si\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/belovedlingerie.com\/si\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/belovedlingerie.com\/si\/wp-json\/wp\/v2\/comments?post=10067436"}],"version-history":[{"count":1,"href":"https:\/\/belovedlingerie.com\/si\/wp-json\/wp\/v2\/pages\/10067436\/revisions"}],"predecessor-version":[{"id":10067437,"href":"https:\/\/belovedlingerie.com\/si\/wp-json\/wp\/v2\/pages\/10067436\/revisions\/10067437"}],"wp:attachment":[{"href":"https:\/\/belovedlingerie.com\/si\/wp-json\/wp\/v2\/media?parent=10067436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}