How to remove product types from product-types.php?

  • I don't want to offer all product types, how can I override product-types.php so that only my specified product types display on the Add Product page?

  • Hello @bagdev ,

    Yes you only need to override the product create pages after that in that pages put the condition for not showing your product soo you need to put
    that conditioon

    @if ($key != 'simple')
           <option value="{{ $key }}" {{ request()->input('type') == 
            $productType['key'] ? 'selected' : '' }}>
                        {{ $productType['name'] }}

    into the product create dropdown.


Log in to reply