How to change the order number's prefix of a specific store, Magento2

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite













Magento2.2.4, php7;




I have multiple stores where I want each one of them to have a different order number's prefix. Is there anyway to realize that?



Thanks!



Edit: I'm trying to avoid using raw queries, any other (safer) way ?










share|improve this question























  • are you using custom module
    – Rv Singh
    1 hour ago










  • check this if it helps - magento.stackexchange.com/questions/101341/…
    – shashank
    1 hour ago










  • @rvSingh no i'm not using a custom module.
    – Mer Gh
    1 hour ago










  • @shashank i saw it, i'm trying to avoid using raw queries on db ..
    – Mer Gh
    1 hour ago
















up vote
1
down vote

favorite













Magento2.2.4, php7;




I have multiple stores where I want each one of them to have a different order number's prefix. Is there anyway to realize that?



Thanks!



Edit: I'm trying to avoid using raw queries, any other (safer) way ?










share|improve this question























  • are you using custom module
    – Rv Singh
    1 hour ago










  • check this if it helps - magento.stackexchange.com/questions/101341/…
    – shashank
    1 hour ago










  • @rvSingh no i'm not using a custom module.
    – Mer Gh
    1 hour ago










  • @shashank i saw it, i'm trying to avoid using raw queries on db ..
    – Mer Gh
    1 hour ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite












Magento2.2.4, php7;




I have multiple stores where I want each one of them to have a different order number's prefix. Is there anyway to realize that?



Thanks!



Edit: I'm trying to avoid using raw queries, any other (safer) way ?










share|improve this question
















Magento2.2.4, php7;




I have multiple stores where I want each one of them to have a different order number's prefix. Is there anyway to realize that?



Thanks!



Edit: I'm trying to avoid using raw queries, any other (safer) way ?







magento2 orders multistore multi-website prefix






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago

























asked 1 hour ago









Mer Gh

318




318











  • are you using custom module
    – Rv Singh
    1 hour ago










  • check this if it helps - magento.stackexchange.com/questions/101341/…
    – shashank
    1 hour ago










  • @rvSingh no i'm not using a custom module.
    – Mer Gh
    1 hour ago










  • @shashank i saw it, i'm trying to avoid using raw queries on db ..
    – Mer Gh
    1 hour ago
















  • are you using custom module
    – Rv Singh
    1 hour ago










  • check this if it helps - magento.stackexchange.com/questions/101341/…
    – shashank
    1 hour ago










  • @rvSingh no i'm not using a custom module.
    – Mer Gh
    1 hour ago










  • @shashank i saw it, i'm trying to avoid using raw queries on db ..
    – Mer Gh
    1 hour ago















are you using custom module
– Rv Singh
1 hour ago




are you using custom module
– Rv Singh
1 hour ago












check this if it helps - magento.stackexchange.com/questions/101341/…
– shashank
1 hour ago




check this if it helps - magento.stackexchange.com/questions/101341/…
– shashank
1 hour ago












@rvSingh no i'm not using a custom module.
– Mer Gh
1 hour ago




@rvSingh no i'm not using a custom module.
– Mer Gh
1 hour ago












@shashank i saw it, i'm trying to avoid using raw queries on db ..
– Mer Gh
1 hour ago




@shashank i saw it, i'm trying to avoid using raw queries on db ..
– Mer Gh
1 hour ago










2 Answers
2






active

oldest

votes

















up vote
1
down vote













You can manage it like below:



Magento 2 database contains a table name 'sales_sequence_profile' which has prefix column and every row contains a meta_id which relates with table 'sales_sequence_meta'.



Table 'sales_sequence_meta' sequence table names according to stores and type(order, invoice, shipment, creditmemo, rma).




  • sequence_order_* contains the last inserted order ids


  • sequence_shipment_* contains the last inserted shipment ids


  • sequence_invoice_* contains the last inserted invoice ids


  • sequence_creditmemo_* contains the last inserted creditmemo ids


  • sequence_rma_item_* contains the last inserted rma item ids

Basically this is just for understanding. You need to update the table 'sales_sequence_profile' and related sequence tables.






share|improve this answer



























    up vote
    1
    down vote













    You can change this using by changing related store db tables. i.e



    if your store id is 1 :



    change prefix column value in your sales_sequence_profile table against your meta_id = 1;






    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f245312%2fhow-to-change-the-order-numbers-prefix-of-a-specific-store-magento2%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      You can manage it like below:



      Magento 2 database contains a table name 'sales_sequence_profile' which has prefix column and every row contains a meta_id which relates with table 'sales_sequence_meta'.



      Table 'sales_sequence_meta' sequence table names according to stores and type(order, invoice, shipment, creditmemo, rma).




      • sequence_order_* contains the last inserted order ids


      • sequence_shipment_* contains the last inserted shipment ids


      • sequence_invoice_* contains the last inserted invoice ids


      • sequence_creditmemo_* contains the last inserted creditmemo ids


      • sequence_rma_item_* contains the last inserted rma item ids

      Basically this is just for understanding. You need to update the table 'sales_sequence_profile' and related sequence tables.






      share|improve this answer
























        up vote
        1
        down vote













        You can manage it like below:



        Magento 2 database contains a table name 'sales_sequence_profile' which has prefix column and every row contains a meta_id which relates with table 'sales_sequence_meta'.



        Table 'sales_sequence_meta' sequence table names according to stores and type(order, invoice, shipment, creditmemo, rma).




        • sequence_order_* contains the last inserted order ids


        • sequence_shipment_* contains the last inserted shipment ids


        • sequence_invoice_* contains the last inserted invoice ids


        • sequence_creditmemo_* contains the last inserted creditmemo ids


        • sequence_rma_item_* contains the last inserted rma item ids

        Basically this is just for understanding. You need to update the table 'sales_sequence_profile' and related sequence tables.






        share|improve this answer






















          up vote
          1
          down vote










          up vote
          1
          down vote









          You can manage it like below:



          Magento 2 database contains a table name 'sales_sequence_profile' which has prefix column and every row contains a meta_id which relates with table 'sales_sequence_meta'.



          Table 'sales_sequence_meta' sequence table names according to stores and type(order, invoice, shipment, creditmemo, rma).




          • sequence_order_* contains the last inserted order ids


          • sequence_shipment_* contains the last inserted shipment ids


          • sequence_invoice_* contains the last inserted invoice ids


          • sequence_creditmemo_* contains the last inserted creditmemo ids


          • sequence_rma_item_* contains the last inserted rma item ids

          Basically this is just for understanding. You need to update the table 'sales_sequence_profile' and related sequence tables.






          share|improve this answer












          You can manage it like below:



          Magento 2 database contains a table name 'sales_sequence_profile' which has prefix column and every row contains a meta_id which relates with table 'sales_sequence_meta'.



          Table 'sales_sequence_meta' sequence table names according to stores and type(order, invoice, shipment, creditmemo, rma).




          • sequence_order_* contains the last inserted order ids


          • sequence_shipment_* contains the last inserted shipment ids


          • sequence_invoice_* contains the last inserted invoice ids


          • sequence_creditmemo_* contains the last inserted creditmemo ids


          • sequence_rma_item_* contains the last inserted rma item ids

          Basically this is just for understanding. You need to update the table 'sales_sequence_profile' and related sequence tables.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Sukumar Gorai

          5,3403425




          5,3403425






















              up vote
              1
              down vote













              You can change this using by changing related store db tables. i.e



              if your store id is 1 :



              change prefix column value in your sales_sequence_profile table against your meta_id = 1;






              share|improve this answer
























                up vote
                1
                down vote













                You can change this using by changing related store db tables. i.e



                if your store id is 1 :



                change prefix column value in your sales_sequence_profile table against your meta_id = 1;






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  You can change this using by changing related store db tables. i.e



                  if your store id is 1 :



                  change prefix column value in your sales_sequence_profile table against your meta_id = 1;






                  share|improve this answer












                  You can change this using by changing related store db tables. i.e



                  if your store id is 1 :



                  change prefix column value in your sales_sequence_profile table against your meta_id = 1;







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 1 hour ago









                  Naveed Asim

                  2,0871213




                  2,0871213



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f245312%2fhow-to-change-the-order-numbers-prefix-of-a-specific-store-magento2%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      Long meetings (6-7 hours a day): Being “babysat” by supervisor

                      What does second last employer means? [closed]

                      One-line joke