Magento:您可以设置它,以便所有网站共享相同的订单增量ID序列吗? [英] Magento: Can you set it so all Websites share the same order increment id sequence?

查看:67
本文介绍了Magento:您可以设置它,以便所有网站共享相同的订单增量ID序列吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道是否有可能使所有网站或商店共享相同的订单增量ID.基本上,我们正在使用一个ERP系统,该系统允许我们将发票编号提交为系统中的实际订单号,虽然事实是,它们只需要一个编号序列,而不需要像Magento那样对每个商店使用不同的编号序列.默认.

Does anyone know if it is possible to make it so all websites or stores share the same order increment ID. Basically we are working with an ERP system that is allowing us to submit our Invoice number to be the actual order number in the system, the thing is though, they only need one number sequence not a different one for each store like how Magento does by default.

推荐答案

我刚刚发现了这一点,并且非常容易.您可以将以下内容放入升级脚本...

I've just found this out and it is pleasantly easy. You could put the following in an upgrade script...

Mage::getModel('eav/entity_type')
    ->loadByCode('order')
    ->setIncrementPerStore(false)
    ->save();

PS 我一直在要求对此进行扩展,但是已经存在:

P.S. I've been receiving requests to make an extension of this but one already exists: Custom Order Number Pro. It's commercial but it has a decent sounding list of features.

这篇关于Magento:您可以设置它,以便所有网站共享相同的订单增量ID序列吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆