• Hi!

    In our netshop we require that you Login with VIPPS at checkout if you have not used “VIPPS Express”

    During payment, I have noticed that the “shipping address” fields is not filled out during regular VIPPS payment.

    Since the user is logged in with VIPPS already and these shipping details already exist in the user profile, why can’t you add these addresses to shipping address for the order details in WooCoommerce ?

    When using VIPPS Express, the shipping address is added to the order details.

    It would be nice that this is consistent between the various VIPPS functions.

    Thanks for helping out ??
    Regards
    Horgster

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Actually, Login with Vipps will synchronize both Shipping and Billing addresses for a customer on login, if it synchronizes addresses at all.

    If a customer exists already, or if a customer has changed their address info in WooCommerce, this synchronization will however not happen (unless the user uses a button for this which is on the “Addresses” tab of the “My account” page. This is to allow users to use different addresses for different stores etc.

    You can override this behaviour using this filter:

    apply_filters('login_with_vipps_update_address_info', $update_for_user, $customer, $userinfo);

    – for instance, if you always want to update the address with the latest from Vipps, you could add

        add_filter('login_with_vipps_update_address_info', function ($yesno, $customer, $userinfo) {
           return true; 
        }, 10, 3);

    – this will force synchronization of both addresses whenever a user logs in successfully.

    However, if you use the normal Checkout page, this will still not activate the “Ship to a different address”-feature; this may affect what you are seeing here. But in any case, when a separate Shipping address is not used, Woocommerce should use the Billing address for both addresses.

    Thread Starter horgster

    (@horgster)

    Hi @iverok

    Thanks for great info.
    Could it be an idea to add checkboxes in the “Login with VIPPS” plugin to control these two behaviors instead of adding custom filters?

    Regards to normal checkout page,
    this is what we see even if the user is “Logged in with VIPPS”.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Yes, this could be made an option. We generally try to limit the number of options available; but this should be easy to explain and to implement.

    However, I think this solution has a potential to confuse users when they change their address in Woo explicitly: They would then get their user information overwritten on next login. You may want to test this a bit first.

    Thread Starter horgster

    (@horgster)

    @iverok

    Agree to that it is important to limit number of options to “keep it simple”.
    In this case, you could also add an text that informs the end user that changing of address shall occur at VIPPS and not in WordPress to warn the user when this option is enabled?

    That will limit the confusion I guess?

    Plugin Author Iver Odin Kvello

    (@iverok)

    Yes, it should be easy to implement this with a clear explanation of what it entails.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pay with VIPPS – not adding shipping address only billing’ is closed to new replies.