Magento 2 to translation of variable is not working in cart page

I’m working on Magento 2.2.3 CE. I have faced one issue on the cart page while applying coupon code. The coupon code is applied properly. But cart summary it’s showing like Discount (%1) instead of Discount (coupon description) I have cross-checked the core file code vendor/magento/module-sales-rule/Model/Quote/Address/Total/ShippingDiscount.php /** * @inheritdoc * * @param \Magento\Quote\Model\Quote $quote *…

Extended Module for Subscription Newsletter in Magento 2

I have extend a module for subscription newsletter in magento 2 for change in NewAction.php file. After enabling the Module it doesn’t work As, i want to remove newsletter popup on subscription success. My di.xml file is <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”Magento\Newsletter\Controller\Subscriber” type=”News\Newslettermodule\Controller\Subscriber” /> </config> My module.xml file is <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”…

How to set only one default value not multiple in custom option in magento2

I want to set only one default option to the custom options value in the product level. How to add radio button instead of checkbox? When I will change checkbox to radio in Uicomponent file then get below error Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null…

How to set only one default value not multiple in custom option in magento2

I want to set only one default option to the custom options value in the product level. How to add radio button instead of checkbox? When I will change checkbox to radio in Uicomponent file then get below error Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null…

How to set only one default value not multiple in custom option in magento2

I want to set only one default option to the custom options value in the product level. How to add radio button instead of checkbox? When I will change checkbox to radio in Uicomponent file then get below error Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must be of the type array, null…