How can I override admin create order controller?Override default CreateController in side MyModule in...

Can an insurance company drop you after receiving a bill and refusing to pay?

Are there any modern advantages of a fire piston?

Magento 2 : Call Helper Without Using __construct in Own Module

Why isn't there a non-conducting core wire for high-frequency coil applications

Can making a creature unable to attack, after it has been assigned as an attacker, remove it from combat?

Broken patches on a road

How can I install sudo without using su?

We are very unlucky in my court

Cookies - Should the toggles be on?

Why do no American passenger airlines still operate dedicated cargo flights?

Why do neural networks need so many training examples to perform?

How can I deliver in-universe written lore to players without it being dry exposition?

What is the wife of a henpecked husband called?

Why exactly do action photographers need high fps burst cameras?

Using only 1s, make 29 with the minimum number of digits

Can a person refuse a presidential pardon?

Why is "points exist" not an axiom in geometry?

Can we use the stored gravitational potential energy of a building to produce power?

Can I string the D&D Starter Set campaign into another module, keeping the same characters?

Publishing research using outdated methods

How to deal with an incendiary email that was recalled

How much mayhem could I cause as a sentient fish?

Does static makes difference for const local variable?

How should I handle players who ignore the session zero agreement?



How can I override admin create order controller?


Override default CreateController in side MyModule in Magentooverride admin system account controller in magentoOverride Adminhtml importexport dataflow Profile ControllerHow to override the controller AccountController[Solved]Cannot override Pdf/Total/Default.php modelMagento controller override not working in other systemsOverride Adminhtml Core Controller not working (EE 1.14)Override of a controllerMagento 2.2.5: Overriding Admin Controller sales/orderMagento ver. 1.4.2.0:Unable to override core adminhtml sales order controller













1















I am trying to override adminhtml_sales_order_create controller. I have created a small module app/code/local/Akina/Sales/etc/config.xml



<?xml version="1.0"?>
<config>
<modules>
<Akina_Sales>
<version>0.1</version>
</Akina_Sales>
</modules>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
</modules>
</args>
</adminhtml>
</routers>
</admin>
</config>


and created controller file as



app/code/local/Akina/Sales/controllers/Adminhtml/Sales/order/CreateorderController.php



<?php
require_once 'Mage/Adminhtml/controllers/Sales/Order/CreateController.php';
class Akina_Sales_Adminhtml_sales_Order_CreateorderController extends Mage_Adminhtml_Sales_Order_CreateController
{
public function saveAction()
{
echo "test";die;
}
}


My module declaration file



<?xml version="1.0"?>
<config>
<modules>
<Akina_Sales>
<active>true</active>
<codePool>local</codePool>
</Akina_Sales>
</modules>
</config>


I am unable to override this controller, where did I go wrong?










share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    I am trying to override adminhtml_sales_order_create controller. I have created a small module app/code/local/Akina/Sales/etc/config.xml



    <?xml version="1.0"?>
    <config>
    <modules>
    <Akina_Sales>
    <version>0.1</version>
    </Akina_Sales>
    </modules>
    <admin>
    <routers>
    <adminhtml>
    <args>
    <modules>
    <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
    </modules>
    </args>
    </adminhtml>
    </routers>
    </admin>
    </config>


    and created controller file as



    app/code/local/Akina/Sales/controllers/Adminhtml/Sales/order/CreateorderController.php



    <?php
    require_once 'Mage/Adminhtml/controllers/Sales/Order/CreateController.php';
    class Akina_Sales_Adminhtml_sales_Order_CreateorderController extends Mage_Adminhtml_Sales_Order_CreateController
    {
    public function saveAction()
    {
    echo "test";die;
    }
    }


    My module declaration file



    <?xml version="1.0"?>
    <config>
    <modules>
    <Akina_Sales>
    <active>true</active>
    <codePool>local</codePool>
    </Akina_Sales>
    </modules>
    </config>


    I am unable to override this controller, where did I go wrong?










    share|improve this question
















    bumped to the homepage by Community 3 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I am trying to override adminhtml_sales_order_create controller. I have created a small module app/code/local/Akina/Sales/etc/config.xml



      <?xml version="1.0"?>
      <config>
      <modules>
      <Akina_Sales>
      <version>0.1</version>
      </Akina_Sales>
      </modules>
      <admin>
      <routers>
      <adminhtml>
      <args>
      <modules>
      <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
      </modules>
      </args>
      </adminhtml>
      </routers>
      </admin>
      </config>


      and created controller file as



      app/code/local/Akina/Sales/controllers/Adminhtml/Sales/order/CreateorderController.php



      <?php
      require_once 'Mage/Adminhtml/controllers/Sales/Order/CreateController.php';
      class Akina_Sales_Adminhtml_sales_Order_CreateorderController extends Mage_Adminhtml_Sales_Order_CreateController
      {
      public function saveAction()
      {
      echo "test";die;
      }
      }


      My module declaration file



      <?xml version="1.0"?>
      <config>
      <modules>
      <Akina_Sales>
      <active>true</active>
      <codePool>local</codePool>
      </Akina_Sales>
      </modules>
      </config>


      I am unable to override this controller, where did I go wrong?










      share|improve this question
















      I am trying to override adminhtml_sales_order_create controller. I have created a small module app/code/local/Akina/Sales/etc/config.xml



      <?xml version="1.0"?>
      <config>
      <modules>
      <Akina_Sales>
      <version>0.1</version>
      </Akina_Sales>
      </modules>
      <admin>
      <routers>
      <adminhtml>
      <args>
      <modules>
      <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
      </modules>
      </args>
      </adminhtml>
      </routers>
      </admin>
      </config>


      and created controller file as



      app/code/local/Akina/Sales/controllers/Adminhtml/Sales/order/CreateorderController.php



      <?php
      require_once 'Mage/Adminhtml/controllers/Sales/Order/CreateController.php';
      class Akina_Sales_Adminhtml_sales_Order_CreateorderController extends Mage_Adminhtml_Sales_Order_CreateController
      {
      public function saveAction()
      {
      echo "test";die;
      }
      }


      My module declaration file



      <?xml version="1.0"?>
      <config>
      <modules>
      <Akina_Sales>
      <active>true</active>
      <codePool>local</codePool>
      </Akina_Sales>
      </modules>
      </config>


      I am unable to override this controller, where did I go wrong?







      magento-1.9 overrides controllers






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 10 '17 at 11:06









      Marius

      166k28317677




      166k28317677










      asked Jan 10 '17 at 10:59









      Rohit AgrawalRohit Agrawal

      62




      62





      bumped to the homepage by Community 3 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 3 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          3 Answers
          3






          active

          oldest

          votes


















          0














          you need to add this in the module declaration file



          <depends>
          <Mage_Adminhtml />
          </depends>


          right below <codePool>local</codePool>.



          place your new controller in app/code/local/Akina/Sales/controllers/Adminhtml/Sales/Order/CreateController.php

          and name the controller class Akina_Sales_Adminhtml_Sales_Order_CreateController.

          be careful at uppercase letters.






          share|improve this answer
























          • ' Not working '

            – Rohit Agrawal
            Jan 10 '17 at 11:23





















          0














          Along with the Marius answer



          In your config.xml change



          <adminhtml>
          <args>
          <modules>
          <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
          </modules>
          </args>
          </adminhtml>


          To



          <adminhtml>
          <args>
          <modules>
          <Akina_Sales_Adminhtml before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales_Adminhtml>
          </modules>
          </args>
          </adminhtml>





          share|improve this answer
























          • I have already done change but is not working

            – Rohit Agrawal
            Jan 10 '17 at 11:25



















          0














          Please try



          <adminhtml>
          <args>
          <modules>
          <Akina_Sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales>
          </modules>
          </args>
          </adminhtml>


          Instead of



          <adminhtml>
          <args>
          <modules>
          <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
          </modules>
          </args>
          </adminhtml>





          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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            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%2f153997%2fhow-can-i-override-admin-create-order-controller%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            you need to add this in the module declaration file



            <depends>
            <Mage_Adminhtml />
            </depends>


            right below <codePool>local</codePool>.



            place your new controller in app/code/local/Akina/Sales/controllers/Adminhtml/Sales/Order/CreateController.php

            and name the controller class Akina_Sales_Adminhtml_Sales_Order_CreateController.

            be careful at uppercase letters.






            share|improve this answer
























            • ' Not working '

              – Rohit Agrawal
              Jan 10 '17 at 11:23


















            0














            you need to add this in the module declaration file



            <depends>
            <Mage_Adminhtml />
            </depends>


            right below <codePool>local</codePool>.



            place your new controller in app/code/local/Akina/Sales/controllers/Adminhtml/Sales/Order/CreateController.php

            and name the controller class Akina_Sales_Adminhtml_Sales_Order_CreateController.

            be careful at uppercase letters.






            share|improve this answer
























            • ' Not working '

              – Rohit Agrawal
              Jan 10 '17 at 11:23
















            0












            0








            0







            you need to add this in the module declaration file



            <depends>
            <Mage_Adminhtml />
            </depends>


            right below <codePool>local</codePool>.



            place your new controller in app/code/local/Akina/Sales/controllers/Adminhtml/Sales/Order/CreateController.php

            and name the controller class Akina_Sales_Adminhtml_Sales_Order_CreateController.

            be careful at uppercase letters.






            share|improve this answer













            you need to add this in the module declaration file



            <depends>
            <Mage_Adminhtml />
            </depends>


            right below <codePool>local</codePool>.



            place your new controller in app/code/local/Akina/Sales/controllers/Adminhtml/Sales/Order/CreateController.php

            and name the controller class Akina_Sales_Adminhtml_Sales_Order_CreateController.

            be careful at uppercase letters.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 10 '17 at 11:05









            MariusMarius

            166k28317677




            166k28317677













            • ' Not working '

              – Rohit Agrawal
              Jan 10 '17 at 11:23





















            • ' Not working '

              – Rohit Agrawal
              Jan 10 '17 at 11:23



















            ' Not working '

            – Rohit Agrawal
            Jan 10 '17 at 11:23







            ' Not working '

            – Rohit Agrawal
            Jan 10 '17 at 11:23















            0














            Along with the Marius answer



            In your config.xml change



            <adminhtml>
            <args>
            <modules>
            <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
            </modules>
            </args>
            </adminhtml>


            To



            <adminhtml>
            <args>
            <modules>
            <Akina_Sales_Adminhtml before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales_Adminhtml>
            </modules>
            </args>
            </adminhtml>





            share|improve this answer
























            • I have already done change but is not working

              – Rohit Agrawal
              Jan 10 '17 at 11:25
















            0














            Along with the Marius answer



            In your config.xml change



            <adminhtml>
            <args>
            <modules>
            <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
            </modules>
            </args>
            </adminhtml>


            To



            <adminhtml>
            <args>
            <modules>
            <Akina_Sales_Adminhtml before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales_Adminhtml>
            </modules>
            </args>
            </adminhtml>





            share|improve this answer
























            • I have already done change but is not working

              – Rohit Agrawal
              Jan 10 '17 at 11:25














            0












            0








            0







            Along with the Marius answer



            In your config.xml change



            <adminhtml>
            <args>
            <modules>
            <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
            </modules>
            </args>
            </adminhtml>


            To



            <adminhtml>
            <args>
            <modules>
            <Akina_Sales_Adminhtml before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales_Adminhtml>
            </modules>
            </args>
            </adminhtml>





            share|improve this answer













            Along with the Marius answer



            In your config.xml change



            <adminhtml>
            <args>
            <modules>
            <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
            </modules>
            </args>
            </adminhtml>


            To



            <adminhtml>
            <args>
            <modules>
            <Akina_Sales_Adminhtml before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales_Adminhtml>
            </modules>
            </args>
            </adminhtml>






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 10 '17 at 11:06









            PiyushPiyush

            4,81472053




            4,81472053













            • I have already done change but is not working

              – Rohit Agrawal
              Jan 10 '17 at 11:25



















            • I have already done change but is not working

              – Rohit Agrawal
              Jan 10 '17 at 11:25

















            I have already done change but is not working

            – Rohit Agrawal
            Jan 10 '17 at 11:25





            I have already done change but is not working

            – Rohit Agrawal
            Jan 10 '17 at 11:25











            0














            Please try



            <adminhtml>
            <args>
            <modules>
            <Akina_Sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales>
            </modules>
            </args>
            </adminhtml>


            Instead of



            <adminhtml>
            <args>
            <modules>
            <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
            </modules>
            </args>
            </adminhtml>





            share|improve this answer




























              0














              Please try



              <adminhtml>
              <args>
              <modules>
              <Akina_Sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales>
              </modules>
              </args>
              </adminhtml>


              Instead of



              <adminhtml>
              <args>
              <modules>
              <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
              </modules>
              </args>
              </adminhtml>





              share|improve this answer


























                0












                0








                0







                Please try



                <adminhtml>
                <args>
                <modules>
                <Akina_Sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales>
                </modules>
                </args>
                </adminhtml>


                Instead of



                <adminhtml>
                <args>
                <modules>
                <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
                </modules>
                </args>
                </adminhtml>





                share|improve this answer













                Please try



                <adminhtml>
                <args>
                <modules>
                <Akina_Sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</Akina_Sales>
                </modules>
                </args>
                </adminhtml>


                Instead of



                <adminhtml>
                <args>
                <modules>
                <sales before="Mage_Adminhtml">Akina_Sales_Adminhtml</sales>
                </modules>
                </args>
                </adminhtml>






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 16 '18 at 17:51









                Bhargav JoshiBhargav Joshi

                461314




                461314






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f153997%2fhow-can-i-override-admin-create-order-controller%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    迭戈·戈丁...

                    A phrase ”follow into" in a context The 2019 Stack Overflow Developer Survey Results Are...

                    1960s short story making fun of James Bond-style spy fiction The 2019 Stack Overflow Developer...