- Ce sujet contient 5 réponses, 5 participants et a été mis à jour pour la dernière fois par il y a 1 mois. , le
6 sujets de 1 à 6 (sur un total de 6)
6 sujets de 1 à 6 (sur un total de 6)
- Vous devez être connecté pour répondre à ce sujet.
WooFrance Dépannage et support WordPress WooCommerce › Forums › Forum de Support WooCommerce › Aider
J’étais en train de créer une nouvelle section panier, car je voulais changer le widget panier de woocommerce.
J’ai bien commencé, mais maintenant j’ai un problème avec le code du coupon, en donnant le php au chat gpt, je peux aller plus loin.
En fait, le code promo (existant et actif), une fois que j’ai cliqué sur le CTA de soumission du coupon, ne l’applique pas.
Un indice ?
====================Ensure your form correctly submits the coupon_code
and triggers WC()->cart->apply_coupon()
followed by WC()->cart->calculate_totals()
. Verify that WooCommerce’s AJAX coupon handler is properly hooked and that your JavaScript sends the request correctly. Check WooCommerce logs for errors, Retro Bowl test applying coupons manually in functions.php
, and confirm that the WooCommerce session is active.
All of these things come together to Chill Guy Clicker provide the ideal setting for relaxing: a warm, comforting one.
====================The io games present a diversity of online games with simple rules to players. Try to set a record on the real-time global leaderboard and have fun.
====================I recently encountered a similar issue while trying to apply a coupon code on my WooCommerce site. Despite following the usual steps, the discount wouldn’t reflect in the cart. After some digging, I realized that the AJAX request wasn’t properly hooked, causing the coupon application to fail silently. Checking WooCommerce logs helped me identify the problem, and ensuring the session remained active fixed it. For a fun break after debugging, I recommend trying out Block Blast – it’s a great way to unwind and enjoy some light entertainment.
====================