app\code\core\Mage\Eav\Model\Entity\Increment\Numeric.php
public function getNextId()
{
$last = $this->getLastId();
if(!$last){$last=10000000;}
return $showtime = date("ymdHis").sprintf("%03d",mt_rand(0, 999));
if (strpos($last, $this->getPrefix()) === 0) {
<span></span>$last = (int)substr($last, strlen($this->getPrefix()));
} else {
$last = (int)$last;
}
$next = $last+1;
return $this->format($next);
}
这里有个问题就是magento在获取最新订单号的时候,会有转换为int型,如果订单号规则有字母前缀,就转化成0,这样就出错了,具体修改 ![]() |


shopex走秀网模板
人气:666
Universal 英文综合类商城
人气:271
shopex仿普派商城模板
人气:757
Venedor经济型外贸服饰mag
人气:128
ecshop仿小米2012模板
人气:3005
ecshop精仿麦考林m18整站2
人气:1512