Created
          July 12, 2025 06:52 
        
      - 
      
 - 
        
Save navnit-viradiya/704505a4424efca99807f489b902de5f to your computer and use it in GitHub Desktop.  
    Magento 2 patch create and apply
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Step 1: | |
| File to changed should be added to the git | |
| git add -f vendor/dotmailer/dotmailer-magento2-extension/Api/Data/CouponAttributeInterface.php | |
| Step 2: | |
| Then make the changes to the core file | |
| Step 3: | |
| After making the changes run | |
| git diff vendor/dotmailer/dotmailer-magento2-extension/Api/Data/CouponAttributeInterface.php > m2-hotfixes/webapi-fix.patch | |
| This creates the patch in m2-hotfixes | |
| Step4: | |
| Finally apply the patch | |
| git apply m2-hotfixes/webapi-fix.patch | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment