Multi-step checkout and removing payment methods
-
Hi Theme Devs,
I recently had a merchant reach out regarding several issues while using Woostify and my plugin Stripe for WooCommerce
After doing some research I have discovered the issues are related to how Woostify creates a reference to
ul.wc_payment_methods
on page load and then removes the element from the DOM. This has the affect of breaking any event handlers that were referencing the original DOM node before it was removed. When Woostify detects it is the payment section, that html is inserted into the DOM.Here are the issues outlined in detail:
1. The Stripe plugin relies on select2 to render saved payment methods for returning customers and the Woostify functionality is preventing the select2 drop down from working due to these orphaned events.
2. Stripe relies on dynamically inserted iFrames. When Woostify removes the DOM element, the Stripe reference to the parent container is lost resulting in inconsistent behavior and error messages when customers attempt to place their order.
Kind Regards,
- The topic ‘Multi-step checkout and removing payment methods’ is closed to new replies.