I am reporting what appears to be a bug with your cartflows solution. If any other plugin or custom code calls the
WC()->checkout()->get_checkout_fields()method before your action
cartflows_checkout_form_beforeis triggered, the email address field will appear twice on the checkout page using one of your custom checkout templates.
The reason for this is because when the
WC()->checkout()->get_checkout_fields()function is called, WC keeps a reference to the stored fields. If the function is called again, it returns the instance variable
$this->fieldsrather then running the checkout fields filter
Cartflows_Checkout_Markup::unset_fields_for_modern_checkoutmethod isn’t added to the filter sequence until the
cartflows_checkout_form_beforeaction is called, your filter for unsetting the billing email is never called, resulting in a duplicate email address being printed.
- You must be logged in to reply to this topic.