• Resolved Abuaarah

    (@abuaarah)


    We are selling produce, delivery is weekly..! sometimes some items will not be available after a customer ordered them as these are seasonal items..! is there a way we sell the items and then payment is on hold “Not really charged” once we make sure on the delivery day everything is there and if not adjust the payment and charge the actual amount..!

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Stef

    (@serafinnyc)

    We need a little bit more information here. What payment gateway(s) are you using?

    Thread Starter Abuaarah

    (@abuaarah)

    Hello, thanks for the reply, I am using Stripe and Paypal..

    Stef

    (@serafinnyc)

    Wouldn’t managing the stock/inventory and allowing backorders be easier?

    Otherwise there’s a plugin that allows you to control status.

    However, if you are able to code you can add this to your child theme’s functions.php file

     
    add_action( 'woocommerce_checkout_create_order', 'force_new_order_status', 20, 1 );
    function force_new_order_status( $order ) {
    
        if( ! $order->has_status('on-hold') )
            $order->set_status( 'on-hold', 'Forced status by a custom script' );
    }
    

    That may work as well.

    Thread Starter Abuaarah

    (@abuaarah)

    If I am understanding correctly, I will have to make all items in back order? so that payment would not go through? and then on the delivery time, I would be able to charge only on available items? Please clarify – Thanks

    Stef

    (@serafinnyc)

    This snippet will make all orders yes. Other than that you will have to seek out a developer for custom work as we do not offer that kind of support here in this forum.

    Thread Starter Abuaarah

    (@abuaarah)

    Hi thank you again, I have placed the snippet in the child theme’s functions.php file, and going forward, I believe, even though the customer place an order the payment will not go through until I make sure all the items are available and if any item is not available then I have the option of removing that and adjust the payment amount and charge accordingly? I am sorry to trouble you for understanding this properly as I do not want to create a bad impression among the customer as this is a starting business..! If you want to clarify more that will be appreciated..Thank you again

    Stef

    (@serafinnyc)

    Great. And everything is working?

    even though the customer place an order the payment will not go through until I make sure all the items are available and if any item is not available then I have the option of removing that and adjust the payment amount and charge accordingly?

    Correct, However you should speak to both Stripe & PayPal to ensure that no payment is being captured only authorized.

    Thread Starter Abuaarah

    (@abuaarah)

    Hi, I will have to wait for an order to check..! I Will let you know once working ok – Thanks

    Stef

    (@serafinnyc)

    Just put your site into maintenance mode and then put Stripe in Test mode and then test.

    Use something like Coming Soon by SeaPod for the Maintenance Mode for testing. This way only logged in Admins can see the site. Then turn it off after testing.

    Thread Starter Abuaarah

    (@abuaarah)

    It says no longer editable, the order going through Paypal

    Stef

    (@serafinnyc)

    Make sure you’re in WooCommerce settings under Payments that PayPal is set to Authorize and not Capture

    Thread Starter Abuaarah

    (@abuaarah)

    same – This order is no longer editable.

    Stef

    (@serafinnyc)

    Sorry, that’s not what I meant. Make sure it is set to that before placing/testing orders. Put PayPal into Sandbox mode if you have all your credentials set for Sandbox and then test.

    Thread Starter Abuaarah

    (@abuaarah)

    Thanks will get back to you, I will have to go for an emergency

    Thread Starter Abuaarah

    (@abuaarah)

    Hi I tried it and it’s not letting me change the price..! Is there a plugin to get this achieve easily?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Hold payment’ is closed to new replies.