How do I enable free shipping in backend only (for order entry)












6















How do I enable free shipping as shipping method when we create order from admin panel ?










share|improve this question





























    6















    How do I enable free shipping as shipping method when we create order from admin panel ?










    share|improve this question



























      6












      6








      6


      2






      How do I enable free shipping as shipping method when we create order from admin panel ?










      share|improve this question
















      How do I enable free shipping as shipping method when we create order from admin panel ?







      magento-1.9 backend






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 7 mins ago









      Teja Bhagavan Kollepara

      2,94841847




      2,94841847










      asked Feb 10 '13 at 14:50









      snh_nlsnh_nl

      2,8631045101




      2,8631045101






















          3 Answers
          3






          active

          oldest

          votes


















          9














          Override



          app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php


          And add



              public function collectRates(Mage_Shipping_Model_Rate_Request $request)
          {
          if (!$this->getConfigFlag('active')) {
          return false;
          }

          if (!Mage::app()->getStore()->isAdmin())) {
          return false;
          }


          And set to active in backend



          You can place the code in local if you dont want to overwrite the core



          I can imagine that we add this as an extra option in backend settings and this way make it configurable.






          share|improve this answer


























          • NOw one needs to turn this into a simple extension that adds a config option to Freeshipping in settings (backend only yees/no). BUt this is above my programming skills

            – snh_nl
            Feb 25 '13 at 18:39











          • here ya go! and thanks for the clever idea. github.com/ryaan-anthony/Ip_Freeship

            – ryaan_anthony
            Mar 13 '15 at 18:21



















          3














          While in payment methods it is possible to activate them with a flag only on frontend and also on backend (but not vice-versa), for shipping methods there are no such flags at all.



          You could derive an own shipping method in a custom module and overwrite getAllowedMethods() to determine if the order is to be created in the frontend or in the backend,



          A very simple workaround would be to create a free-shipping cart rule with a promo code that only you know. This then can be simply entered in the backend.






          share|improve this answer
























          • Thanks Alex, SOme remakrs, I came across this code public function isAvailable($quote = null) { return (parent::isAvailable($quote) && Mage::app()->getStore()->isAdmin()); }code

            – snh_nl
            Feb 10 '13 at 19:26











          • And promo code is not an option. Because then Magento doesnt allow another promotion code (for example discount) ---- as such, we have never got it to work

            – snh_nl
            Feb 10 '13 at 19:28



















          0














          You would make collectRates() return empty unless it's being invoked via admin. How to know if its invoked via admin, well you could set a registry value.






          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%2f630%2fhow-do-i-enable-free-shipping-in-backend-only-for-order-entry%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









            9














            Override



            app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php


            And add



                public function collectRates(Mage_Shipping_Model_Rate_Request $request)
            {
            if (!$this->getConfigFlag('active')) {
            return false;
            }

            if (!Mage::app()->getStore()->isAdmin())) {
            return false;
            }


            And set to active in backend



            You can place the code in local if you dont want to overwrite the core



            I can imagine that we add this as an extra option in backend settings and this way make it configurable.






            share|improve this answer


























            • NOw one needs to turn this into a simple extension that adds a config option to Freeshipping in settings (backend only yees/no). BUt this is above my programming skills

              – snh_nl
              Feb 25 '13 at 18:39











            • here ya go! and thanks for the clever idea. github.com/ryaan-anthony/Ip_Freeship

              – ryaan_anthony
              Mar 13 '15 at 18:21
















            9














            Override



            app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php


            And add



                public function collectRates(Mage_Shipping_Model_Rate_Request $request)
            {
            if (!$this->getConfigFlag('active')) {
            return false;
            }

            if (!Mage::app()->getStore()->isAdmin())) {
            return false;
            }


            And set to active in backend



            You can place the code in local if you dont want to overwrite the core



            I can imagine that we add this as an extra option in backend settings and this way make it configurable.






            share|improve this answer


























            • NOw one needs to turn this into a simple extension that adds a config option to Freeshipping in settings (backend only yees/no). BUt this is above my programming skills

              – snh_nl
              Feb 25 '13 at 18:39











            • here ya go! and thanks for the clever idea. github.com/ryaan-anthony/Ip_Freeship

              – ryaan_anthony
              Mar 13 '15 at 18:21














            9












            9








            9







            Override



            app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php


            And add



                public function collectRates(Mage_Shipping_Model_Rate_Request $request)
            {
            if (!$this->getConfigFlag('active')) {
            return false;
            }

            if (!Mage::app()->getStore()->isAdmin())) {
            return false;
            }


            And set to active in backend



            You can place the code in local if you dont want to overwrite the core



            I can imagine that we add this as an extra option in backend settings and this way make it configurable.






            share|improve this answer















            Override



            app/code/core/Mage/Shipping/Model/Carrier/Freeshipping.php


            And add



                public function collectRates(Mage_Shipping_Model_Rate_Request $request)
            {
            if (!$this->getConfigFlag('active')) {
            return false;
            }

            if (!Mage::app()->getStore()->isAdmin())) {
            return false;
            }


            And set to active in backend



            You can place the code in local if you dont want to overwrite the core



            I can imagine that we add this as an extra option in backend settings and this way make it configurable.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 6 mins ago









            Teja Bhagavan Kollepara

            2,94841847




            2,94841847










            answered Feb 20 '13 at 9:03









            snh_nlsnh_nl

            2,8631045101




            2,8631045101













            • NOw one needs to turn this into a simple extension that adds a config option to Freeshipping in settings (backend only yees/no). BUt this is above my programming skills

              – snh_nl
              Feb 25 '13 at 18:39











            • here ya go! and thanks for the clever idea. github.com/ryaan-anthony/Ip_Freeship

              – ryaan_anthony
              Mar 13 '15 at 18:21



















            • NOw one needs to turn this into a simple extension that adds a config option to Freeshipping in settings (backend only yees/no). BUt this is above my programming skills

              – snh_nl
              Feb 25 '13 at 18:39











            • here ya go! and thanks for the clever idea. github.com/ryaan-anthony/Ip_Freeship

              – ryaan_anthony
              Mar 13 '15 at 18:21

















            NOw one needs to turn this into a simple extension that adds a config option to Freeshipping in settings (backend only yees/no). BUt this is above my programming skills

            – snh_nl
            Feb 25 '13 at 18:39





            NOw one needs to turn this into a simple extension that adds a config option to Freeshipping in settings (backend only yees/no). BUt this is above my programming skills

            – snh_nl
            Feb 25 '13 at 18:39













            here ya go! and thanks for the clever idea. github.com/ryaan-anthony/Ip_Freeship

            – ryaan_anthony
            Mar 13 '15 at 18:21





            here ya go! and thanks for the clever idea. github.com/ryaan-anthony/Ip_Freeship

            – ryaan_anthony
            Mar 13 '15 at 18:21













            3














            While in payment methods it is possible to activate them with a flag only on frontend and also on backend (but not vice-versa), for shipping methods there are no such flags at all.



            You could derive an own shipping method in a custom module and overwrite getAllowedMethods() to determine if the order is to be created in the frontend or in the backend,



            A very simple workaround would be to create a free-shipping cart rule with a promo code that only you know. This then can be simply entered in the backend.






            share|improve this answer
























            • Thanks Alex, SOme remakrs, I came across this code public function isAvailable($quote = null) { return (parent::isAvailable($quote) && Mage::app()->getStore()->isAdmin()); }code

              – snh_nl
              Feb 10 '13 at 19:26











            • And promo code is not an option. Because then Magento doesnt allow another promotion code (for example discount) ---- as such, we have never got it to work

              – snh_nl
              Feb 10 '13 at 19:28
















            3














            While in payment methods it is possible to activate them with a flag only on frontend and also on backend (but not vice-versa), for shipping methods there are no such flags at all.



            You could derive an own shipping method in a custom module and overwrite getAllowedMethods() to determine if the order is to be created in the frontend or in the backend,



            A very simple workaround would be to create a free-shipping cart rule with a promo code that only you know. This then can be simply entered in the backend.






            share|improve this answer
























            • Thanks Alex, SOme remakrs, I came across this code public function isAvailable($quote = null) { return (parent::isAvailable($quote) && Mage::app()->getStore()->isAdmin()); }code

              – snh_nl
              Feb 10 '13 at 19:26











            • And promo code is not an option. Because then Magento doesnt allow another promotion code (for example discount) ---- as such, we have never got it to work

              – snh_nl
              Feb 10 '13 at 19:28














            3












            3








            3







            While in payment methods it is possible to activate them with a flag only on frontend and also on backend (but not vice-versa), for shipping methods there are no such flags at all.



            You could derive an own shipping method in a custom module and overwrite getAllowedMethods() to determine if the order is to be created in the frontend or in the backend,



            A very simple workaround would be to create a free-shipping cart rule with a promo code that only you know. This then can be simply entered in the backend.






            share|improve this answer













            While in payment methods it is possible to activate them with a flag only on frontend and also on backend (but not vice-versa), for shipping methods there are no such flags at all.



            You could derive an own shipping method in a custom module and overwrite getAllowedMethods() to determine if the order is to be created in the frontend or in the backend,



            A very simple workaround would be to create a free-shipping cart rule with a promo code that only you know. This then can be simply entered in the backend.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 10 '13 at 17:28









            AlexAlex

            9,4381553113




            9,4381553113













            • Thanks Alex, SOme remakrs, I came across this code public function isAvailable($quote = null) { return (parent::isAvailable($quote) && Mage::app()->getStore()->isAdmin()); }code

              – snh_nl
              Feb 10 '13 at 19:26











            • And promo code is not an option. Because then Magento doesnt allow another promotion code (for example discount) ---- as such, we have never got it to work

              – snh_nl
              Feb 10 '13 at 19:28



















            • Thanks Alex, SOme remakrs, I came across this code public function isAvailable($quote = null) { return (parent::isAvailable($quote) && Mage::app()->getStore()->isAdmin()); }code

              – snh_nl
              Feb 10 '13 at 19:26











            • And promo code is not an option. Because then Magento doesnt allow another promotion code (for example discount) ---- as such, we have never got it to work

              – snh_nl
              Feb 10 '13 at 19:28

















            Thanks Alex, SOme remakrs, I came across this code public function isAvailable($quote = null) { return (parent::isAvailable($quote) && Mage::app()->getStore()->isAdmin()); }code

            – snh_nl
            Feb 10 '13 at 19:26





            Thanks Alex, SOme remakrs, I came across this code public function isAvailable($quote = null) { return (parent::isAvailable($quote) && Mage::app()->getStore()->isAdmin()); }code

            – snh_nl
            Feb 10 '13 at 19:26













            And promo code is not an option. Because then Magento doesnt allow another promotion code (for example discount) ---- as such, we have never got it to work

            – snh_nl
            Feb 10 '13 at 19:28





            And promo code is not an option. Because then Magento doesnt allow another promotion code (for example discount) ---- as such, we have never got it to work

            – snh_nl
            Feb 10 '13 at 19:28











            0














            You would make collectRates() return empty unless it's being invoked via admin. How to know if its invoked via admin, well you could set a registry value.






            share|improve this answer




























              0














              You would make collectRates() return empty unless it's being invoked via admin. How to know if its invoked via admin, well you could set a registry value.






              share|improve this answer


























                0












                0








                0







                You would make collectRates() return empty unless it's being invoked via admin. How to know if its invoked via admin, well you could set a registry value.






                share|improve this answer













                You would make collectRates() return empty unless it's being invoked via admin. How to know if its invoked via admin, well you could set a registry value.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 11 '13 at 21:35









                Karen BakerKaren Baker

                1,576622




                1,576622






























                    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%2f630%2fhow-do-i-enable-free-shipping-in-backend-only-for-order-entry%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

                    Polycentropodidae

                    Magento 2 Error message: Invalid state change requested

                    Paulmy