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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription Related Event Observer in Payment Module #764

Closed
ThomasNegeli opened this issue Mar 27, 2024 · 4 comments
Closed

Subscription Related Event Observer in Payment Module #764

ThomasNegeli opened this issue Mar 27, 2024 · 4 comments
Assignees
Labels
Fixed and planned for next release Fix will be included in the next release. Question / Issue Further information is requested

Comments

@ThomasNegeli
Copy link

Hi @Frank-Magmodules, what is the purpose of this event observer?
The observer is fired on reorder functionality, not when the subscription item is added to the cart.
This results in the fact that every order item becomes a subscription item in the reordered cart, if the underlying product has a subscription configuration but also allows one time purchases.
What is the usecase behind this functionality?

@Frank-Magmodules Frank-Magmodules self-assigned this Mar 28, 2024
@Frank-Magmodules Frank-Magmodules added the Question / Issue Further information is requested label Mar 28, 2024
@ThomasNegeli
Copy link
Author

ThomasNegeli commented Mar 28, 2024

This codepart is also not relevant if you do not have a subscription module in place https://github.com/mollie/magento2/blob/master/Plugin/Sales/AddRecurringData.php
I think it would be better to move this code to the mollie/magento2-subscription repository.
In our case, I had to disable the event observer and the plug-in, because some order_item configurations did not have the purchase attribute on the buyRequest JSON.

@Frank-Magmodules
Copy link
Collaborator

Hello again @ThomasNegeli, thank you for posting this question and observation on this.
I'll take care of it and provide you with a useful answer shortly!

@Frank-Magmodules Frank-Magmodules added the Fixed and planned for next release Fix will be included in the next release. label Apr 2, 2024
@Frank-Magmodules
Copy link
Collaborator

Hi There @ThomasNegeli ,

Thank you for your patience on this one. That this code lives in the main repository and not in the subscriptions repository is done on behalf of the request of a partner. This allows them to place subscription orders through their platform. Nevertheless, we've made an improvement on this issue that will be in the next release. I'll keep this issue open until then. Thanks again!

michielgerritsen added a commit to michielgerritsen/mollie-magento2 that referenced this issue Apr 18, 2024
@Frank-Magmodules
Copy link
Collaborator

Hi @ThomasNegeli , as promised we've addressed this in our newest release, v2.37.0. I'll mark this as resolved for now, but feel free to reach out if you need any more help. Thanks once again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed and planned for next release Fix will be included in the next release. Question / Issue Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants