mikedubinsky/magento2-module-checkout-thumbnail

Set a default thumbnail image for products in the cart

V1 2023-08-07 02:53 UTC

This package is auto-updated.

Last update: 2025-06-07 07:24:25 UTC


README

Magento 2 module for setting a fallback/default thumbnail image in the cart's items

Supported Magento Versions Latest Stable Version PHP 8+

Table of contents

Summary

This module will help make sure that all items in the customer's checkout process have a thumbnail image.

If your thumbnail images are working correctly in your Magento checkout, then you probably don't need this extension.

Purpose

The product images are loaded to window.checkoutConfig.imageData when /checkout is visited.

If you are adding a product during the checkout process programmatically, then its image may not show up until a page refresh.

This package solves that, by at least providing the "Product Image Placeholder (Thumbnail)", or the specific image of your choosing as a fallback option.

Installation

composer require mikedubinsky/magento2-module-checkout-thumbnail
bin/magento module:enable Dubslack_CheckoutThumbnail
bin/magento setup:upgrade

Usage

Simply installing this module ensures that in the absence of a thumbnail image, Magento's placeholder image is used, but you may further configure this extension:

Configuring Your Own Thumbnail Image

To configure your own thumbnail , visit **Admin > Stores > Settings > Configuration > Sales > Checkout > Checkout Item Thumbnail. Here you can:

  • Upload your own image
  • Specify width, height, and alternate text

Future

Submit an issue if you have a feature request that you want me to add, but I also have the following ideas in mind:

  • build on this extension to dynamically look up and store an array of product images
  • have an option to FORCE THUMBNAIL incase someone wants to simply override existing thumbnails

License

MIT