How to Enable or Disable Reorders settings in Magento 2?

Magento 2 has native reorder functionality to enable or disable, Allow reorder at the store level, from store Configuration setting.

By Default Reorder is Enable for every Order.

You can manage reOrder at the store view level. You can allow reorder functionality in one store and disable it to the second store of the same website. Continue reading “How to Enable or Disable Reorders settings in Magento 2?”

Display Order Summary in Shipping Step of Checkout magento 2.

You can display Order Summary like Order total, subtotal, discount, and shipping charges on the first step (Shipping step) Of checkout page.

By Default, Order Summary in Shipping step is Disabled and it will be loaded through the abstract-total.js file of Checkout module. Continue reading “Display Order Summary in Shipping Step of Checkout magento 2.”

Write a fetchCol() Sql query in Magento 2.

Write a Mysql fetchCol() query using Magento standard way without using the Model file.

To Fetches the first column of all SQL result rows as an array.

Return Type: fetchCol() always returns as an array. Continue reading “Write a fetchCol() Sql query in Magento 2.”