What is correct way to override the field required error messages on custom form in Drupal 8?

I have installed clientside validation contributed module in my Drupal 8 Project. Now all client side validations are looking uniformed throughout the site. The only issue I am facing right now is about overriding Default error messages. I have googled about how to override but everywhere I am getting suggestion of removing #required = true…

Custom module send email with custom language

I made a custom module that send an email to my customers. app/code/Local/CustomEmail/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Local_CustomEmail’, __DIR__ ); app/code/Local/CustomEmail/etc/module.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”Local_CustomEmail” setup_version=”1.0.0″> </module> </config> app/code/Local/CustomEmail/etc/email_templates.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Email:etc/email_templates.xsd”> <template id=”myemail_email_template” label=”My Label” file=”custom_email.html” type=”html” module=”Local_CustomEmail” area=”frontend”/> </config> app/code/Local/CustomEmail/view/frontend/email/custom_email.html These emails should be sent by an external script…

Custom Background by Page IDs

I use TwentyTwent theme and want to change its background colour by page IDs. I’m not sure but when I check the functions.php, I see below lines which are related to background colours: // Custom background color. add_theme_support( ‘custom-background’, array( ‘default-color’ => ‘f5efe0’, ) ); // Add the background option. $background_color = get_theme_mod( ‘background_color’ );…

How to overrite cart subtotal price in order summary block magento2

can any one know that i want to update the price of the checkout page order summary Cart subtotal line. how can i do that ? knowckout file is render is subtotal.html : <tr class=”totals”> <th class=”mark” scope=”row” data-bind=”text: title”></th> <td class=”amount”> <span class=”price” data-bind =”text: getValue(), attr:{‘data-label’: title}”></span> <!– ko foreach: elems() –> <!–…