• Resolved yumumu

    (@yumumu)


    hi , 1:how to mark the virtual and Downloadable Default and then hide them ? i want my vendor sell downloadable product only .any code i can add to the snippet plugin?
    2:And how to hide the product type?
    Please give me the code and i can add them to the snippet .Thanks

    https://pasteboard.co/JKFWtjq.jpg

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @yumumu ,

    By modifying a few lines of code, you can set the Virtual and Downloadable product checked by default.

    Please navigate to wp-content > plugins > dokan-lite > templates > products > download-virtual.php and then replace the code of the download-virtual.php file with the below code,

    <div class="dokan-form-group dokan-product-type-container <?php echo esc_attr( $class ); ?>">
        <div class="content-half-part downloadable-checkbox">
            <label>
                <input type="checkbox" <?php checked( $is_downloadable, false ); ?> class="_is_downloadable" name="_downloadable" id="_downloadable"> <?php esc_html_e( 'Downloadable', 'dokan-lite' ); ?> <i class="fa fa-question-circle tips" aria-hidden="true" data-title="<?php esc_attr_e( 'Downloadable products give access to a file upon purchase.', 'dokan-lite' ); ?>"></i>
            </label>
        </div>
        <div class="content-half-part virtual-checkbox">
            <label>
                <input type="checkbox" <?php checked( $is_virtual, false ); ?> class="_is_virtual" name="_virtual" id="_virtual"> <?php esc_html_e( 'Virtual', 'dokan-lite' ); ?> <i class="fa fa-question-circle tips" aria-hidden="true" data-title="<?php esc_attr_e( 'Virtual products are intangible and aren\'t shipped.', 'dokan-lite' ); ?>"></i>
            </label>
        </div>
        <div class="dokan-clearfix"></div>
    </div>

    If you use Child Theme to override this file, then the directory of the file will be as follows, your child theme > dokan > products > download-virtual.php

    Please note that the multiple product types from the Frontend is a paid feature and as per the guideline of this forum, I am unauthorized to discuss any queries related to the paid version of the plugin since this forum is used to provide support for the free version of the plugins.

    If you need support for any paid feature, I would humbly request you to contact the support channel on our website.

    Thank You.

    • This reply was modified 4 years, 1 month ago by ryanntrahan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘hi , how to mark the virtual and Downloadable Default’ is closed to new replies.