关于Mogento 填写运单号后,出现无法保存运送方式“Cannot save shipment.”
来源:互联网 发布:4g网络下载慢什么原因 编辑:程序博客网 时间:2024/05/03 01:08
由于项目的需要,更换新服务器后出现后台订单填写运单号后无法保存的问题:
找到其他人的相关分析:
After googling the exception log messages and error codes, I found an issue on StackOverflow which was pretty similar. I write it down here since it’s not 100 % the same in my case.
Admin > Sales > Orders: Look up the highest order number (for each store view) and write it down. e.g. 100000054, which means that there are 54 placed orders in the system.
Admin > System > Manage Stores: Hover your mouse over your Store View Names to see their ID:s. Write them down. e.g. ID for Store View English is usually 1.
Open your database in phpMyAdmin or your preferred db admin tool.
Open the table eav_entity_type which tells you what is the id number for different entities. Now we are interested in rows with entity_type_code is order and shipment (and maybe also invoice and creditmemo, if your problem is related to those. My problem was about shipping). Write down the entity_type_id values of those rows. In my case they were 5for order and 8for shipment.
Open the table eav_entity_store. Look for rows that match the entity_type_ids of order and shipment AND also match your Store View ID:s. Now you can change the value of increment_last_id to your last actual order number. Since my store isn’t open yet, I played it safe and gave a value much bigger for both order and shipment related rows. e.g. if the increment_last_ids were 100000053 for orders and 100000040 for shipments, I gave them both the same new value 100000100 to start over from a clean table. N.B. In my case there was no a row with my local store view and correct shipment entity_type_id. So I copied the row of store view id 1, gave it new values (store id -> 4 and also increment_prefix to match store_id -> 4, and of course increment_last_id -> 400000100) and saved it as a new row in the table.
And that’s it. I’ve now placed a few test orders and everything seems to work. I was also able to ship some older test orders that were lagging behind in Processing mode. That resulted in the fact that order ID:s and shipment ID:s aren’t running side-by-side, but they wouldn’t do that for long anyway so it’s not a problem.
进入数据库,打开eav_entity_store表-更改对应的entity_type_id后面的increment_last_id 给大点的新值,让它能够重新开始;
参考:https://magento.stackexchange.com/questions/31262/cannot-save-shipment-error-with-non-sample-orders-1062-duplicate-entry-for
- 关于Mogento 填写运单号后,出现无法保存运送方式“Cannot save shipment.”
- myeclipse 编码后无法保存 save could not be completed.
- kvm save后无法 restore
- [Rails] ActiveRecord无法保存到数据库中,save后自动回滚
- 关于Nhibernate在wpf中的使用:Session.Save()无法保存数据到数据库中
- hibernate中的session.save无法保存数据
- Hibernate4 save方法无法保存数据
- Hibernate save方法无法保存的问题
- 关于在执行hibernate3.0的save方法后数据无法添加到数据库的问题
- QImage的save函数保存的bmp图像无法打开
- keras中无法用save保存模型的问题
- tensorflow保存变量出现错误(提示不能save)
- magento根据运送城市设置支付方式
- xp系统下hosts文件修改后无法保存的解决方式
- 贪心 000 关于运送木板的问题
- [总结]在VS中编辑修改资源视图后保存时提示-cannot change standard mfc resources ,无法保存资源视图的一个解决方法
- 关于IE登录FTP站点,选择"保存密码"后,登录窗口不在出现的解决方法
- 关于android添加lib库时保存后出现红色叉叉的原因
- [C#基础]c#中的BeginInvoke和EndEndInvoke
- Linux6.5 安装mysql(rpm包安装)--root用户
- springboot
- ClassNotFoundException: org.springframework.context.event.GenericApplicationListener
- Java:Cookie实现记住用户名、密码
- 关于Mogento 填写运单号后,出现无法保存运送方式“Cannot save shipment.”
- linux 新手学习笔记
- luajit官方性能优化指南和注解
- Android填坑之旅(第十六篇)Android优雅解决App应用异常退出并收集日志供开发者调试(总有你想要的,持续收录中......)
- (转载)jvm
- asp.net mvc 客户端加验证非空验证数据库是否存在验证
- linux(centos)系统参数查看命令
- mysql忽略主键冲突、避免重复插入的几种方式
- Android版本这么多,哪个使用比例最高?