mikedubinsky/magento2-module-checkout-thumbnail 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mikedubinsky/magento2-module-checkout-thumbnail

最新稳定版本:V1

Composer 安装命令:

composer require mikedubinsky/magento2-module-checkout-thumbnail

包简介

Set a default thumbnail image for products in the cart

README 文档

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

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-07