How to Get Last Order id in Magento 2?

Magento 2 Get Last order in any page using Checkout Session. You can fetch Last order id of order by Magento\Checkout\Model\Session Object.

You need to create __construct( ) function for define dependency of Session Class Continue reading “How to Get Last Order id in Magento 2?”

How to import image using CSV in Magento 2?

Magento 2 Image import functionality is supported by Out of Box Magento. Its default Feature of Magento, you can import a list of product images via CSV from admin panel.

If you want to only import images for a product, You need to create a CSV file and add columns for different images.

Continue reading “How to import image using CSV in Magento 2?”

How product images are saved in database Magento 2?

A Product is the heart of any e-Commerce system, A product contains multiple information like Title, SKU, Price, Inventory, Images and so more details.

Let’s start with the Main point, A product has multiple images, and I will just explore how each product is stored in the database. Your confusion will be clear after reading the below details of the image saved in the database.

catalog_product_entity_varchar  used for store product image value.

Continue reading “How product images are saved in database Magento 2?”