HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: //home/salamatk/www/wp-content/plugins/woodmart-plus/template/dokan/update-customer-to-vendor.php
<?php
/**
 * Dokan Update Customer to Vendor Template.
 *
 * @since 3.7.21
 *
 * @var int    $user_id
 * @var string $first_name
 * @var string $last_name
 * @var string $shop_url
 * @var string $show_toc
 * @var string $shop_name
 * @var string $phone
 * @var string $toc_page_id
 */
?>
<div class="white_card">
    <h2><?php esc_html_e( 'بروزرسانی حساب فروشنده', 'woodmartplus' ); ?></h2>
    <form method="post" action="" class="update-customer-to-vendor register">
        <div class="dokan-become-seller">
            <div class="items_container--2">
                <div class="solid_input">
                    <label for="first-name"><?php esc_html_e( 'نام', 'woodmartplus' ); ?> <span class="required">*</span></label>
                    <input type="text" class="input-text form-control" name="fname" id="first-name" value="<?php echo esc_attr( $first_name ); ?>" required="required" />
                </div>
                <div class="solid_input">
                    <label for="last-name"><?php esc_html_e( 'نام خانوادگی', 'woodmartplus' ); ?> <span class="required">*</span></label>
                    <input type="text" class="input-text form-control" name="lname" id="last-name" value="<?php echo esc_attr( $last_name ); ?>" required="required" />
                </div>
            </div>

            <div class="solid_input">
                <label for="company-name"><?php esc_html_e( 'نام فروشگاه', 'woodmartplus' ); ?> <span class="required">*</span></label>
                <input type="text" class="input-text form-control" name="shopname" id="company-name" value="<?php echo esc_attr( $shop_name ); ?>" required="required" />
            </div>

            <div class="items_container--2">
                <div class="solid_input">
                    <label for="seller-url" class="pull-left"><?php esc_html_e( 'لینک فروشگاه (URL)', 'woodmartplus' ); ?> <span class="required">*</span></label>
                    <strong id="url-alart-mgs" class="pull-right"></strong>
                    <input type="text" class="input-text form-control" name="shopurl" id="seller-url" value="<?php echo esc_attr( $shop_url ); ?>" required="required" />
                    <small><?php echo home_url() . '/' . dokan_get_option( 'custom_store_url', 'dokan_general', 'store' ); ?>/<strong id="url-alart"></strong></small>
                </div>

                <div class="solid_input">
                    <label for="shop-phone"><?php esc_html_e( 'شماره موبایل', 'woodmartplus' ); ?><span class="required">*</span></label>
                    <input type="text" class="input-text form-control" name="phone" id="shop-phone" value="<?php echo esc_attr( $phone ); ?>" required="required" />
                </div>
            </div>

            <?php
            /**
             * Hook for adding fields after vendor migration.
             *
             * @since 3.7.21
             */
            do_action( 'dokan_after_seller_migration_fields' );

            if ( $show_toc === 'on' && ! empty( $toc_page_id ) ) {
                $toc_page_url = get_permalink( $toc_page_id );
                ?>
                <p class="form-row form-group form-row-wide">
                    <input class="tc_check_box" type="checkbox" id="tc_agree" name="tc_agree" required="required">
                    <label style="display: inline" for="tc_agree">
                        <?php
                        $tc_link = sprintf( '<a target="_blank" href="%1$s">%2$s</a>', esc_url( $toc_page_url ), __( 'قوانین و مقررات', 'woodmartplus' ) );
                        // translators: 1. Terms and conditions of agreement link.
                        echo sprintf( __( 'قوانین را خوانده و موافق هستم %1$s.', 'woodmartplus' ), $tc_link );
                        ?>
                    </label>
                </p>
            <?php } ?>

            <div class="justify_start">
                <?php wp_nonce_field( 'account_migration', 'dokan_nonce' ); ?>
                <input type="hidden" name="user_id" value="<?php echo esc_attr( $user_id ); ?>">
                <input type="submit" class="btn solid medium" name="dokan_migration" value="<?php esc_attr_e( 'فروشنده شوید', 'woodmartplus' ); ?>" />
            </div>
        </div>
    </form>

    <script>
        (function($) {
            // Sanitize phone input characters.
            $( 'form.update-customer-to-vendor.register input#shop-phone' ).on( 'keydown', dokan_sanitize_phone_number );
        })(jQuery);
    </script>
</div>