daily pastebin goal
54%
SHARE
TWEET

faq36

wpgenie Mar 13th, 2018 (edited) 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action('woocommerce_simple_auctions_before_place_bid' , 'custom_max_single_bid_limit' ,10 , 3);
  2.  
  3. function custom_max_single_bid_limit($product_id, $bid,$product_data)     {
  4.     global $product_data;
  5.     if (($bid - $product_data->get_auction_current_bid()) >= '100') {
  6.         wc_add_notice(sprintf('Your bid is bigger than  max  single bid amount', 'wc_simple_auctions'),'error');
  7.         $product_data = FALSE;
  8.         return false;
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top