WooCommerce

Auto-Complete VIRTUAL WooCommerce Orders and Still send Processing Email

add_action('woocommerce_order_status_changed', 'ts_auto_complete_virtual'); function ts_auto_complete_virtual($order_id) { if ( ! $order_id ) { return; } global $product; $order = wc_get_order( $order_id ); if ($order->data['status'] == 'processing') { $virtual_order = null; if ( count( $order->get_items() ) > 0 ) { foreach( $order->get_items() as $item ) { if ( 'line_item' == $item['type'] ) { $_product = $order->get_product_from_item( $item ); […]

WooCommerce Purchase With Credits

This plugin allows you to have people accumulate credits in their accounts and then spend those credits on purchases. https://github.com/kussberg/simple-credits  

LearnDash Course Management iMember360

All of your courses are set to the LearnDash Open course type. That means that any logged in user is enrolled into the course. So every user is enrolled into every course. iMember360 can't override that default LearnDash behaviour. If you want to control enrolment using iMember360 and Infusionsoft tags you need to set the […]

Limit WooCommerce Company Name Characters

/**  * @snippet       Maxlength @ WooCommerce Checkout Field  * @how-to        Get CustomizeWoo.com FREE  * @author        Rodolfo Melogli  * @testedwith    WooCommerce 4.5  * @donate $9     https://businessbloomer.com/bloomer-armada/  */ add_filter( 'woocommerce_checkout_fields', 'bbloomer_checkout_fields_custom_attributes', 9999 ); function bbloomer_checkout_fields_custom_attributes( $fields ) {    $fields['billing']['billing_company']['maxlength'] = 15;    return $fields; }

WooCommerce Cache Exclusion Rules

https://wpengine.com/support/cache/#Cache_Exclusions Cache Exclusions There are situations when a page should never be served from cache and the interaction should always be treated as unique, such as during checkout or login. Our servers will respect cache exclusion rules for pages, cookies and arguments. Certain pages are excluded from server caching by default on all sites to help ensure functionality. Some of these […]