In Vipps Checkout: no. The image is determined by the “brand” as defined by Vipps’ API.
If your method actually uses one of the “brands” defined by Vipps you can add it to your shipping method. These are POSTEN, HELTHJEM, POSTNORD, PORTERBUDDY, INSTABOX and OTHER (with no logo).
To do this, you can either add ‘brand’ as meta data on your shipping rate, or you can use the filter
apply_filters('woo_vipps_shipping_method_brand', $brand,$shipping_method, $rate);
— where the shipping method is a WC_Shipping_Method (or null) and the rate is a WC_Shipping_Rate.
There is no way to add custom logos; currently you would need to ask this directly to Vipps as a feature request.
Thank you for your reply. I will test out the filter and come back with feedback.
Hi,
I have tried the filter you suggested and it works almost perfectly. One issue that appears is that the Shipping label is being reset to default Posten. Is tehre a filter to change the Shipping label?
Ypou can view how it looks here on this printscreen. I would like it to say “Pakke till postkassen” instead of “Posten”.
No, unfortunately not: If you set the “brand”, there is no “title” input.
If you have the time to write down you experiences and feature wishes for this, you could send these to the Vipps Checkout team. They may have different plans and priorities, but they will be interested in feedback about the API.
Ah ok, many thanks for very quick and good feedbacks.