Trigger notification emails. Filter hook to modify the partially-refunded status conditions.
Déclencher des courriels de notification. Crochet de filtrage pour modifier les conditions de l'état de remboursement partiel.
$order->get_id(
Sortie :
@param bool $is_partially_refunded Whether the order is partially refunded. @param int $order_id The order id. @param int $refund_id The refund id.
// Action après remboursement complet
add_action('woocommerce_order_fully_refunded', 'apres_remboursement_complet', 10, 2);
function apres_remboursement_complet($order_id, $refund_id) {
$order = wc_get_order($order_id);
// Notifier le service client
// Mettre à jour le CRM
// Analyser les raisons de remboursement
$order->add_order_note('Commande entièrement remboursée.');
}
Chargement des actualités...