Support » Plugin: Minimum Order Amount for Woocommerce » Can still place order if minimum isn’t reached.

  • I can still place an order even though the minimum of 50CAD$ isn’t reached, I thought this plugin prevented this from happening?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • suzannepinchin


    I have the same problem. The plugin has been working fine however just recently it allowed an order to be placed which conflicts with the minimum order value. It appears not to be calculating the basket correctly. Please advise.




    I currently put a sort of fail safe in place until I get further support which till now I haven’t gotten. But the code I used pretty much removes the whole #payment area (including the buy button and what not) on the actual checkout page as the warning for that you still don’t have enough in your cart is still present when this happens (or it should at least). So based on that I wrote this code snippet to be put in your functions.php

    function amount_add_jscript_checkout(){echo '<script>(function($){if($(".woocommerce-error span").hasClass("woocommerce-Price-amount")){$("#payment").remove();}})(jQuery);</script>';}

    Pretty simple code snippet that will just remove like mentioned before the whole #payment section when it finds a woocommerce-error with the class woocommerce-Price-amount on the page.

    Hope it will also help you in the mean time before we actually can get some reply from the original author(s).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can still place order if minimum isn’t reached.’ is closed to new replies.