我的任务在我的java类我们应该写一个航运计算器来计算最终运输成本基于“统一费率“每”重量级“每”500英里出货“的说明是这样的。 The Fast Freight Shipping Computer charges the following rates:
Weight of Package Rate per 500 Miles Shipped
2 pounds or less $1.10
我使用Woocommerce装运方法的自定义插件。该插件运行一个扩展了WC_Shipping_ME方法的新类,但问题在于“成本”价格是在其他函数在场外的类中计算的。 所以,在目前的I类有: public function calculate_shipping($package=array()) {
/* $this->add_rate(array(
'id' =>