• Resolved runner5

    (@runner5)


    Hi guys,

    I know the code is on 179, new-product-single-php; but where do I make the edit to the options?
    I am selling virtual products, Single and Bundles only – so need to remove two options. Help please? Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @runner5,

    In Dokan-lite only Simple products can be chosen. Since you have asked about variable products, virtual and Grouped (bundle) products, we are unable to provide any guidance. These exist in our pro plugin.

    This forum is only for the free plugin and the rules of this forum forbid us to provide any support for the pro plugin’s feature. Hope you can understand.

    Regards!

    i use this

    //delete types from woocomerce
    add_filter( 'product_type_selector', 'remove_product_types' );
    
    function remove_product_types( $types ){
        unset( $types['simple'] );
        unset( $types['grouped'] );
        //unset( $types['external'] );
        unset( $types['variable'] );
    
        return $types;
    }
    
    //delete types from dokan by jquery (no optimal)
    add_action( 'wp_head', 'dcms_my_custom_script' );
    function dcms_my_custom_script() {
      ?>
     <script>
      jQuery(document).ready(function($){
              $("#product_type option[value=simple], #product_type option[value=variable]").remove();
              $("#product_type option[value=grouped], #product_type option[value=variable]").remove();
             // $("#product_type option[value=external], #product_type option[value=variable]").remove();
              $("#product_type option[value=variable], #product_type option[value=variable]").remove();
       });
    </script>
      <?php
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editing/Removing Options on Product Variable’ is closed to new replies.