Bagisto Forum

    Bagisto

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

    Changing admin options, ex. hiding up-cells and few attribute options.

    Knowledge Base
    2
    8
    488
    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.
    • M
      marshalbagisto last edited by

      Hello everyone,

      I want to change a few admin options, ex. Hiding up-cells, cross-sell products and a few attribute options. Can anyone please guide me how to do that so that when I update Bagisto, changes are not going away?

      Thank you

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

        Hello @marshalbagisto

        To Hide Up Sells, Cross Sells, & Related products go to

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

        and comment the code from line number 148 to line number 163 as shown in the image below.

        jcsdcmk.png

        Thanks & Regards

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

          @Rishabh-Webkul
          Thanks for the response. I'm afraid, if I make these changes and in future if I update the Bagisto and its dependencies, would these changes be lost?

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

            Hello @marshalbagisto

            So when you are upgrading your Bagisto version in the future then make sure you simply un-comment the code from the same file while performing the Upgradation.

            Thanks & Regards

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

              @Rishabh-Webkul Is there a way to inherit these templates so that the update process goes smoothly? Because hiding cross-cells is a small thing but I have lot more changes and reminding them all would be a big thing.

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

                Hello @marshalbagisto

                If you make some changes in the core Bagisto then you need to override the files so that when you are performing Upgradation this won't create any issue at that time.

                So to override the view templates files kindly go through the below link.

                https://bagisto.com/en/how-to-override-view-files-in-bagisto/

                https://github.com/bagisto/bagisto/discussions/7599

                Thanks & Regards

                M 2 Replies Last reply Reply Quote 0
                • M
                  marshalbagisto @Rishabh-Webkul last edited by

                  @Rishabh-Webkul Thank you for the information

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

                    @Rishabh-Webkul This worked for me. Thank you.

                    Does this work for the datagrids too?
                    If yes, can you please share the syntax, if not, what is the best possible way to change a datagrid.

                    thank you again!

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