%s 可以 %s 的增量购买,仅限 Magento 数量

%s is available for purchase in increments of %s in Magento only qty

规则 %s 可在 Magento qtyincrements.phtml 中以 %s 的增量购买,显示产品名称和数量。如果您删除第一个 %s,那么只能以 %s 为增量购买保留,它会在 %s 符号处显示名称。所以你需要两个符号来表示数量。

有没有办法只调用数量。我们想要得到:该产品可以以...

为增量购买

这只是 PHP’s sprintf function 的包装器。如果您只想显示增量数量,请从函数参数中删除 $this->getProductName() 并仅使用一个 %s 改写字符串。一个例子是:$this->__('This product is available for purchase in increments of %s', $this->getProductQtyIncrements())