How to move the Proceed to Checkout button
I trying to move the app/design/frontend/default/default/template/checkout/onepage/link.phtml
template that has the Proceed to Checkout button into the cart.phtml
template. Copy and paste gives errors :) predictably!
How can I do that using the local.xml?
The reason is, I want it in a certain location and not all the methods just that single button.
Thank you
UPDATE
Here's where I'm trying put the button in the cart.phtml
<div class="cart-collaterals">
<div class="totals">
<!--RIGHT HERE-->
<?php echo $this->getChildHtml('totals'); ?>
<?php echo $this->getChildHtml('coupon') ?>
<?php echo $this->getChildHtml('giftcards') ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
</div>
</div>
<div class="cart-additional">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_additional')->toHTML(); ?>
</div>
</div>
When I just move the code for the button i.e. link.phtml into cart.phtml template like below I get a Magento error page and report (below).
<div class="cart-collaterals">
<div class="totals">
<!--BUTTON HERE START-->
<?php if ($this->isPossibleOnepageCheckout()):?>
<div class="checkout-button-holder">
<button type="button" title="<?php echo $this->__('I'm Ready to Checkout') ?>" id="button-onepage-checkout" class="button button-onepage-checkout<?php if ($this->isDisabled()):?> no-checkout<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?> onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';">
<?php echo $this->__('I'm Ready to Checkout') ?></button>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_button_seals')->toHTML(); ?>
</div>
<?php endif?>
<!--BUTTON HERE END-->
<?php echo $this->getChildHtml('totals'); ?>
<?php echo $this->getChildHtml('coupon') ?>
<?php echo $this->getChildHtml('giftcards') ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
</div>
</div>
<div class="cart-additional">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_additional')->toHTML(); ?>
</div>
Get error: a:5:{i:0;s:78:"Invalid method Mage_Checkout_Block_Cart::isPossibleOnepageCheckout(Array
magento-1.9 checkout local.xml
|
show 2 more comments
I trying to move the app/design/frontend/default/default/template/checkout/onepage/link.phtml
template that has the Proceed to Checkout button into the cart.phtml
template. Copy and paste gives errors :) predictably!
How can I do that using the local.xml?
The reason is, I want it in a certain location and not all the methods just that single button.
Thank you
UPDATE
Here's where I'm trying put the button in the cart.phtml
<div class="cart-collaterals">
<div class="totals">
<!--RIGHT HERE-->
<?php echo $this->getChildHtml('totals'); ?>
<?php echo $this->getChildHtml('coupon') ?>
<?php echo $this->getChildHtml('giftcards') ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
</div>
</div>
<div class="cart-additional">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_additional')->toHTML(); ?>
</div>
</div>
When I just move the code for the button i.e. link.phtml into cart.phtml template like below I get a Magento error page and report (below).
<div class="cart-collaterals">
<div class="totals">
<!--BUTTON HERE START-->
<?php if ($this->isPossibleOnepageCheckout()):?>
<div class="checkout-button-holder">
<button type="button" title="<?php echo $this->__('I'm Ready to Checkout') ?>" id="button-onepage-checkout" class="button button-onepage-checkout<?php if ($this->isDisabled()):?> no-checkout<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?> onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';">
<?php echo $this->__('I'm Ready to Checkout') ?></button>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_button_seals')->toHTML(); ?>
</div>
<?php endif?>
<!--BUTTON HERE END-->
<?php echo $this->getChildHtml('totals'); ?>
<?php echo $this->getChildHtml('coupon') ?>
<?php echo $this->getChildHtml('giftcards') ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
</div>
</div>
<div class="cart-additional">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_additional')->toHTML(); ?>
</div>
Get error: a:5:{i:0;s:78:"Invalid method Mage_Checkout_Block_Cart::isPossibleOnepageCheckout(Array
magento-1.9 checkout local.xml
Where do you want to move and why you want to move it cart.phtml. There is already a code which calls the link.phtml
– Sukumar Gorai
Jul 3 '18 at 12:50
See my update above. The reason I can't just move the code is because with it comes all other payment buttons like PayPal etc.
– Freejoy
Jul 3 '18 at 13:03
What is the error you are getting?
– Sukumar Gorai
Jul 3 '18 at 13:05
See the update again : )
– Freejoy
Jul 3 '18 at 13:22
Are you using any extension? Because there is no such code <?php if ($this->isPossibleOnepageCheckout()):?> in default cart.phtml
– Sukumar Gorai
Jul 3 '18 at 14:06
|
show 2 more comments
I trying to move the app/design/frontend/default/default/template/checkout/onepage/link.phtml
template that has the Proceed to Checkout button into the cart.phtml
template. Copy and paste gives errors :) predictably!
How can I do that using the local.xml?
The reason is, I want it in a certain location and not all the methods just that single button.
Thank you
UPDATE
Here's where I'm trying put the button in the cart.phtml
<div class="cart-collaterals">
<div class="totals">
<!--RIGHT HERE-->
<?php echo $this->getChildHtml('totals'); ?>
<?php echo $this->getChildHtml('coupon') ?>
<?php echo $this->getChildHtml('giftcards') ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
</div>
</div>
<div class="cart-additional">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_additional')->toHTML(); ?>
</div>
</div>
When I just move the code for the button i.e. link.phtml into cart.phtml template like below I get a Magento error page and report (below).
<div class="cart-collaterals">
<div class="totals">
<!--BUTTON HERE START-->
<?php if ($this->isPossibleOnepageCheckout()):?>
<div class="checkout-button-holder">
<button type="button" title="<?php echo $this->__('I'm Ready to Checkout') ?>" id="button-onepage-checkout" class="button button-onepage-checkout<?php if ($this->isDisabled()):?> no-checkout<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?> onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';">
<?php echo $this->__('I'm Ready to Checkout') ?></button>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_button_seals')->toHTML(); ?>
</div>
<?php endif?>
<!--BUTTON HERE END-->
<?php echo $this->getChildHtml('totals'); ?>
<?php echo $this->getChildHtml('coupon') ?>
<?php echo $this->getChildHtml('giftcards') ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
</div>
</div>
<div class="cart-additional">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_additional')->toHTML(); ?>
</div>
Get error: a:5:{i:0;s:78:"Invalid method Mage_Checkout_Block_Cart::isPossibleOnepageCheckout(Array
magento-1.9 checkout local.xml
I trying to move the app/design/frontend/default/default/template/checkout/onepage/link.phtml
template that has the Proceed to Checkout button into the cart.phtml
template. Copy and paste gives errors :) predictably!
How can I do that using the local.xml?
The reason is, I want it in a certain location and not all the methods just that single button.
Thank you
UPDATE
Here's where I'm trying put the button in the cart.phtml
<div class="cart-collaterals">
<div class="totals">
<!--RIGHT HERE-->
<?php echo $this->getChildHtml('totals'); ?>
<?php echo $this->getChildHtml('coupon') ?>
<?php echo $this->getChildHtml('giftcards') ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
</div>
</div>
<div class="cart-additional">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_additional')->toHTML(); ?>
</div>
</div>
When I just move the code for the button i.e. link.phtml into cart.phtml template like below I get a Magento error page and report (below).
<div class="cart-collaterals">
<div class="totals">
<!--BUTTON HERE START-->
<?php if ($this->isPossibleOnepageCheckout()):?>
<div class="checkout-button-holder">
<button type="button" title="<?php echo $this->__('I'm Ready to Checkout') ?>" id="button-onepage-checkout" class="button button-onepage-checkout<?php if ($this->isDisabled()):?> no-checkout<?php endif; ?>"<?php if ($this->isDisabled()):?> disabled="disabled"<?php endif; ?> onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';">
<?php echo $this->__('I'm Ready to Checkout') ?></button>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_button_seals')->toHTML(); ?>
</div>
<?php endif?>
<!--BUTTON HERE END-->
<?php echo $this->getChildHtml('totals'); ?>
<?php echo $this->getChildHtml('coupon') ?>
<?php echo $this->getChildHtml('giftcards') ?>
<?php if(!$this->hasError()): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php echo $this->getChildHtml('checkout_cart_widget') ?>
</div>
</div>
<div class="cart-additional">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('cart_additional')->toHTML(); ?>
</div>
Get error: a:5:{i:0;s:78:"Invalid method Mage_Checkout_Block_Cart::isPossibleOnepageCheckout(Array
magento-1.9 checkout local.xml
magento-1.9 checkout local.xml
edited Jul 3 '18 at 14:07
asked Jul 3 '18 at 12:48
Freejoy
444924
444924
Where do you want to move and why you want to move it cart.phtml. There is already a code which calls the link.phtml
– Sukumar Gorai
Jul 3 '18 at 12:50
See my update above. The reason I can't just move the code is because with it comes all other payment buttons like PayPal etc.
– Freejoy
Jul 3 '18 at 13:03
What is the error you are getting?
– Sukumar Gorai
Jul 3 '18 at 13:05
See the update again : )
– Freejoy
Jul 3 '18 at 13:22
Are you using any extension? Because there is no such code <?php if ($this->isPossibleOnepageCheckout()):?> in default cart.phtml
– Sukumar Gorai
Jul 3 '18 at 14:06
|
show 2 more comments
Where do you want to move and why you want to move it cart.phtml. There is already a code which calls the link.phtml
– Sukumar Gorai
Jul 3 '18 at 12:50
See my update above. The reason I can't just move the code is because with it comes all other payment buttons like PayPal etc.
– Freejoy
Jul 3 '18 at 13:03
What is the error you are getting?
– Sukumar Gorai
Jul 3 '18 at 13:05
See the update again : )
– Freejoy
Jul 3 '18 at 13:22
Are you using any extension? Because there is no such code <?php if ($this->isPossibleOnepageCheckout()):?> in default cart.phtml
– Sukumar Gorai
Jul 3 '18 at 14:06
Where do you want to move and why you want to move it cart.phtml. There is already a code which calls the link.phtml
– Sukumar Gorai
Jul 3 '18 at 12:50
Where do you want to move and why you want to move it cart.phtml. There is already a code which calls the link.phtml
– Sukumar Gorai
Jul 3 '18 at 12:50
See my update above. The reason I can't just move the code is because with it comes all other payment buttons like PayPal etc.
– Freejoy
Jul 3 '18 at 13:03
See my update above. The reason I can't just move the code is because with it comes all other payment buttons like PayPal etc.
– Freejoy
Jul 3 '18 at 13:03
What is the error you are getting?
– Sukumar Gorai
Jul 3 '18 at 13:05
What is the error you are getting?
– Sukumar Gorai
Jul 3 '18 at 13:05
See the update again : )
– Freejoy
Jul 3 '18 at 13:22
See the update again : )
– Freejoy
Jul 3 '18 at 13:22
Are you using any extension? Because there is no such code <?php if ($this->isPossibleOnepageCheckout()):?> in default cart.phtml
– Sukumar Gorai
Jul 3 '18 at 14:06
Are you using any extension? Because there is no such code <?php if ($this->isPossibleOnepageCheckout()):?> in default cart.phtml
– Sukumar Gorai
Jul 3 '18 at 14:06
|
show 2 more comments
1 Answer
1
active
oldest
votes
Try the below code in your checkout_cart_index.xml file:
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
New contributor
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
– Nitin Singhal
yesterday
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%2f232190%2fhow-to-move-the-proceed-to-checkout-button%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try the below code in your checkout_cart_index.xml file:
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
New contributor
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
– Nitin Singhal
yesterday
add a comment |
Try the below code in your checkout_cart_index.xml file:
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
New contributor
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
– Nitin Singhal
yesterday
add a comment |
Try the below code in your checkout_cart_index.xml file:
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
New contributor
Try the below code in your checkout_cart_index.xml file:
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
New contributor
edited yesterday
PeterJ
105338
105338
New contributor
answered yesterday
Nitin Singhal
1
1
New contributor
New contributor
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
– Nitin Singhal
yesterday
add a comment |
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
– Nitin Singhal
yesterday
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
– Nitin Singhal
yesterday
<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
– Nitin Singhal
yesterday
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f232190%2fhow-to-move-the-proceed-to-checkout-button%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
Where do you want to move and why you want to move it cart.phtml. There is already a code which calls the link.phtml
– Sukumar Gorai
Jul 3 '18 at 12:50
See my update above. The reason I can't just move the code is because with it comes all other payment buttons like PayPal etc.
– Freejoy
Jul 3 '18 at 13:03
What is the error you are getting?
– Sukumar Gorai
Jul 3 '18 at 13:05
See the update again : )
– Freejoy
Jul 3 '18 at 13:22
Are you using any extension? Because there is no such code <?php if ($this->isPossibleOnepageCheckout()):?> in default cart.phtml
– Sukumar Gorai
Jul 3 '18 at 14:06