Magento: Can you set it so that all websites have the same sequence of order increment indexes?

Does anyone know if it is possible to do this so that all websites or repositories have the same order increment identifier. We mainly work with an ERP system that allows us to present our invoice number as the actual order number in the system, but, nevertheless, they only need one sequence of numbers, not each for each store, for example, like Magento by default.

+3
source share
4 answers

I just found this, and it's nice. You can add the following: script ...

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

PS , : Custom Order Number Pro. , .

+4

. . eav_entity_type increment_per_store ( 0).
eav_entity_store

0

. . eav_entity_type column increment_per_store ( 0). eav_entity_store

, , Sisow iDeal. . . , .

r,

0

. . sales_sequence_meta = > column sequence_table "order" "entity_type" , sequence_order_0.

:
meta_id entity_type store_id sequence_table

5 1 sequence_order_1

6 2 sequence_order_2

7 3 sequence_order_3

8 4 sequence_order_4

5 1 sequence_order_0

6 order 2 sequence_order_0

7 order 3 sequence_order_0

8 order 4 sequence_order_0

This can help you.

0
source

Source: https://habr.com/ru/post/1775431/


All Articles