{"id":13202,"date":"2024-07-18T23:41:10","date_gmt":"2024-07-18T16:41:10","guid":{"rendered":"https:\/\/staging.korika.id\/membership-levels\/"},"modified":"2024-08-03T17:20:08","modified_gmt":"2024-08-03T10:20:08","slug":"register","status":"publish","type":"page","link":"https:\/\/korika.id\/en\/register\/","title":{"rendered":"Register Membership"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div data-vc-full-width=\"true\" data-vc-full-width-init=\"false\" data-vc-parallax=\"1.5\" data-vc-parallax-image=\"https:\/\/korika.id\/wp-content\/uploads\/2024\/08\/pexels-cottonbro-3825310-scaled.jpg\" class=\"vc_row wpb_row vc_row-fluid slide_top vc_custom_1722617001300 vc_row-has-fill vc_general vc_parallax vc_parallax-content-moving\"><div class=\"patter_bg\" style=\"background-color:rgba(0,0,0,0.48)\" ><\/div><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"vc_row wpb_row vc_inner vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-8\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><h2 style=\"font-size: 45px;color: #ffffff;line-height: 60px;text-align: left\" class=\"vc_custom_heading vc_do_custom_heading fw-bold text-capitalize wpb_animate_when_almost_visible wpb_fadeInLeft fadeInLeft\" >MEMBERSHIP<\/h2><div class=\"vc_empty_space\"   style=\"height: 20px\"><span class=\"vc_empty_space_inner\"><\/span><\/div><h6 style=\"font-size: 23px;color: #ffffff;line-height: 30px;text-align: left\" class=\"vc_custom_heading vc_do_custom_heading wpb_animate_when_almost_visible wpb_fadeInLeft fadeInLeft\" >Mari bergabung dalam keanggotaan KORIKA<\/h6><\/div><\/div><\/div><div class=\"wpb_column vc_column_container vc_col-sm-4\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><div class=\"vc_row-full-width vc_clearfix\"><\/div><div class=\"vc_row wpb_row vc_row-fluid membership-item-container vc_custom_1722624410545\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"ova_heading\"><h3 class=\"title\">TIPE MEMBERSHIP<\/h3><div class=\"sub_title\">Berikut beberapa pilihan tipe membership yang dapat anda pilih<\/div><\/div><div class=\"vc_empty_space\"   style=\"height: 65px\"><span class=\"vc_empty_space_inner\"><\/span><\/div>        <div id=\"product-list\">\n            <!-- Product list will be loaded here -->\n        <\/div>\n\n        <div id=\"variant-list\" style=\"display:none;\">\n            <!-- Variant list will be loaded here -->\n        <\/div>\n\n        <script>\n            jQuery(document).ready(function($) {\n                \/\/ Load product list\n                $.ajax({\n                    url: 'https:\/\/korika.id\/wp-admin\/admin-ajax.php',\n                    type: 'POST',\n                    data: {\n                        action: 'load_product_list',\n                        category_id: '172'\n                    },\n                    success: function(response) {\n                        if (response.success) {\n                            $('#product-list').html(response.data);\n                        } else {\n                            $('#product-list').html('<p>No products found.<\/p>');\n                        }\n                    }\n                });\n\n                \/\/ Handle product click\n                $(document).on('click', '.product-card', function() {\n                    var productId = $(this).data('product-id');\n\n                    $.ajax({\n                        url: 'https:\/\/korika.id\/wp-admin\/admin-ajax.php',\n                        type: 'POST',\n                        data: {\n                            action: 'load_variant_list',\n                            product_id: productId\n                        },\n                        success: function(response) {\n                            if (response.success) {\n                                $('#variant-list').html(response.data).show();\n                                $('#product-list').hide();\n                            } else {\n                                $('#variant-list').html('<p>No variants found.<\/p>').show();\n                            }\n                        }\n                    });\n                });\n\n                \/\/ Handle variant click\n                $(document).on('click', '.variant-card', function() {\n                    var variantId = $(this).data('variant-id');\n\n                    \/\/ Empty the cart first\n                    $.ajax({\n                        url: 'https:\/\/korika.id\/wp-admin\/admin-ajax.php',\n                        type: 'POST',\n                        data: {\n                            action: 'empty_cart'\n                        },\n                        success: function(response) {\n                            if (response.success) {\n                                \/\/ Redirect to cart page with add-to-cart parameter\n                                window.location.href = 'https:\/\/korika.id\/en\/cart\/?add-to-cart=' + variantId + '&redirect-to-checkout=true';\n                            } else {\n                                alert('Failed to empty cart. Please try again.');\n                            }\n                        }\n                    });\n                });\n\n                \/\/ Handle back button click\n                $(document).on('click', '#back-to-product-list', function() {\n                    $('#variant-list').hide();\n                    $('#product-list').show();\n                });\n            });\n        <\/script>\n\n        <\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"MEMBERSHIPMari bergabung dalam keanggotaan KORIKATIPE MEMBERSHIPBerikut beberapa pilihan tipe membership yang dapat anda pilih","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"pmpro_default_level":"","footnotes":""},"class_list":["post-13202","page","type-page","status-publish","hentry","pmpro-has-access"],"acf":[],"_links":{"self":[{"href":"https:\/\/korika.id\/en\/wp-json\/wp\/v2\/pages\/13202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/korika.id\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/korika.id\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/korika.id\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/korika.id\/en\/wp-json\/wp\/v2\/comments?post=13202"}],"version-history":[{"count":6,"href":"https:\/\/korika.id\/en\/wp-json\/wp\/v2\/pages\/13202\/revisions"}],"predecessor-version":[{"id":13715,"href":"https:\/\/korika.id\/en\/wp-json\/wp\/v2\/pages\/13202\/revisions\/13715"}],"wp:attachment":[{"href":"https:\/\/korika.id\/en\/wp-json\/wp\/v2\/media?parent=13202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}