• Resolved vyciook

    (@vyciook)


    Hello,
    Is it possible to setup minimum order amount for btc payments?

    Most of my items cost 15$ and most of exchanges has minimum withdraw of 0.001 which is more than 15.

    Want to set up btc payments only available if order for example is 30$.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Syed Muhammad Usman

    (@smusman98)

    Hi,

    I hope you’re doing well.
    Thanks for showing your interest in Plugin.
    You want to disable entire plugin when user want transection less thn $30, or just want to prevent transection from BTC?

    Thanks

    Thread Starter vyciook

    (@vyciook)

    Want to prevent bitcoin payments for transactions less than $30.

    So if customer chooses coinbase (bitcoin) payment method he/she gets error message that minimum order amount for bitcoin is $30

    Plugin Author Syed Muhammad Usman

    (@smusman98)

    Hi,

    That’s not possible, but we can control anything happening before redirecting to transection page.

    Thanks

    Thread Starter vyciook

    (@vyciook)

    I want this to be possible at checkout page. I found few plugins can do that, like Booster, but its only available on payed version. I found you can do this trough functions.php for normal payments. See here:

    **
     * Set a minimum order amount for checkout
     */
    add_action( 'woocommerce_checkout_process', 'wc_minimum_order_amount' );
    add_action( 'woocommerce_before_cart' , 'wc_minimum_order_amount' );
     
    function wc_minimum_order_amount() {
        // Set this variable to specify a minimum order value
        $minimum = 50;
    
        if ( WC()->cart->total < $minimum ) {
    
            if( is_cart() ) {
    
                wc_print_notice( 
                    sprintf( 'Your current order total is %s — you must have an order with a minimum of %s to place your order ' , 
                        wc_price( WC()->cart->total ), 
                        wc_price( $minimum )
                    ), 'error' 
                );
    
            } else {
    
                wc_add_notice( 
                    sprintf( 'Your current order total is %s — you must have an order with a minimum of %s to place your order' , 
                        wc_price( WC()->cart->total ), 
                        wc_price( $minimum )
                    ), 'error' 
                );
    
            }
        }
    }

    Maybe coinbase payments has simmilar function? ??

    Plugin Author Syed Muhammad Usman

    (@smusman98)

    Since this is user specific requirement, that we can not add into it, but I would like to suggest you to go through this ticket: https://www.ads-software.com/support/topic/before-posting-customer-and-pro-user/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Minimum Order Amount’ is closed to new replies.