Shipping & billing phone numbers not visible in emails
-
It seems that shipping phone & billing phone numbers are not attached into order emails. This happens at least with plugin version 4.1.1 and PHP 8.3.
In
/templates/fc/checkout-steps/emails/email-addresses.phpin lines73: <?php if ( $order->get_billing_phone() && -1 === strpos( $billing_address_formatted, $order->get_billing_phone() ) ) : ?>
and105: <?php if ( $order->get_shipping_phone() && -1 === strpos( $shipping_address_formatted, $order->get_shipping_phone() ) ) : ?>
https://plugins.trac.ww.wp.xz.cn/browser/fluid-checkout/trunk/templates/fc/checkout-steps/emails/email-addresses.php#L73
Thestrposconditional does not work like it should. I believe-1 === strpos()should befalse === strpos()instead. At least this is how i made this work again.
The topic ‘Shipping & billing phone numbers not visible in emails’ is closed to new replies.