38 Snippets
<10 Favourites
<10 Downloads

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

ALP - Fix missing custom order status options

Fixing the bug in Advanced Loyalty Program v 1.9.2 of missing custom order status options.

How to Display Store Credits Earned in WooCommerce New Order Emails

Add this to your "New Orders" email template from WooCommerce > Settings > Emails

ACFW - Fix for fatal error on Add products tab with permanently deleted products

$guard = function( $add_products ) { if ( ! is_array( $add_products ) ) { return $add_products;…

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,…

1 2