常用方法
常用方法
常用方法
常用方法
/** * Returns the maximum weights unit abreviation in context of * SilvercartConfig::DisplayWeightsInKilogram(). * * @return string */ public function getMaximumWeightUnitAbreviation() { $maximumWeightUnitAbreviation = 'g'; if (SilvercartConfig::DisplayWeightsInKilogram()) { $maximumWeightUnitAbreviation = 'kg'; } return $maximumWeightUnitAbreviation; }