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…
Disallow store credits if cart has subscription product
This snippet will remove the store credit option if the cart has a subscription product
Custom Restriction: Category-Specific Subtotal
Before saving the snippet, please update the three variables at the top of the function to…
Disallow point redemption if cart has subscription product.
This snippet will remove the point redemption option if the cart has a subscription product
Restrict Coupons by Shipping Methods
To find your exact shipping method IDs, you can use either of these quick methods: 1.…
Auto Generate Virtual Coupon After a Customer Completed an Order
/** * Generate a virtual coupon when order is completed. * * @param int $order_id Order…
ACFW - Invalidate coupons for products with certain custom meta data
add_filter( 'woocommerce_coupon_is_valid', function( $valid, $coupon, $discount ) { $excluded_channels = $coupon->get_meta( '_excluded_og_channels', true ); if (…
Customize Gift Card Code
/* Customize the generated Gift Card Code */ function agcfw_change_prefix() { return array( 'characters' => 'ABCDEFGHJKMNPQRSTUVWXYZ23456789',…
BOGO Coupons to refer to original subtotal
When a BOGO coupon has a minimum spend (Usage Restriction) configured, applying the coupon can incorrectly…
Customize Store Credit Accordion on Checkout Page
This snippet allows you to customize Store Credit Accordion on the Checkout Page
ACFW – Invalidate coupons based on a product's custom meta field using Custom Cart Item Meta
If you want to manage the restriction visually inside the Advanced Coupons Cart Conditions panel, you…
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