• Resolved ghadirassadi

    (@ghadirassadi)


    I recently purchased WC vendor pro and I found that out, this powerful plugin doesn’t give you various options as WCFM Marketplace does. So far one of them is that Admin cannot add requiry and optional upload document field for vendors’ application.
    However they are few documents with small details regarding this issue and since I’m a beginner at html I was wondering if someone at least could explain me how I could use the following code in my vendor registration please.

    function wcv_doc_uploader( ){
    echo ‘<hr />’;
    echo ‘<h3>Document Uploader</h3>’;
    $value = get_user_meta( get_current_user_id(), ‘_wcv_custom_settings_doc_example’, true );
    WCVendors_Pro_Form_Helper::file_uploader( array(
    ‘id’ => ‘_wcv_custom_settings_doc_example’,
    ‘header_text’ => __(‘Document uploader’, ‘wcvendors-pro’ ),
    ‘add_text’ => __(‘Add document’, ‘wcvendors-pro’ ),
    ‘remove_text’ => __(‘Remove document’, ‘wcvendors-pro’ ),
    ‘file_meta_key’ => ‘_wcv_custom_settings_doc_example’,
    ‘save_button’ => __(‘Add document’, ‘wcvendors-pro’ ),
    ‘window_title’ => __(‘Select a document’, ‘wcvendors-pro’ ),
    ‘value’ => $value
    ), ‘document’
    );
    }

    I believe this code should be added in function.php but there must be more than that.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Upload file doc for vendor application’ is closed to new replies.