• Resolved Im_a_MARVEL

    (@im_a_marvel)


    Can we have logos of acceptable cards like other payment methods.
    Think it’ll increase users trust.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Im_a_MARVEL

    (@im_a_marvel)

    So I figured out why the icon won’t show, even after I added filter to put one in. $icon wasn’t properly defined and thereby not inserted into the filter.

    So I comment out the two instances of $this->icon, then I went down to public function get_icon() and defined my $icon and inserted it into the filter thus

    public function get_icon()
    {
    $icon = '<img src="' . WC_HTTPS::force_https_url( plugins_url( 'assets/icon.png', WC_SQUAD_MAIN_FILE )) .'" alt="Squad by GTCO" />';
    return apply_filters('woocommerce_gateway_icon', "$icon", $this->id);
    }

    do remember to put an icon.png into the asset folder in the plugin and you have it pop just like mine https://prnt.sc/L2k7GqTEi_ts

    Hope this helps someone.

    damy399

    (@damy399)

    Hello

    How do I find the public function icon please? I’m not a wordpress developer

    Thread Starter Im_a_MARVEL

    (@im_a_marvel)

    @damy399 it’s in the plugin main file. you’ll need basic PHP code skills to edit the file. Get your developer to look into it.

    damy399

    (@damy399)

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Logo of acceptable cards at checkout’ is closed to new replies.