Need to create multiple Custom Options programatically

I want to create some custom option by code, and my code is not working properly, I have an issue it, is creating only one option that is on the last index of options array and having all values of other options. Here is my code: In event.xml- <event name=”catalog_product_save_after”> <observer name=”add_product_custom_options” instance=”Custom\Addon\Observer\ProductOptions\ManualCreate” /> </event>…

The page isn’t redirecting properly

I have been trying to intercept a page request from /node/nid which is of type the_content_type and then appending some facet query parameters to it which is something like this ?f[0]=city%3A160&f[1]=country%3A48. The purpose is to preselect the facet options from that page. Here is the subscriber class I have written so far <?php namespace Drupal\custom_module\EventSubscriber;…

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…