• Resolved silence85

    (@silence85)


    Hey there,

    I got the issue that I can’t choose a payment method after heading to checkout.

    Sorry, but there are apparently no payment methods available for your state / region. Please contact us if you need help or want to make other arrangements.

    I got 3 different shipping zones but can’t figure out how to connect the gift card to a region.

    • This topic was modified 6 years, 1 month ago by silence85.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author pimwick

    (@pimwick)

    The PW Gift Card product type is a “Virtual” product inside WooCommerce. When selling only a virtual product, WooCommerce does not require a shipping address.

    You can force WooCommerce to require a shipping address for every order by following these steps:

    1. Download the functions.php from your FTP server at /wp-content/themes/<your theme>/functions.php
    2. Keep a backup of functions.php in case there are problems.
    3. Edit functions.php and scroll to the very end and add this code.

    Note: if the last line is “?>” then put this code *above* that line. Otherwise, this code goes at the very end of the file:

    add_filter( 'woocommerce_cart_needs_shipping_address', '__return_true', 50 );

    4. Save the functions.php file and re-upload it to your server.

    If you have any problems, replace functions.php with your backup file.

    Let me know if you have any questions!

    Thread Starter silence85

    (@silence85)

    Hey. Thanks for the answer.
    The Problem is not the shipping addresss but the following message I get on check out:

    Sorry, but there are apparently no payment methods available for your state / region. Please contact us if you need help or want to make other arrangements.

    Plugin Author pimwick

    (@pimwick)

    By default, WooCommerce will not attempt to get a payment method when the Cart Total is zero. It sounds like a payment method plugin for your site isn’t following this standard. Unfortunately unless they make a change to allow a checkout with a Total balance of zero our plugin won’t work for you.

    Hopefully you can reach out to the developers of the other plugin and explain the situation, that the cart is zero and therefore no payment method is required.

    Plugin Author pimwick

    (@pimwick)

    Since we haven’t heard back I’m marking this thread as “Resolved”. However, if you need further help just let us know!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Payment methods’ is closed to new replies.