2

I have made changes in,

Magento/vendor/magento/module-checkout/Model/PaymentInformationManagement.php

I have made changes in above file, But how can I commit these changes and PUSH it to Magento cloud as it will not show in git diff.

Any idea how to push changes of vendor DIR files on Magento Cloud ?

Note : I don't want to override in my app directory as it is bug and I want fix it in direct file.

5

Changing file(s) in vendor directly is not a best practice. It's better if you create a patch for the changes, and apply the patch in your Magento Cloud.

To better understanding on how to create and apply patch, see this link.

  • Thanks for the answer :) Is it possible if I want to apply a patch for small amount of time and then remove it from server (Then How can I remove the patch ?) – Aditya Shah Sep 19 at 18:44
  • 1
    It depends on how you apply the patch. For example, if you use git apply <file.patch>, you can remove the patch using git apply -R <file.patch> – Rendy Eko Prastiyo Sep 19 at 18:47
  • 1
    Use the m2-hotfixes folder for your patches: devdocs.magento.com/guides/v2.3/cloud/project/… – BaDos Sep 30 at 20:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.