How do I enable free shipping in backend only (for order entry)
How do I enable free shipping as shipping method when we create order from admin panel ?
magento-1.9 backend
add a comment |
How do I enable free shipping as shipping method when we create order from admin panel ?
magento-1.9 backend
add a comment |
How do I enable free shipping as shipping method when we create order from admin panel ?
magento-1.9 backend
How do I enable free shipping as shipping method when we create order from admin panel ?
magento-1.9 backend
magento-1.9 backend
edited 6 mins ago
Teja Bhagavan Kollepara
2,94841847
2,94841847
asked Feb 10 '13 at 14:50
snh_nlsnh_nl
2,8631045101
2,8631045101
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
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
add a comment |
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.
Thanks Alex, SOme remakrs, I came across thiscode
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
add a comment |
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
edited 4 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
add a comment |
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
add a comment |
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.
Thanks Alex, SOme remakrs, I came across thiscode
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
add a comment |
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.
Thanks Alex, SOme remakrs, I came across thiscode
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
add a comment |
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.
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.
answered Feb 10 '13 at 17:28
AlexAlex
9,4381553113
9,4381553113
Thanks Alex, SOme remakrs, I came across thiscode
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
add a comment |
Thanks Alex, SOme remakrs, I came across thiscode
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Feb 11 '13 at 21:35
Karen BakerKaren Baker
1,576622
1,576622
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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