Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ivan Paulin

    (@ivan_paulin)

    Hi,

    Can you please give more details about what is not working?

    Thread Starter swavec

    (@swavec)

    Hi
    It works when i select country in Billing Details, but when using Ship to a different address it is not.

    Plugin Author Ivan Paulin

    (@ivan_paulin)

    Hi,

    Plugin works as it supposed to, even when you use different shipping address. Only thing is that it will consider only billing country for displaying payment gateways.
    Shipping address will not have any effect to the list of available payment gateways.
    In my opinion that is correct way.

    What do you think?

    Thread Starter swavec

    (@swavec)

    Hi
    I want to limit cod gateway to my country only. When someones billing address is in my country and chooses to deliver to different one it is still available. It is highly improbable scenario so no big deal but would be perfect to work like Shipping Zones for delivery price.
    Thank you.

    Yeah, @swavec you’re right. I face to the same problem.
    Please @ivan_paulin do you understand ?

    • This reply was modified 7 years, 10 months ago by duhamel.

    I had the same issue however the shipping takes the same as the billing if not selected it was just a case of modifying it to take the shipping address as the controller for the Gateways. I just changed line 66 in woocommerce-country-based-payments.php the core plugin file from $_REQUEST[‘country’] to $_REQUEST[‘s_country’]. So the line should read as follows :-

    $this->selected_country = sanitize_text_field($_REQUEST['s_country']);

    Hope this helps others.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shipping address’ is closed to new replies.