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

add_payment_info event not fired #205

Open
DylanTeugels-r0663682 opened this issue Jan 4, 2024 · 1 comment
Open

add_payment_info event not fired #205

DylanTeugels-r0663682 opened this issue Jan 4, 2024 · 1 comment

Comments

@DylanTeugels-r0663682
Copy link

Hey!

In the payment step of the checkout, when selecting a payment method. the event add_payment_info should be fired but doesn't. Anyway, the debugger does reach \Yireo\GoogleTagManager2\DataLayer\Event\AddPaymentInfo::get.

When I cancel the checkout and go back to the plp, the event is fired when I add a product to my cart.

@jissereitsma
Copy link
Collaborator

In a clean Magento environment this does not seem to be an issue. So logic tells that this could be related to a specific extension. Are there any additional extensions installed that could be conflicting here? For instance, you could review if any of the RequireJS mixins are properly set. Note that setting the payment method in the browser does NOT trigger anything, because at that moment nothing has been added to the quote yet. Instead, you'll need to wait until the browser posts data back to the server, which means that either at the press of the mouse button or on the success page all data is set. Note that the GA event add_payment_info is not equal to an imaginary select_payment_method_in_ui event.

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

No branches or pull requests

2 participants