{"id":9,"date":"2023-02-14T06:06:02","date_gmt":"2023-02-14T06:06:02","guid":{"rendered":"https:\/\/staging.gdn\/digibuys\/my-account\/"},"modified":"2025-07-23T01:28:02","modified_gmt":"2025-07-23T01:28:02","slug":"my-account","status":"publish","type":"page","link":"https:\/\/staging.gdn\/digibuys\/my-account\/","title":{"rendered":"My account"},"content":{"rendered":"<div class=\"woocommerce\"><\/div>\n            \n                <div id=\"whols_user_reg_message\" class=\"whols_user_reg_message\">&nbsp;<\/div>\n                <div class=\"whols_registration_form\">\n                    <form action=\"whols_registration_action\">\n                        <p class=\"whols-form-row validate-required type--text\" id=\"reg_name_field\" data-priority=\"99\"><label for=\"reg_name\" class=\"\">Name&nbsp;<abbr class=\"required\" title=\"required\">*<\/abbr><\/label><span class=\"whols-input-wrapper\"><input type=\"text\" class=\"input-text \" name=\"reg_name\" id=\"reg_name\" placeholder=\"Your Name\"  value=\"\"   required=\"required\"   \/><\/span><\/p><p class=\"whols-form-row validate-required type--text\" id=\"reg_username_field\" data-priority=\"99\"><label for=\"reg_username\" class=\"\">Username&nbsp;<abbr class=\"required\" title=\"required\">*<\/abbr><\/label><span class=\"whols-input-wrapper\"><input type=\"text\" class=\"input-text \" name=\"reg_username\" id=\"reg_username\" placeholder=\"Your Username\"  value=\"\"   required=\"required\"   \/><\/span><\/p><p class=\"whols-form-row validate-required type--email\" id=\"reg_email_field\" data-priority=\"99\"><label for=\"reg_email\" class=\"\">Email&nbsp;<abbr class=\"required\" title=\"required\">*<\/abbr><\/label><span class=\"whols-input-wrapper\"><input type=\"email\" class=\"input-text \" name=\"reg_email\" id=\"reg_email\" placeholder=\"Your Email\"  value=\"\"   required=\"required\"   \/><\/span><\/p><p class=\"whols-form-row validate-required type--password\" id=\"reg_password_field\" data-priority=\"99\"><label for=\"reg_password\" class=\"\">Password&nbsp;<abbr class=\"required\" title=\"required\">*<\/abbr><\/label><span class=\"whols-input-wrapper\"><input type=\"password\" class=\"input-text \" name=\"reg_password\" id=\"reg_password\" placeholder=\"Your Password\"  value=\"\"   required=\"required\"   \/><\/span><\/p>\n                        <button type=\"submit\" name=\"reg_submit\" id=\"whols_reg_submit\" class=\"\" value=\"Register As Wholesaler\">Register As Reseller<\/button>\n                    <\/form>\n                <\/div>\n\n            \n            <script type=\"text\/javascript\">\n                jQuery(document).ready(function($) {\n                    \"use strict\";\n\n                    var button_id       = '#whols_reg_submit',\n                        nonce           = '2fd89c21cd',\n                        loading_message = 'Please Wait...';\n\n                    $( 'body' ).on('click', '#whols_reg_submit', function( event ){\n                        event.preventDefault();\n\n                        $( '#whols_user_reg_message' ).html( '<span class=\"whols_lodding_msg\">'+ loading_message +'<\/span>' ).fadeIn();\n\n                        $.ajax({\n                            type: 'POST',\n                            dataType: 'json',  \n                            url:  woocommerce_params.ajax_url,\n                            data: {\n                                action: \"whols_ajax_user_register\",\n                                nonce: nonce,\n                                fields: $('.whols_registration_form form').find(':input').serializeJSON({checkboxUncheckedValue: \"0\"}),\n                            },\n                            beforeSend: function(){\n                            },\n                            success: function( response ){\n                                if ( response.registerauth == true ){\n                                    var redirect_url = response.redirect_url;\n                                    $('#whols_user_reg_message').html('<div class=\"woocommerce\"><div class=\"woocommerce-notices-wrapper\"><div class=\"whols_success_msg woocommerce-message\" role=\"alert\">'+ response.message +'<\/div><\/div><\/div>').fadeIn();\n                                    $.scroll_to_notices( $( '[role=\"alert\"]' ) );\n\n                                    if( redirect_url.length ){\n                                        document.location.href = redirect_url;\n                                    }\n                                }else{\n                                    $('#whols_user_reg_message').html('<div class=\"woocommerce\"><div class=\"woocommerce-notices-wrapper\"><div class=\"whols_invalid_msg woocommerce-error\" role=\"alert\">'+ response.message +'<\/div><\/div><\/div>').fadeIn();\n                                    $.scroll_to_notices( $( '[role=\"alert\"]' ) );\n                                }\n                            },\n                            error: function( errorThrown ) {\n                                console.log(errorThrown);\n                            },\n                        });\n                    });\n                }); \/\/ document ready\n            <\/script>\n        ","protected":false},"excerpt":{"rendered":"<p>&nbsp; Name&nbsp;* Username&nbsp;* Email&nbsp;* Password&nbsp;* Register As Reseller<\/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-9","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/staging.gdn\/digibuys\/wp-json\/wp\/v2\/pages\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.gdn\/digibuys\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.gdn\/digibuys\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.gdn\/digibuys\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.gdn\/digibuys\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":0,"href":"https:\/\/staging.gdn\/digibuys\/wp-json\/wp\/v2\/pages\/9\/revisions"}],"wp:attachment":[{"href":"https:\/\/staging.gdn\/digibuys\/wp-json\/wp\/v2\/media?parent=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}