How can I limit two decimal places to show price per kilo using woocommerce and acf?

后端 未结 0 1034
天涯浪人
天涯浪人 2021-02-04 16:59

this code allow you to show price per kg using woocommerce and acf by creating a price_per_kilo field through acf:

global $product;

$price = $product->get_pri         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题