Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter amosb

    (@amosb)

    I’ll explain:

    Here you can see one shiiping zone:
    https://screencast.com/t/sYg3nDgz
    and here another one:
    https://screencast.com/t/VH3sgoj1Ej

    when i go to cash on delivery setting i can’t selected only the shipping methods for one shipping zone:
    https://screencast.com/t/r12mLDrnM

    The methods “tariffa unica” is the same for the two shipping zone (with different cost) but i want cash on delivery only for one of that shipping zone.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    All you need to do is add COD to one of your zones… I don’t understand what you’re doing wrong. There is no setting required inside COD.

    Thread Starter amosb

    (@amosb)

    How i can add COD to one of my zone? I don’t find the function…

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    O wait, cash on delivery is not a shipping method. its a payment method.

    To base payment on shipping method, use https://docs.woothemes.com/document/woocommerce-conditional-shipping-and-payments/

    Thread Starter amosb

    (@amosb)

    ok…..
    But before the introduction of shipping zones it did not need any plugins…

    Thread Starter amosb

    (@amosb)

    sorry, isn’t true
    i told an untruth…

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Yup its always been a gateway.

    Before the introduction of new shipping method in WOOCOMMERCE there was no need of a plugin.

    I was able to set COD payment system (cash on delivery) to a certain shipping method like local delivery and NOT to set to international delivery.

    NOW NOT ONLY IS NOT WORKING, NOT ONLY CREATE PROBLEM TO MY CUSTOMER WITH THE NEW WOOCOMERCE BUT I SHOULD BUY A NEW PLUGIN???

    THIS IS NOT FAIR

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    You can still enable COD for only specific shipping methods: https://cld.wthms.co/n1yG/1d8w1MXe

    Sure but now is not enough and need to be able to do same thing with the shipment zone, this will be great in next release.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    This feature still exists – you can still use it only for local pickup as its in the dropdown! PLEASE TRY FIRST :p

    Sure I Try first, ad was amazed that no one at WOOC noted that.

    For local pick up maybe could be used and is fine but COD is in Italy used for the ‘legacy’ National delivery together with other payment methods like PayPal or Bank Transfer.

    If my shop is in Italy COD must disappear if customer purchase from abroad.

    Luckily got a solution myself.

    /**
     * @snippet       WooCommerce Disable Payment Gateway for a Specific Country
      */
    
    function payment_gateway_disable_country( $available_gateways ) {
    global $woocommerce;
    if ( isset( $available_gateways['cod'] ) && $woocommerce->customer->get_country() <> 'IT' ) {
    unset( $available_gateways['cod'] );
    }
    return $available_gateways;
    }
    
    add_filter( 'woocommerce_available_payment_gateways', 'payment_gateway_disable_country' );
    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    So in COD settings you’d just make it work with local pickup only. There is a setting as explained above.

    Thread Starter amosb

    (@amosb)

    If you set COD work only with local pickup the user that buy from another town don’t have the COD options!

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Right – because they can’t choose local pickup. If you want that too happen – then you don’t really want to restrict COD to local pickup.

    If customer X from town A is required to select local pickup if they want to use COD, then why does customer Y from town B get to use COD without local pickup?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘cash on delivery only for one shipping zone’ is closed to new replies.