{"id":34,"date":"2022-06-04T14:35:37","date_gmt":"2022-06-04T12:35:37","guid":{"rendered":"https:\/\/www.9530.dk\/?page_id=34"},"modified":"2024-09-12T14:40:04","modified_gmt":"2024-09-12T12:40:04","slug":"jfmt-lathe","status":"publish","type":"page","link":"https:\/\/www.9530.dk\/index.php\/shop\/jfmt-lathe\/","title":{"rendered":"JFMT Lathe"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">JFMT 460-530, Lathe, Operations and Parts Manual PDF, <strong>70,00&nbsp;USD<\/strong><\/h2>\n\n\n\n<h6 class=\"wp-block-heading\">This Manual Includes:<br><strong>Parts Lists<\/strong><br><strong>Operation Manuals<\/strong><\/h6>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"761\" height=\"1024\" src=\"https:\/\/www.9530.dk\/wp-content\/uploads\/2022\/06\/IMG_20220604_140759-761x1024.jpg\" alt=\"\" class=\"wp-image-30\" srcset=\"https:\/\/www.9530.dk\/wp-content\/uploads\/2022\/06\/IMG_20220604_140759-761x1024.jpg 761w, https:\/\/www.9530.dk\/wp-content\/uploads\/2022\/06\/IMG_20220604_140759-1142x1536.jpg 1142w, https:\/\/www.9530.dk\/wp-content\/uploads\/2022\/06\/IMG_20220604_140759-1522x2048.jpg 1522w, https:\/\/www.9530.dk\/wp-content\/uploads\/2022\/06\/IMG_20220604_140759-223x300.jpg 223w, https:\/\/www.9530.dk\/wp-content\/uploads\/2022\/06\/IMG_20220604_140759-768x1033.jpg 768w, https:\/\/www.9530.dk\/wp-content\/uploads\/2022\/06\/IMG_20220604_140759-scaled.jpg 1903w\" sizes=\"(max-width: 761px) 100vw, 761px\" \/><\/figure>\n\n\n\n<div id=\"wppaypalcheckout-button-container-6a14463f4369c\" style=\"max-width: 300px;\"><input class=\"wppaypal_checkout_description_input\" type=\"hidden\" name=\"description\" value=\"test checkout product\" required><input class=\"wppaypal_checkout_amount_input\" type=\"hidden\" name=\"amount\" value=\"70\" required><div id=\"wppaypalcheckout-button-6a14463f4369c\" style=\"max-width: 300px;\"><\/div><\/div>    <script>\r\n    jQuery(document).ready(function() {\r\n            \r\n        function initPayPalButton6a14463f4369c() {\r\n            var description = document.querySelector('#wppaypalcheckout-button-container-6a14463f4369c .wppaypal_checkout_description_input');\r\n            var amount = document.querySelector('#wppaypalcheckout-button-container-6a14463f4369c .wppaypal_checkout_amount_input');\r\n            var checkoutvar = {};\r\n            var custom = \"\";\r\n            var variation = \"\";\r\n            var elArr = [description, amount];\r\n\r\n            var purchase_units = [];\r\n            purchase_units[0] = {};\r\n            purchase_units[0].amount = {};\r\n   \r\n            function validate(event) {\r\n                if(event.value.length === 0){\r\n                    return false;\r\n                }\r\n                if(event.name == \"amount\"){\r\n                    if(!isNaN(Number(event.value)) && Number(event.value) < 0.1){\r\n                        return false;\r\n                    }\r\n                }\r\n                if(event.name == \"custom\"){\r\n                    checkoutvar.custom = event.value;  \r\n                }\r\n                if(event.name == \"variation\"){\r\n                    var variation_arr = event.value.split(\"_\");\r\n                    if(typeof variation_arr[0] !== 'undefined'){\r\n                        checkoutvar.variation = variation_arr[0];\r\n                    }\r\n                    if(typeof variation_arr[1] !== 'undefined'){\r\n                        amount.value = variation_arr[1];\r\n                    }  \r\n                }\r\n                return true;\r\n            }\r\n            paypal.Buttons({\r\n                style: {\r\n                    layout: 'vertical',\r\n                    color: 'gold',\r\n                    shape: 'rect',\r\n                    label: 'paypal'\r\n                },\r\n                onInit: function (data, actions) {\r\n                    actions.disable();\r\n                    var validated = true;\r\n                    elArr.forEach(function (item) {\r\n                        if(!validate(item)){\r\n                            validated = false;    \r\n                        }\r\n                        item.addEventListener('change', function (event) {\r\n                            var result = elArr.every(validate);\r\n                            if (result) {\r\n                                actions.enable();\r\n                            } else {\r\n                                actions.disable();\r\n                            }\r\n                        });\r\n                    });\r\n                    if(validated){\r\n                        actions.enable();\r\n                    }\r\n                },  \r\n                \r\n                onClick: function () {\r\n                    purchase_units[0].description = description.value;\r\n                    purchase_units[0].amount.value = amount.value;\r\n                },    \r\n                    \r\n                createOrder: function(data, actions) {\r\n                    return actions.order.create({\r\n                        purchase_units: purchase_units,\r\n                            \r\n                    });\r\n                },\r\n                            \r\n                onApprove: function(data, actions) {\r\n                    return actions.order.capture().then(function(details) {\r\n                        var data = {\r\n                            'action': \"wppaypalcheckout_ajax_process_order\",\r\n                            'wppaypalcheckout_ajax_process_order': \"1\",\r\n                            'checkoutvar': checkoutvar,\r\n                            'details': details \r\n                        };  \r\n                        jQuery.ajax({\r\n                            url : \"https:\/\/www.9530.dk\/wp-admin\/admin-ajax.php\",\r\n                            type : \"POST\",\r\n                            data : data,\r\n                            success: function(response) {\r\n                                \r\n                            }\r\n                        });\r\n                    });\r\n                },\r\n                                    \r\n                onError: function (err) {\r\n                    console.log(err);\r\n                },\r\n                                    \r\n                onCancel: function (data) {\r\n                    \r\n                }\r\n                    \r\n            }).render('#wppaypalcheckout-button-6a14463f4369c');\r\n        }\r\n        initPayPalButton6a14463f4369c();\r\n    });                     \r\n    <\/script>        \n\n\n\n<p><strong><br><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JFMT 460-530, Lathe, Operations and Parts Manual PDF, 70,00&nbsp;USD This Manual Includes:Parts ListsOperation Manuals<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":22,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-34","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/pages\/34"}],"collection":[{"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":5,"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/pages\/34\/revisions"}],"predecessor-version":[{"id":586,"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/pages\/34\/revisions\/586"}],"up":[{"embeddable":true,"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/pages\/22"}],"wp:attachment":[{"href":"https:\/\/www.9530.dk\/index.php\/wp-json\/wp\/v2\/media?parent=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}