
Fixing Missing WooCommerce Smart Coupons Options in Avada Builder Custom Checkout
If you’re using Avada Builder to create a custom checkout page and notice that WooCommerce Smart Coupons gift card options are missing, you’re not alone. This issue specifically occurs when using Avada’s WooCommerce Checkout Billing Element, but there’s a simple fix that requires adding just one missing hook.
Understanding the Issue
When using the default WooCommerce checkout shortcode, Smart Coupons properly displays options like “send to me” or “send to friend” for gift cards. However, these options disappear when using Avada’s Checkout Billing Element in a Custom Checkout. This happens because Avada’s element is missing a WooCommerce hook that WooCommerce Smart Coupons relies on.
The Missing Hook
The core of the problem lies in a missing hook execution: ‘woocommerce_checkout_after_customer_details
‘. This hook is essential for Smart Coupons to inject its gift card recipient options into the checkout process. While Avada’s Checkout Billing Element provides most WooCommerce functionality, it doesn’t automatically trigger this specific hook.
The Solution
To restore the missing Smart Coupons functionality, you need to add a simple code snippet that connects Avada’s custom hook with WooCommerce’s native hook. Add this code to your child theme’s functions.php file:
What This Code Does
This code snippet creates a bridge between Avada’s checkout element and WooCommerce’s native hook system. When Avada’s checkout element reaches the ‘after customer details’ point, it now properly triggers WooCommerce’s corresponding hook, allowing Smart Coupons to display its gift card options.
Testing the Fix
- Add a gift card product to your cart
- Navigate to your custom checkout page
- Verify that the “send to me” and “Gift to Someone else” options now appear
- Test completing a gift card purchase
- Confirm that gift card emails are being sent correctly
Important Notes
- Always backup your site before adding any code
- This fix specifically addresses the WooCommerce Checkout Billing Element in Avada Builder
- Clear your site’s cache after implementing the fix
- The solution works with the latest versions of Avada, WooCommerce, and Smart Coupons
By implementing this simple hook connection, you can maintain your custom checkout design while ensuring all Smart Coupons functionality works as intended. This solution preserves the flexibility of Avada Builder while restoring the full capabilities of WooCommerce Smart Coupons in your checkout process.