How to display newest to oldest customer orders in Graphql response Magento 2?

While you working with the Magento Customer Order GraphQl, You will fetch the order by GraphQl query customerOrders.

type Query {
    customerOrders: CustomerOrders @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Orders")
}

By Default, The Result of the customer orders will be displayed from the Older order to the newest order. Continue reading “How to display newest to oldest customer orders in Graphql response Magento 2?”

How to export products CSV in Magento 2 with queue consumer?

You can export products in Magento 2 from the admin panel.

You have to click from the Left sidebar navigation, System -> Export,

From the Export Settings Section, Just choose Entity Type as Products from the dropdown area. Continue reading “How to export products CSV in Magento 2 with queue consumer?”

How to get current environment type value for braintree payment method using programmatically magento?

We can get the current environment type value by programmatically checking the current mode setup in the admin configuration.

There will be two possible environment types sandbox and production.

You need to create a PHP Class to render the function to fetch the current environment mode value, Continue reading “How to get current environment type value for braintree payment method using programmatically magento?”