Archives: Snippets
MGID Head_in-article Widget
MGID Body_Smart Widget
MGID Head_Smart Widget
Can You Add More Product Types To The Product Search Boxes?
add_filter( ‘acfw_product_search_allowed_types’ , ‘support_booking_product_type_in_search’ ); function support_booking_product_type_in_search( $allowed_types ) { $allowed_types[] = ‘booking’; $allowed_types[] = ‘bundle’; $allowed_types[] = ‘composite’; return $allowed_types; }Continue reading
How to Restrict Coupons to a Certain User?
add_filter(‘acfwp_allowed_customers_error_message’,’Change_Text’); function Change_Text(){ return __( ‘Hey! You did not meet the requirements, reach out to us!.’); }Continue reading
How to Apply Coupon Coupon Based On Cart Item Meta
// define the woocommerce_after_cart callback function action_woocommerce_after_cart() { error_log(print_r(WC()->cart->get_cart_contents(), true)); }; // add the action add_action( ‘woocommerce_after_cart’, ‘action_woocommerce_after_cart’, 10, 1 );Continue reading
How to Use the Total Customer Spend Cart Condition (snippet 3)
Total Customer Spend On A Certain CategoryContinue reading
How to Use the Total Customer Spend Cart Condition (snippet 1)
Total Customer SpendContinue reading
What Shortcodes Can I Use in Advanced Gift Cards for WooCommerce?
[agcfw_gift_card_redeem_form]Continue reading