avstudnitz / AvS_ScopeHint2

Magento 2 module for displaying additional information in configuration
157 stars 33 forks source link

Move Path from comment to After Element HTML #35

Open NathanDayFE opened 1 year ago

NathanDayFE commented 1 year ago

resolves #33

NathanDayFE commented 1 year ago

@avstudnitz Any chance of having this PR reviewed?

NathanDayFE commented 1 year ago

@avstudnitz Apologies for double tagging but is there any chance of having this PR reviewed and merged?

lefte commented 9 months ago

Hello, future search engine result people such as myself! In case you get to this result via some form of a Magento error in management about Phrase and getText() as a string, know that this patch can fix your issue until @avstudnitz merges in this commit or fixes it another way. Here's how I solved it:

  1. Modify your composer.json file by adding the patch repository to the repositories section:
    "repositories": {
         "avsscopehintpatch": {
            "type": "git",
            "url": "https://github.com/NathanDayFE/AvS_ScopeHint2"
        },
        ...any other repos here
    }
  2. Require the package with this:
    "require": {
        "avstudnitz/scopehint2": "dev-comment-phrase#cb2cfa4",
        ....any other packages here
    }

    ℹ️ Note: The dev- in the package version is composer magic to let it know to use the branch instead of a release number, and the #cb2cfa4 is the hash of the specific commit in the new repo. The commit is not required, but I like to use it for specificity, and so you don't have to use composer clear-cache when new commits are added.

  3. Update composer using: composer upgrade avstudnitz/scopehint2
  4. Run bin/magento setup:upgrade to finalize
  5. Set yourself a calendar reminder to check back on this patch in a month to see if you can use the standard install instead because it's been officially patched in
  6. Enjoy Magento
  7. Repeat 5 & 6 as needed

Thanks again @NathanDayFE for the work on this patch!