Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refunding and updating the inventory accordingly #216

Open
edoardolunardi opened this issue Sep 6, 2022 · 2 comments
Open

Refunding and updating the inventory accordingly #216

edoardolunardi opened this issue Sep 6, 2022 · 2 comments

Comments

@edoardolunardi
Copy link

Description

When refunding an order, I would expect the inventory of the items in the order to be updated accordingly.
Is this a feature of the plugin? If not, it would be really handy 馃

Steps to reproduce

  1. Place an order with using the stripe gateway
  2. Refund it in the orders section
  3. Inventory of purchased items is not updated

Additional info

  • Craft CMS version: 3.7.51
  • Stripe for Craft Commerce version: 2.4.3
  • PHP version: 8.1.9
  • Database driver & version: MySQL 8.0.30
@edoardolunardi
Copy link
Author

Any update on this?

@pdaleramirez
Copy link
Contributor

@edoardolunardi The feature is not yet supported, but you can hook into an event to update the item inventory. Use this event https://craftcms.com/docs/commerce/4.x/extend/events.html#afterrefundtransaction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants