How to set Payment additional data in Magento 2?

Magento 2 You can set additional data in payment using setAdditionalData( ) method defined under Quote Module Payment.php class.

Magento\Quote\Model\Quote\Payment class used for set payment related data from quote to order. This class is used for set payment method, additional data, and other payment-related data to Order.

Continue reading “How to set Payment additional data in Magento 2?”

What is the use of Magento\Framework\View\Element\Text\ListText class in Magento 2?

Magento 2 You can see ListText class at Magento\Framework\View\Element\Text\ListText location.

ListText class file used to Render the HTML output.
When you go to ListText file, You can see the syntax under the toHtml() function, Continue reading “What is the use of Magento\Framework\View\Element\Text\ListText class in Magento 2?”

How to create dropdown select type category attribute programmatically in magento 2?

Magento 2, You can create a custom category attribute with a list of CMS blocks in the dropdown field.

The module is simply residing in the app/code folder of the Magento instance.

For example, We kept the Package name as Rbj and the Module name as CategoryAttribute.
You can keep any name for Packagename/Module name. In our demo, we have kept the Module name as Rbj_CategoryAttribute. Continue reading “How to create dropdown select type category attribute programmatically in magento 2?”