• Resolved anttiluokkanen

    (@anttiluokkanen)


    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.php in lines
    73: <?php if ( $order->get_billing_phone() && -=== strpos( $billing_address_formatted, $order->get_billing_phone() ) ) : ?>
    and
    105: <?php if ( $order->get_shipping_phone() && -=== 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

    The strpos conditional does not work like it should. I believe -1 === strpos() should be false === strpos() instead. At least this is how i made this work again.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shipping & billing phone numbers not visible in emails’ is closed to new replies.