Re: Magento 2 - What is the proper way to edit core file

@Aveeva ,

 

try https://mage2gen.com/

 

it has the following features and information you need::  

  • Api
  • Block
  • Cache
  • Category Attribute
  • Company Attribute (Magento Commerce)
  • Component
  • Configuration Type
  • Console Command
  • Controller
  • Crongroup
  • Cronjob
  • Customer Attribute
  • Customer(Section) Data
  • EAV Entity
  • EAV Attribute (custom)
  • GraphQl Endpoint
  • GraphQl Url Locator
  • Helper
  • Language
  • Model
  • Observer / Event
  • Payment Method
  • Plugin
  • Preference / Rewrite
  • Product Attribute
  • Product Type
  • Sales Attribute
  • Shipping Method
  • System / Config / Setting
  • Unit Test
  • Viewmodel
  • Widget

to override the block class you can use "Preference / Rewrite"

in this, you need to enter the class name which you want to override.

 

kindly Accept as a Solution! if this solves your issue and give Kudos!