Bagisto Forum

    Bagisto

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

    Make sku not required?

    General Discussion
    2
    4
    591
    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.
    • G
      GetResults last edited by GetResults

      Is there a way to have it where the sku number is not required when adding a product? Our site is based off a quote system, so we do not need sku numbers

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

        Hello @GetResults

        For Create - > you need to make changes from the below file path

        https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Admin/src/Resources/views/catalog/products/index.blade.php

        required.png

        https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Admin/src/Http/Controllers/Catalog/ProductController.php

        required1.png

        For Edit - > Login to the Admin Panel and go to
        Attributes >> SKU >> Edit SKU as shown in the image below.

        sku.png

        Now Uncheck the checkbox of Is Required as shown below.

        editsku.png

        Now after this you are creating the product SKU field is mark as not required as shown below.

        output.png

        Thanks & Regards

        1 Reply Last reply Reply Quote 0
        • G
          GetResults last edited by

          When I do that, nothing happens when I click "save product" button on the model.

          Screenshot 2024-12-20 at 4.27.19 AM.png

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

            Hello @GetResults

            Kindly check out on the controller validation might be the issue is from there.

            Once check and let us know if you further facing any issues.

            Thanks & Regards

            1 Reply Last reply Reply Quote 0
            • First post
              Last post