vendic/magento2-stock-change-after-payment 问题修复 & 功能扩展

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

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

vendic/magento2-stock-change-after-payment

Composer 安装命令:

composer require vendic/magento2-stock-change-after-payment

包简介

Magento 2 module to decrease/increase product stock after invoice/creditmemo creation event

README 文档

README

A simple Magento 2 extension that uses the sales_order_invoice_pay and sales_order_creditmemo_refund events to decrease/increase product quantity. It also adjusts the product stock status.

Default Magento 2

  1. An order is placed
  2. The product stock quantity is decreased with the ordered quantity
  3. Payment is made or canceled.
  4. Depending on this event it stays decreased (succesfull payment) or is added again (unsuccesfull payment)

Changes after using this module

  1. An order is placed
  2. The order is paid
  3. The product stock quantity is decreased with the ordered quantity

Result: stock is not decreased (reserved) for unpaid orders.

Installation

In vanilla Magento 2.2, the product stock is 'reserved' (substracted) when an order is placed, so we'll have to disable this system so we can replace it with our own.

  1. Set 'Decrease Stock When Order is Placed' to 'No' to disable. You can find it here: Stores > Inventory > Stock Options

  2. Install via composer:

comoser require vendic/magento2-stock-change-after-payment

About Vendic

Vendic - Magento 2 develops technically challenging e-commerce websites using Magento 2. Feel free to check out our projects on our website.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固