HISE Logo Forum
    • Categories
    • Register
    • Login

    Woocommerce License Manager - Bulk Edit

    Scheduled Pinned Locked Moved General Questions
    18 Posts 6 Posters 511 Views
    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.
    • DanHD
      DanH
      last edited by

      I need to update a few hundred licenses. There doesn't seem to be a good option within the License Manager plugin (that we all use), nor a 3rd Party plug-in to help with this.

      So I've gone into myPHP and grabbed a csv export of the database. So far so good, I can edit what I need to and resave the csv.

      But.... Before I nuke my license database does anyone have any experience of this kind of thing?

      What am I getting myself into? Is it safe to import a new table into the database? Is a csv file even a table? Will I duplicate the licenses? Help!!! 😆

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      ustkU d.healeyD 2 Replies Last reply Reply Quote 0
      • ustkU
        ustk @DanH
        last edited by

        @DanH Not really experienced, but I'd do it in a staging environment to first test if the changes are working as you want

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 1
        • d.healeyD
          d.healey @DanH
          last edited by

          @DanH what change do you need to make?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          DanHD 1 Reply Last reply Reply Quote 0
          • DanHD
            DanH @d.healey
            last edited by

            @d-healey I need to increase the maximum amount of activations. Super simple. I'm just scared of importing the edited file back into the system.

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            d.healeyD Dan KorneffD 2 Replies Last reply Reply Quote 0
            • d.healeyD
              d.healey @DanH
              last edited by

              @DanH I'd do it with a php script, but I'd still test it on a separate test server as @ustk recommends.

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              1 Reply Last reply Reply Quote 0
              • Dan KorneffD
                Dan Korneff @DanH
                last edited by

                @DanH for these things I'm editing the database directly with phpmyadmin. Definitely backup your database beforehand.

                Dan Korneff - Producer / Mixer / Audio Nerd

                DanHD 1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @Dan Korneff
                  last edited by

                  @Dan-Korneff I've got 400 lines to edit - is there a practical way to do it in myPHPAdmin?

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  Matt_SFM Dan KorneffD 2 Replies Last reply Reply Quote 0
                  • Matt_SFM
                    Matt_SF @DanH
                    last edited by

                    @DanH you can do it using a SQL command ('UPDATE') . I'm not an expert but you can easily Google it.

                    Develop branch
                    Win10 & VS17 / Ventura & Xcode 14. 3

                    DanHD 1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @Matt_SF
                      last edited by DanH

                      @Matt_SF Thanks, I'm going to abort, seems too risky!

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      Matt_SFM 1 Reply Last reply Reply Quote 0
                      • Matt_SFM
                        Matt_SF @DanH
                        last edited by

                        @DanH Test it on a staging environment! You can then decide to do it or not 😛

                        Develop branch
                        Win10 & VS17 / Ventura & Xcode 14. 3

                        oskarshO 1 Reply Last reply Reply Quote 0
                        • oskarshO
                          oskarsh @Matt_SF
                          last edited by

                          @Matt_SF real devs only test on production.

                          My advice is to test on a Friday evening as well and take the weekend off

                          HISE Developer for hire :)

                          DanHD 1 Reply Last reply Reply Quote 3
                          • DanHD
                            DanH @oskarsh
                            last edited by

                            @oskarsh 😆

                            @Matt_SF I just can't be bothered to set it up. Did it manually.

                            Out of interest what's the best method to set up a staging area?

                            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                            https://dhplugins.com/ | https://dcbreaks.com/
                            London, UK

                            d.healeyD oskarshO Matt_SFM 3 Replies Last reply Reply Quote 0
                            • d.healeyD
                              d.healey @DanH
                              last edited by

                              @DanH said in Woocommerce License Manager - Bulk Edit:

                              Out of interest what's the best method to set up a staging area?

                              I just have a clone of my server running on my proxmox system. Some web hosts provide a dedicated staging system that allows you to test changes before automatically pushing them to the live server, I prefer to do it manually though.

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              1 Reply Last reply Reply Quote 0
                              • oskarshO
                                oskarsh @DanH
                                last edited by oskarsh

                                @DanH
                                If you have a decent hoster you can just hit the staging button and it automatically copy over your setup to a new server.

                                If this is not available for you. Contact support and get a new dedicated server migrated by them professionally.

                                If none of these are available you will need to buy a new WP hosting package, then use one of the numerous export Wordpress plugins to that will export all your wordpress setup and data. Install the same plugin on the new clean wordpress and import your setup.

                                CAUTION - please do good research for the export plugin here since you are dealing with customer data, this will also probably cost some money.

                                @d-healey my recommendation is usually not to do this manually. In your case its fine since its a super minimal setup with good plugin choice but for the average wordpress user it causes more trouble.

                                HISE Developer for hire :)

                                d.healeyD 1 Reply Last reply Reply Quote 0
                                • d.healeyD
                                  d.healey @oskarsh
                                  last edited by

                                  @oskarsh said in Woocommerce License Manager - Bulk Edit:

                                  use one of the numerous export Wordpress plugins to that will export all your wordpress setup and data

                                  If you're going this route then follow this video - https://www.youtube.com/watch?v=tIurrwfsCOg&t=22s

                                  Libre Wave - Freedom respecting instruments and effects
                                  My Patreon - HISE tutorials
                                  YouTube Channel - Public HISE tutorials

                                  1 Reply Last reply Reply Quote 1
                                  • Matt_SFM
                                    Matt_SF @DanH
                                    last edited by

                                    @DanH i've had this plugin for quite some time, because my host back then didn't offer a staging environment, and I was a complete beginner 😅 : https://wpvivid.com/
                                    I don't use it to push the changes I'm making, but it's a wp plugin so it's an easy-to-use solution

                                    Develop branch
                                    Win10 & VS17 / Ventura & Xcode 14. 3

                                    1 Reply Last reply Reply Quote 0
                                    • Dan KorneffD
                                      Dan Korneff @DanH
                                      last edited by

                                      @DanH you can do it with a single line of code. Do you know the table and key you want to change?

                                      Dan Korneff - Producer / Mixer / Audio Nerd

                                      DanHD 1 Reply Last reply Reply Quote 0
                                      • DanHD
                                        DanH @Dan Korneff
                                        last edited by

                                        @Dan-Korneff I've got the name of the table yep. I need to change the maximum activation amount on a specific product id.

                                        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                                        https://dhplugins.com/ | https://dcbreaks.com/
                                        London, UK

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

                                        11

                                        Online

                                        1.7k

                                        Users

                                        11.8k

                                        Topics

                                        102.4k

                                        Posts