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

Paystack Split Payments Integration with WC Vendors — Creating the Split Configuration

public function process_split_payment( $order ) { $vendors_due = WCV_Vendors::get_vendor_dues_from_order( $order, false ); $sub_accounts = array(); foreach…

Retroactive Lifetime Licenses

Mark all existing licenses for an EDD product as lifetime licenses.

Vendor Canonical Links

Makes the vendor canonical links go to yoursite/vendor/vendor-name instead of yoursite/vendor.

Disable Geolocation Current Location if the page URL contains Prefill by URL parameters targeting an address field

When "Current Location" is enabled in WPForms > Settings > Geolocation, the geolocation JS overwrites address…

Ralden Souza PRO
<10

Force localized currency for product feeds

This allows you to change the ISO 4217 for all the product feeds

<10

WWLC - Default Wholesale Leads list to sort by registration date (newest first)

1. Navigate to your site: Go to your WP Admin dashboard. 2. Apply the snippet: Paste…

BOGO Coupons to refer to original subtotal

When a BOGO coupon has a minimum spend (Usage Restriction) configured, applying the coupon can incorrectly…

Change Method Label

add_filter( 'woocommerce_cart_shipping_method_full_label', 'wcv_override_vendor_shipping_label', 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = 'Flat-rate'; // cost;…

AI

navdeep dhillon
<10

Make All Users Vendors

/** * Make all new user registrations Vendors. */ add_filter( 'woocommerce_new_customer_data', 'wcv_woocommerce_new_user_data' ); function wcv_woocommerce_new_user_data( $data…

1 … 122 123 124 125 126 … 235