29 Snippets
<10 Favourites
<10 Downloads

Hide Price & Add to Cart for Non Logged in Users for Specific Products

This code snippet allows you to hide the price and 'Add to Cart' button for users…

Make Product Non Purchasable for Wholesale Customer if Product Stock is Less Than Certain Amount

This snippet will allow you to make a product unavailable for purchase by wholesale customers if…

Override Wholesale Price Text Per Wholesale Role

This snippet allows you to display specific wholesale price text for each of your wholesale roles

WooCommerce Wholesale Lead Capture Re-send Email Button in User Profile

This snippet will add a resend email button under User profile.

Enable quantity field on shop page

// Remove the default add to cart button remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); // Add custom…

WWPP - Restrict add-to-cart on specific products to a specific wholesale role only

How to use and configure this snippet: 1. Set your exact Role Key: In the snippet,…

Allow Shop Managers to edit and promote wholesale users.

/** * Allow Shop Managers to edit and promote wholesale users. */ function wws_add_shop_manager_user_editing_capability() { $shop_manager…

WWPP - Customize the admin "New Order" email subject for wholesalers

/** * Customize the Admin "New Order" email subject for wholesale customers only */ add_filter( 'woocommerce_email_subject_new_order',…

Show Certain Products to Certain Wholesale Customers Only

How to use: 1. Do not tag normal/default products. 2. Tag only “special” products with "wholesale-special".…

WWPP – Customize the admin “New Order” email subject for wholesalers v1.1

How to apply: 1. Replace the previous snippet with this one in your functions.php or Code…

Prevent Wholesale Customer to Add Product to the Cart If The Product is Low on Stock

// Prevent wholesale customer to add to cart if the product is low on stock add_filter('woocommerce_is_purchasable',…

Fix Wholesale Product Visibility Compatibility with Bricks Page Builder

What this does: - Bricks Products widget now gets its product list filtered through WWPP_Query::pre_get_posts_arg, the…

1 2