How to add HTML content in notice for checkout form fields in Magento 2

I want to add some text below the Country field on checkout page. See below: I followed this answer: https://magento.stackexchange.com/a/240048/2358 It worked perfectly, but only issue with that is I am not able to add HTML content in code. I have added this code: $jsLayout[‘components’][‘checkout’][‘children’][‘steps’][‘children’][‘shipping-step’] [‘children’][‘shippingAddress’][‘children’][‘shipping-address-fieldset’][‘children’][‘country_id’][‘notice’] = ‘Should you wish for your purchase to be…

How to add HTML content in notice for checkout form fields in Magento 2

I want to add some text below the Country field on checkout page. See below: I followed this answer: https://magento.stackexchange.com/a/240048/2358 It worked perfectly, but only issue with that is I am not able to add HTML content in code. I have added this code: $jsLayout[‘components’][‘checkout’][‘children’][‘steps’][‘children’][‘shipping-step’] [‘children’][‘shippingAddress’][‘children’][‘shipping-address-fieldset’][‘children’][‘country_id’][‘notice’] = ‘Should you wish for your purchase to be…

How to add HTML content in notice for checkout form fields in Magento 2

I want to add some text below the Country field on checkout page. See below: I followed this answer: https://magento.stackexchange.com/a/240048/2358 It worked perfectly, but only issue with that is I am not able to add HTML content in code. I have added this code: $jsLayout[‘components’][‘checkout’][‘children’][‘steps’][‘children’][‘shipping-step’] [‘children’][‘shippingAddress’][‘children’][‘shipping-address-fieldset’][‘children’][‘country_id’][‘notice’] = ‘Should you wish for your purchase to be…

Create Customer custom attribute in magento 2.3

I need to create customer custom attribute as datetime in magento 2.3 Below is my code into Setup/Patch/Data/AddLastPasswordChangeCustomerAttribute.php with apply() funcation public function apply() { $this->moduleDataSetup->getConnection()->startSetup(); /** @var EavSetup $eavSetup */ $eavSetup = $this->eavSetupFactory->create([‘setup’ => $this->moduleDataSetup]); $eavSetup->addAttribute( \Magento\Customer\Model\Customer::ENTITY, ‘last_password_change’, [ ‘type’ => ‘varchar’, ‘label’ => ‘last_password_change’, ‘input’ => ‘text’, ‘source’ => ”, ‘frontend’ => ”,…

How to add HTML content in notice for checkout form fields in Magento 2

I want to add some text below the Country field on checkout page. See below: I followed this answer: https://magento.stackexchange.com/a/240048/2358 It worked perfectly, but only issue with that is I am not able to add HTML content in code. I have added this code: $jsLayout[‘components’][‘checkout’][‘children’][‘steps’][‘children’][‘shipping-step’] [‘children’][‘shippingAddress’][‘children’][‘shipping-address-fieldset’][‘children’][‘country_id’][‘notice’] = ‘Should you wish for your purchase to be…

Composer update error

I’m using Magento2.3 and when I am running composer update command, I got following error message: Could not apply patch! Skipping. The error was: Cannot apply patch patches/PRODSECBUG-2198-2.2-CE.composer-2019-03-27-06-12-19.patch It always shows composer trying to remove magento/module-catalog and failed to apply patches.

How to fillter Cart Price Rules by website id?

I want to get active sales rule which is valid and filter Cart Price Rules by website id as the store is multi-website so try using bellow code but getting an error My Code protected $sales_rule; protected $rule; protected $search_builder; protected $store; public function __construct(Template\Context $context,\Magento\SalesRule\Api\RuleRepositoryInterface $sales_rule,\Magento\Framework\Api\SearchCriteriaBuilder $search_builder, \Magento\SalesRule\Model\RuleFactory $rule,array $data = array(), \Magento\Framework\Api\SortOrderBuilder $sortOrderBuilder){…