Thankyou page This template can be overridden by copying it to yourtheme/woocommerce/checkout/thankyou.php. HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer) will need to copy the new files to your theme to maintain compatibility. We try to do this as little as possible, but it does happen. When this occurs the version of the template file will be bumped and the readme will list any important changes.
Page de remerciement Ce modèle peut être remplacé en le copiant dans yourtheme/woocommerce/checkout/thankyou.php. CEPENDANT, il arrive que WooCommerce doive mettre à jour les fichiers du modèle et que vous (le développeur du thème) deviez copier les nouveaux fichiers dans votre thème pour maintenir la compatibilité. Nous essayons de le faire le moins possible, mais cela arrive. Lorsque cela se produit, la version du fichier de template sera augmentée et le readme listera les changements importants.
$order->get_id(
Sortie :
// Ajouter du contenu personnalisé sur la page de remerciement
add_action('woocommerce_thankyou', 'contenu_page_merci', 10, 1);
function contenu_page_merci($order_id) {
if (!$order_id) return;
$order = wc_get_order($order_id);
echo '';
echo 'Merci pour votre commande !
';
echo 'Votre commande #' . $order->get_order_number() . ' a été reçue.
';
echo '';
}
Chargement des actualités...