こんにちは、一律の配送料を小数点なしで表示する必要があります。その方法についてアドバイスをお願いします。
1 に答える
0
この前の Mage_Shipping_Model_Carrier_Flatrate クラスのパブリック関数 collectRates で
:
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
この2行を配置します
$value= explode(',', '$shippingPrice');
$shippingPrice=$value[0];
変更されたコードは
$value= explode(',', '$shippingPrice');
$shippingPrice=$value[0];
$method->setPrice($shippingPrice);
$method->setCost($shippingPrice);
于 2013-03-11T17:17:11.487 に答える