Categories
Snippets WooCommerce

Remove Product Add-on form entries from Gravity Forms

As of Gravity Forms Product Add-ons v3.2.1, if you prefer to ever create form entries within Gravity Forms you can use the following filter to remove future form submissions:

add_filter('woocommerce_gravityforms_create_entries', '__return_false');
Categories
Snippets WooCommerce

Dynamic Pricing Role based discount and a Special offer product pricing

A filter to apply a Role based discount and a Special offer product pricing simultaneously using Dynamic Pricing:

add_filter('woocommerce_dynamic_pricing_is_cumulative', '__return_true');
Categories
Snippets WooCommerce

WooCommerce 3.0 – Disable deferred email sending

WooCommerce 3.0 – Disable deferred email sending

Categories
Memberships WooCommerce

WooCommerce Memberships Hide Product

Suppose a merchant is selling products that grant access to a memberships plan and once a purchase of one of those products has been made, the merchant doesn’t want to show that product to members. How can this be done?