How to add Buy now button at product single page in magento - 1.9?
I have developed one Website on magento-1.9 version. Everything is working fine. Now, i need to add Buy now button additionally beside to the add to cart button at Single product page.
magento-1.9 checkout buy-now customize
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 3 more comments
I have developed one Website on magento-1.9 version. Everything is working fine. Now, i need to add Buy now button additionally beside to the add to cart button at Single product page.
magento-1.9 checkout buy-now customize
bumped to the homepage by Community♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
i can see an add to cart already in product page?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:33
edited, please check
– Teja Bhagavan Kollepara
Oct 26 '16 at 9:34
what needs to be done if a customer clicks buy now?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:36
2
Check with magento.stackexchange.com/questions/123072/…
– Krishna ijjada
Oct 26 '16 at 9:39
2
You can also check with magento.stackexchange.com/questions/76925/…
– Krishna ijjada
Oct 26 '16 at 9:40
|
show 3 more comments
I have developed one Website on magento-1.9 version. Everything is working fine. Now, i need to add Buy now button additionally beside to the add to cart button at Single product page.
magento-1.9 checkout buy-now customize
I have developed one Website on magento-1.9 version. Everything is working fine. Now, i need to add Buy now button additionally beside to the add to cart button at Single product page.
magento-1.9 checkout buy-now customize
magento-1.9 checkout buy-now customize
edited Mar 2 '17 at 5:47
Teja Bhagavan Kollepara
asked Oct 26 '16 at 9:29
Teja Bhagavan KolleparaTeja Bhagavan Kollepara
3,00841949
3,00841949
bumped to the homepage by Community♦ 10 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♦ 10 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
i can see an add to cart already in product page?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:33
edited, please check
– Teja Bhagavan Kollepara
Oct 26 '16 at 9:34
what needs to be done if a customer clicks buy now?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:36
2
Check with magento.stackexchange.com/questions/123072/…
– Krishna ijjada
Oct 26 '16 at 9:39
2
You can also check with magento.stackexchange.com/questions/76925/…
– Krishna ijjada
Oct 26 '16 at 9:40
|
show 3 more comments
i can see an add to cart already in product page?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:33
edited, please check
– Teja Bhagavan Kollepara
Oct 26 '16 at 9:34
what needs to be done if a customer clicks buy now?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:36
2
Check with magento.stackexchange.com/questions/123072/…
– Krishna ijjada
Oct 26 '16 at 9:39
2
You can also check with magento.stackexchange.com/questions/76925/…
– Krishna ijjada
Oct 26 '16 at 9:40
i can see an add to cart already in product page?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:33
i can see an add to cart already in product page?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:33
edited, please check
– Teja Bhagavan Kollepara
Oct 26 '16 at 9:34
edited, please check
– Teja Bhagavan Kollepara
Oct 26 '16 at 9:34
what needs to be done if a customer clicks buy now?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:36
what needs to be done if a customer clicks buy now?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:36
2
2
Check with magento.stackexchange.com/questions/123072/…
– Krishna ijjada
Oct 26 '16 at 9:39
Check with magento.stackexchange.com/questions/123072/…
– Krishna ijjada
Oct 26 '16 at 9:39
2
2
You can also check with magento.stackexchange.com/questions/76925/…
– Krishna ijjada
Oct 26 '16 at 9:40
You can also check with magento.stackexchange.com/questions/76925/…
– Krishna ijjada
Oct 26 '16 at 9:40
|
show 3 more comments
2 Answers
2
active
oldest
votes
Create a new module with a new ControllerAction just like CartController::addAction() and write a redirect to checkout onepage.
Make a request to that function with the button "Buy Now".
add a comment |
I will give you 2 solutions:
Either
1: you create an observer checkout_cart_add_product_complete event to redirect to checkout whene you add a product instead a cart.
or
2: you rewrite app/code/core/Mage/Checkout/controllers/CartController.phpin your local codepool and rewrite the function protected function _goBack() and change at the end $this->_redirect('checkout/cart'); to $this->_redirect('checkout/onepage');
Can you tell me more clearly please > in your local codepool means ?
– Teja Bhagavan Kollepara
May 12 '17 at 10:44
app/code/local<-this is a local code pool, So to change the native behavior of magento, you must rewrite the file to not change directly in the core, it is forbidden. you can find many tutorials to know how to rewrite a cartController
– PЯINCƏ
May 13 '17 at 0:14
You mean, i need to create this CartController.php file in my local at the same path and need to edit that url right?
– Teja Bhagavan Kollepara
Nov 12 '17 at 13:52
No, you rewrite it in your local but just not the same path, refere you to this exemple magento.stackexchange.com/questions/92172/…
– PЯINCƏ
Nov 13 '17 at 8:49
add a comment |
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%2f142738%2fhow-to-add-buy-now-button-at-product-single-page-in-magento-1-9%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Create a new module with a new ControllerAction just like CartController::addAction() and write a redirect to checkout onepage.
Make a request to that function with the button "Buy Now".
add a comment |
Create a new module with a new ControllerAction just like CartController::addAction() and write a redirect to checkout onepage.
Make a request to that function with the button "Buy Now".
add a comment |
Create a new module with a new ControllerAction just like CartController::addAction() and write a redirect to checkout onepage.
Make a request to that function with the button "Buy Now".
Create a new module with a new ControllerAction just like CartController::addAction() and write a redirect to checkout onepage.
Make a request to that function with the button "Buy Now".
answered Jan 2 '17 at 21:20
MarcelMaruMarcelMaru
112
112
add a comment |
add a comment |
I will give you 2 solutions:
Either
1: you create an observer checkout_cart_add_product_complete event to redirect to checkout whene you add a product instead a cart.
or
2: you rewrite app/code/core/Mage/Checkout/controllers/CartController.phpin your local codepool and rewrite the function protected function _goBack() and change at the end $this->_redirect('checkout/cart'); to $this->_redirect('checkout/onepage');
Can you tell me more clearly please > in your local codepool means ?
– Teja Bhagavan Kollepara
May 12 '17 at 10:44
app/code/local<-this is a local code pool, So to change the native behavior of magento, you must rewrite the file to not change directly in the core, it is forbidden. you can find many tutorials to know how to rewrite a cartController
– PЯINCƏ
May 13 '17 at 0:14
You mean, i need to create this CartController.php file in my local at the same path and need to edit that url right?
– Teja Bhagavan Kollepara
Nov 12 '17 at 13:52
No, you rewrite it in your local but just not the same path, refere you to this exemple magento.stackexchange.com/questions/92172/…
– PЯINCƏ
Nov 13 '17 at 8:49
add a comment |
I will give you 2 solutions:
Either
1: you create an observer checkout_cart_add_product_complete event to redirect to checkout whene you add a product instead a cart.
or
2: you rewrite app/code/core/Mage/Checkout/controllers/CartController.phpin your local codepool and rewrite the function protected function _goBack() and change at the end $this->_redirect('checkout/cart'); to $this->_redirect('checkout/onepage');
Can you tell me more clearly please > in your local codepool means ?
– Teja Bhagavan Kollepara
May 12 '17 at 10:44
app/code/local<-this is a local code pool, So to change the native behavior of magento, you must rewrite the file to not change directly in the core, it is forbidden. you can find many tutorials to know how to rewrite a cartController
– PЯINCƏ
May 13 '17 at 0:14
You mean, i need to create this CartController.php file in my local at the same path and need to edit that url right?
– Teja Bhagavan Kollepara
Nov 12 '17 at 13:52
No, you rewrite it in your local but just not the same path, refere you to this exemple magento.stackexchange.com/questions/92172/…
– PЯINCƏ
Nov 13 '17 at 8:49
add a comment |
I will give you 2 solutions:
Either
1: you create an observer checkout_cart_add_product_complete event to redirect to checkout whene you add a product instead a cart.
or
2: you rewrite app/code/core/Mage/Checkout/controllers/CartController.phpin your local codepool and rewrite the function protected function _goBack() and change at the end $this->_redirect('checkout/cart'); to $this->_redirect('checkout/onepage');
I will give you 2 solutions:
Either
1: you create an observer checkout_cart_add_product_complete event to redirect to checkout whene you add a product instead a cart.
or
2: you rewrite app/code/core/Mage/Checkout/controllers/CartController.phpin your local codepool and rewrite the function protected function _goBack() and change at the end $this->_redirect('checkout/cart'); to $this->_redirect('checkout/onepage');
edited May 12 '17 at 9:24
answered Jan 2 '17 at 22:46
PЯINCƏPЯINCƏ
8,38931145
8,38931145
Can you tell me more clearly please > in your local codepool means ?
– Teja Bhagavan Kollepara
May 12 '17 at 10:44
app/code/local<-this is a local code pool, So to change the native behavior of magento, you must rewrite the file to not change directly in the core, it is forbidden. you can find many tutorials to know how to rewrite a cartController
– PЯINCƏ
May 13 '17 at 0:14
You mean, i need to create this CartController.php file in my local at the same path and need to edit that url right?
– Teja Bhagavan Kollepara
Nov 12 '17 at 13:52
No, you rewrite it in your local but just not the same path, refere you to this exemple magento.stackexchange.com/questions/92172/…
– PЯINCƏ
Nov 13 '17 at 8:49
add a comment |
Can you tell me more clearly please > in your local codepool means ?
– Teja Bhagavan Kollepara
May 12 '17 at 10:44
app/code/local<-this is a local code pool, So to change the native behavior of magento, you must rewrite the file to not change directly in the core, it is forbidden. you can find many tutorials to know how to rewrite a cartController
– PЯINCƏ
May 13 '17 at 0:14
You mean, i need to create this CartController.php file in my local at the same path and need to edit that url right?
– Teja Bhagavan Kollepara
Nov 12 '17 at 13:52
No, you rewrite it in your local but just not the same path, refere you to this exemple magento.stackexchange.com/questions/92172/…
– PЯINCƏ
Nov 13 '17 at 8:49
Can you tell me more clearly please > in your local codepool means ?
– Teja Bhagavan Kollepara
May 12 '17 at 10:44
Can you tell me more clearly please > in your local codepool means ?
– Teja Bhagavan Kollepara
May 12 '17 at 10:44
app/code/
local<-this is a local code pool, So to change the native behavior of magento, you must rewrite the file to not change directly in the core, it is forbidden. you can find many tutorials to know how to rewrite a cartController– PЯINCƏ
May 13 '17 at 0:14
app/code/
local<-this is a local code pool, So to change the native behavior of magento, you must rewrite the file to not change directly in the core, it is forbidden. you can find many tutorials to know how to rewrite a cartController– PЯINCƏ
May 13 '17 at 0:14
You mean, i need to create this CartController.php file in my local at the same path and need to edit that url right?
– Teja Bhagavan Kollepara
Nov 12 '17 at 13:52
You mean, i need to create this CartController.php file in my local at the same path and need to edit that url right?
– Teja Bhagavan Kollepara
Nov 12 '17 at 13:52
No, you rewrite it in your local but just not the same path, refere you to this exemple magento.stackexchange.com/questions/92172/…
– PЯINCƏ
Nov 13 '17 at 8:49
No, you rewrite it in your local but just not the same path, refere you to this exemple magento.stackexchange.com/questions/92172/…
– PЯINCƏ
Nov 13 '17 at 8:49
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%2f142738%2fhow-to-add-buy-now-button-at-product-single-page-in-magento-1-9%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

i can see an add to cart already in product page?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:33
edited, please check
– Teja Bhagavan Kollepara
Oct 26 '16 at 9:34
what needs to be done if a customer clicks buy now?
– Shyam Krishna Sreekumar
Oct 26 '16 at 9:36
2
Check with magento.stackexchange.com/questions/123072/…
– Krishna ijjada
Oct 26 '16 at 9:39
2
You can also check with magento.stackexchange.com/questions/76925/…
– Krishna ijjada
Oct 26 '16 at 9:40