Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
450 B
3
Indexable
Never
 add_action('woocommerce_new_order', 'webexpert_woocommerce_send_sms');

 function webexpert_woocommerce_send_sms($order_id)
    {
        $order = wc_get_order($order_id);
        $phone = $order->get_billing_phone();
        if ($order) {
            webexpert_woocommerce_send_sms("ΝΕΑ ΠΑΡΑΓΓΕΛΙΑ #{$order_id}αξίας " . $order->get_total() . ". Σας ευχαριστούμε!", $phone);
        }
        return $order_id;
    }
Leave a Comment