jeudi 17 septembre 2020

Adding text to Woocommerce email bsed on payment method

I am aadding text to Woocommerce customer-processing email like this:

if ( 'bacs' == $order->get_payment_method() )    {
    echo "Text A";
}
elseif ( 'paypal' == $order->get_payment_method() )    {
    echo "Text B";
}
else { 
    echo "Text C";
}

No I need to add credit card to have Text B as well. How can I add this inside the elseif statement?

Aucun commentaire:

Enregistrer un commentaire