New answers tagged

0

If you need to override ONLY some template just use <referenceBlock> in your module layout file. For example, you need to overwrite next template ORIGINAL TEMPLATE: vendor/magento/module-customer/view/frontend/templates/form/edit.phtml ORIGINAL LAYOUT: vendor/magento/module-customer/view/frontend/layout/customer_account_edit.xml ORIGINAL BLOCK in ...


1

Use template path hint to show the file path. This will show all the .phtml files used on page view. To enable template hints, your environment should be development Note: Do not enable template hint on live website Use this one to enable template path hints https://magento.stackexchange.com/a/91240/31910 Other way to find code is to use well known IDE like ...


0

In this case, your only option would be to create a subclass of Magento\Quote\Model\Quote\Item\CartItemPersister and implement your changes there. This can get messy when the parent class implements a lot of private methods which usually means that you need to copy the parent class to the subclass and then add your customizations on top.


0

I was able to solve it with a plugin instead of an override


Top 50 recent answers are included