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?”

Magento Export Products CSV: Message is added to queue, wait to get your file soon. Make sure your cron job is running to export the file.

You can export the products CSV from Magento but while you try to export the specific product CSV you got notifications like,

Message is added to queue, wait to get your file soon. Make sure your cron job is running to export the file.

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 “Magento Export Products CSV: Message is added to queue, wait to get your file soon. Make sure your cron job is running to export the file.”

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?”