Skip to content

overrides

Auto Added by WPeMatico

overwrite 2 templates file by custom module, still loading the core files

I am using Magento 2.4.3p-1 I have 2 files vendor/Aw/Review/view/frontend/templates/email/review/request_form.phtml vendor/Aw/Review/view/frontend/email/review_reminder.html Since those 2 files in Magento core folder, I cannot just directly modify here. I did create 2 patches and they works fine. However, I have more need to… Read More »overwrite 2 templates file by custom module, still loading the core files

How to override Validation.xml from module-customer

I want to override vendor/magento/module-customer/etc/validation.xml This validation.xml in custom module. Baically I want to change below file location with my custom module file <rule name=”check_name”> <entity_constraints> <constraint alias=”name_validator” class=”MagentoCustomerModelValidatorName” /> </entity_constraints> </rule> This MagentoCustomerModelValidatorName with VendorModuleModelValidatorName If anyone have any… Read More »How to override Validation.xml from module-customer

Overriding a .phtml file in custom theme doesn’t work

I’ve been trying to override D:ProjectsPMM-M2public_htmlvendormagentomodule-checkoutviewfrontendtemplatessuccess.phtml by placing the file in my custom theme at location D:ProjectsPMM-M2public_htmlappdesignfrontendPerfectmakeupmirrorsargento-luxury-customMagento_Checkouttemplatessuccess.phtml. I need to change the line <p><?= $block->escapeHtml(__(‘We’ll email you an order confirmation with details and tracking info.’)) ?></p> to <p><?= $block->escapeHtml(__(‘Within 10… Read More »Overriding a .phtml file in custom theme doesn’t work