Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Disable type field

    General Discussion
    3
    6
    178
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      setarehchinha last edited by

      Hello
      How to edit or disable this type field?

      1.png

      ashish2409 1 Reply Last reply Reply Quote 0
      • ashish2409
        ashish2409 @setarehchinha last edited by

        @setarehchinha

        Hello,

        Are you referring to the mandatory fields that are required, and you don't want them to be mandatory?

        Can you please provide us with more details?

        S 1 Reply Last reply Reply Quote 0
        • S
          setarehchinha @ashish2409 last edited by

          @ashish2409 said in Disable type field:

          @setarehchinha

          Hello,

          Are you referring to the mandatory fields that are required, and you don't want them to be mandatory?

          Can you please provide us with more details?

          Yes, I want this section to be optional or to delete the type field, I don't need this field, I want it to be simple by default.

          1 Reply Last reply Reply Quote 0
          • Rishabh-Webkul
            Rishabh-Webkul last edited by

            Hello @setarehchinha

            If you want to disable this you can manage it from the given file path.

            packages >> Webkul >> Admin >> src >> Resources >> views >> catalog >> products >> index.blade.php

            hh  .png

            Thanks & Regards..!!

            S 1 Reply Last reply Reply Quote 0
            • S
              setarehchinha @Rishabh-Webkul last edited by

              @Rishabh-Webkul
              Thankful
              After deleting this section, the Save Product button does not work
              Except this section, which section should be corrected?
              1.png
              2.png

              S 1 Reply Last reply Reply Quote 0
              • S
                setarehchinha @setarehchinha last edited by

                In this way, I modified the code so that it is only one item and the problem is over

                									 <!-- Product Type -->
                									<x-admin::form.control-group>
                										<x-admin::form.control-group.label class="required">
                											@lang('admin::app.catalog.products.index.create.type')
                										</x-admin::form.control-group.label>
                
                										<x-admin::form.control-group.control
                											type="select"
                											name="type"
                											rules="required"
                											:label="trans('admin::app.catalog.products.index.create.type')"
                										>
                											<option value="simple" selected>
                												@lang(config('product_types.simple.name'))
                											</option>
                										</x-admin::form.control-group.control>
                
                										<x-admin::form.control-group.error control-name="type" />
                									</x-admin::form.control-group>
                
                
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post