Advanced Coupons Team
Member since March 2023
Generate a virtual coupon when order is completed.
This snippet will generate a new virtual coupon for a coupon that you've enabled virtual coupon…
Fix “Send to Friend” Field Visibility for Variable Gift Cards
This fix ensures the “Send to Friend” fields display correctly based on the selected variable gift…
Generate a virtual coupon when order is completed.
This snippet will generate a new virtual coupon for a coupon that you've enabled virtual coupon…
Remove the coupon section for orders that did not use any coupon.
add_action( 'woocommerce_email_before_order_table', 'conditionally_remove_coupon_section_from_email', 5, 4 ); function conditionally_remove_coupon_section_from_email( $order, $sent_to_admin, $plain_text, $email ) { if (…
Disallow store credits if cart has subscription product
This snippet will remove the store credit option if the cart has a subscription product
Disallow point redemption if cart has subscription product.
This snippet will remove the point redemption option if the cart has a subscription product
Auto Generate Virtual Coupon After a Customer Completed an Order
/** * Generate a virtual coupon when order is completed. * * @param int $order_id Order…
Customize Gift Card Code
/* Customize the generated Gift Card Code */ function agcfw_change_prefix() { return array( 'characters' => 'ABCDEFGHJKMNPQRSTUVWXYZ23456789',…
Customize Store Credit Accordion on Checkout Page
This snippet allows you to customize Store Credit Accordion on the Checkout Page
Changing Multiple Properties on Store Credit Accordion Checkout Page
This allows you to customize other parts of the Store Credit Accordion on the Checkout Page
How to Display Store Credits Earned in WooCommerce New Order Emails
Add this to your "New Orders" email template from WooCommerce > Settings > Emails
Block specific coupons during set hours
/** * Block specific coupons during set hours (1:00 PM - 3:00 PM) */ function block_coupon_during_specific_hours($valid,…