
{"id":1351,"date":"2026-10-23T14:52:40","date_gmt":"2026-10-23T14:52:40","guid":{"rendered":"https:\/\/moncanvasbd.com\/?page_id=1351"},"modified":"2026-10-24T14:21:25","modified_gmt":"2026-10-24T14:21:25","slug":"wholesale","status":"publish","type":"page","link":"https:\/\/moncanvasbd.com\/?page_id=1351","title":{"rendered":"Wholesale"},"content":{"rendered":"<h1>Wholesale Customer Portal<\/h1>\n<p>Apply for a wholesale customer account below. After approval, your wholesale customer ID will be used as your login username for wholesale ordering.<\/p>\n<h2>Wholesale Registration<\/h2>\n<p>Complete the registration form and submit your business details. Your account must be approved before wholesale pricing and ordering are enabled.<\/p>\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=\"\">Client 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   \/><\/span><\/p><p class=\"whols-form-row validate-required type--text\" id=\"reg_username_field\" data-priority=\"99\"><label for=\"reg_username\" class=\"\">UserID&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   \/><\/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   \/><\/span><\/p>\n                        <button type=\"submit\" name=\"reg_submit\" id=\"whols_reg_submit\" class=\"\" value=\"Register as a Wholesaler\">Register as a Wholesaler<\/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                        \/\/ Embedded fallback. On a page served from a full-page cache\n                        \/\/ this can be stale, which is exactly the bug the refresh\n                        \/\/ below fixes. Kept as-is so a failed refresh degrades to\n                        \/\/ today's behaviour rather than breaking the form outright.\n                        nonce           = '102fa03d0b',\n                        loading_message = 'Please Wait...';\n\n                    \/\/ Replace the embedded nonce with a fresh one. admin-ajax.php\n                    \/\/ requests are excluded from full-page caching by every major\n                    \/\/ caching plugin, so this response is never stale. If it fails\n                    \/\/ for any reason, `nonce` simply keeps its embedded value.\n                    $.ajax({\n                        type: 'POST',\n                        dataType: 'json',\n                        url: woocommerce_params.ajax_url,\n                        data: {\n                            action: 'whols_get_registration_nonce',\n                        },\n                    }).done(function( response ){\n                        if ( response && response.success && response.data && response.data.nonce ) {\n                            nonce = response.data.nonce;\n                        }\n                    });\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        \n<h2>Wholesale Customer Login<\/h2>\n<p>Approved wholesale customers can sign in here using their wholesale customer ID and password.<\/p>\n<div class=\"woocommerce\"><\/div>\n<p>After signing in, approved wholesale customers can browse wholesale prices and place wholesale orders. Retail customers will continue using the normal store checkout.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wholesale Customer Portal Apply for a wholesale customer account below. After approval, your wholesale customer ID will be used as your login username for wholesale ordering. Wholesale Registration Complete the registration form and submit your business details. Your account must be approved before wholesale pricing and ordering are enabled. Wholesale Customer Login Approved wholesale customers&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-1351","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/moncanvasbd.com\/index.php?rest_route=\/wp\/v2\/pages\/1351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moncanvasbd.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/moncanvasbd.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/moncanvasbd.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moncanvasbd.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1351"}],"version-history":[{"count":2,"href":"https:\/\/moncanvasbd.com\/index.php?rest_route=\/wp\/v2\/pages\/1351\/revisions"}],"predecessor-version":[{"id":1356,"href":"https:\/\/moncanvasbd.com\/index.php?rest_route=\/wp\/v2\/pages\/1351\/revisions\/1356"}],"wp:attachment":[{"href":"https:\/\/moncanvasbd.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}