php 结帐:更改付款图标#woo

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 结帐:更改付款图标#woo相关的知识,希望对你有一定的参考价值。

//Change any payment gateway icon 
add_filter( 'woocommerce_gateway_icon', function ( $icon, $id ) {
  if ( $id === 'st_gateway' ) {
\!h    return '<img src="/wp-content/uploads/2019/09/card-visa.svg" alt="visa" class="sv-wc-payment-gateway-icon wc-braintree-credit-card-payment-gateway-icon" style="width: 40px;height: 25px" width="40" height="25">
\!h            <img src="/wp-content/uploads/2019/09/card-mastercard.svg" alt="mastercard" class="sv-wc-payment-gateway-icon wc-braintree-credit-card-payment-gateway-icon" style="width: 40px;height: 25px" width="40" height="25">
\!h            <img src="/wp-content/uploads/2019/09/card-maestro.svg" alt="maestro" class="sv-wc-payment-gateway-icon wc-braintree-credit-card-payment-gateway-icon" style="width: 40px;height: 25px" width="40" height="25">';
   } 
  else {
    return $icon;
  }
}, 10, 2 );

以上是关于php 结帐:更改付款图标#woo的主要内容,如果未能解决你的问题,请参考以下文章

php 结帐:添加送货通知#woo

php 结帐:添加自定义字段部分#woo

php 结帐:隐藏订单备注#woo #hide

php 重新排序结帐字段#woo

php 退货客户?结帐#woo

php 结帐:删除字段#woo #hide