Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

[5.x] Fix variant lookup in ProcessCheckout listener #139

Merged
merged 1 commit into from Nov 28, 2023

Conversation

duncanmcclean
Copy link
Owner

@duncanmcclean duncanmcclean commented Nov 28, 2023

This pull request fixes an issue with the ProcessCheckout listener where it would fail if the variant on the LineItem was an array (which it often is, strings are legacy).

This PR changes the code so it'll accept variant as both an array and a string. I've also adjusted the related test.

Fixes #138.

@duncanmcclean duncanmcclean changed the title Fix variant lookup in ProcessCheckout listener [5.x] Fix variant lookup in ProcessCheckout listener Nov 28, 2023
@duncanmcclean duncanmcclean merged commit 23a1a9a into 5.x Nov 28, 2023
5 of 8 checks passed
@duncanmcclean duncanmcclean deleted the fix/line-item-variants-are-often-arrays branch November 28, 2023 20:24
Copy link

Released as part of v5.1.2.

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

Successfully merging this pull request may close these issues.

Error when processign order with product variant(s)
1 participant