• Resolved DamirCalusic

    (@webkreativ)


    Hi,

    I was wondering if it was possible to display a custom logo/icon for a default WooCommerce shipping method like flatrate or pickup location?

    For Posten and Porterbuddy integration in the Vipps plugin the logoes are displayed for those methods but we would like to display logoes even for default woocommerce methods like you can see on my printscreen here.

    Is it possible today?

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

    (@iverok)

    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.

    Thread Starter DamirCalusic

    (@webkreativ)

    Thank you for your reply. I will test out the filter and come back with feedback.

    Thread Starter DamirCalusic

    (@webkreativ)

    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”.

    Plugin Author Iver Odin Kvello

    (@iverok)

    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.

    Thread Starter DamirCalusic

    (@webkreativ)

    Ah ok, many thanks for very quick and good feedbacks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display custom logo for shipping method’ is closed to new replies.