How to move the Proceed to Checkout button












0














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










share|improve this question
























  • 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
















0














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










share|improve this question
























  • 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














0












0








0







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










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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










1 Answer
1






active

oldest

votes


















-1














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"/>





share|improve this answer










New contributor




Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • <move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
    – Nitin Singhal
    yesterday











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%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









-1














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"/>





share|improve this answer










New contributor




Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • <move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
    – Nitin Singhal
    yesterday
















-1














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"/>





share|improve this answer










New contributor




Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • <move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
    – Nitin Singhal
    yesterday














-1












-1








-1






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"/>





share|improve this answer










New contributor




Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









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"/>






share|improve this answer










New contributor




Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited yesterday









PeterJ

105338




105338






New contributor




Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered yesterday









Nitin Singhal

1




1




New contributor




Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Nitin Singhal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • <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




<move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
– Nitin Singhal
yesterday


















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.





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.




draft saved


draft discarded














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





















































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

1300-talet

1300-talet

Display a custom attribute below product name in the front-end Magento 1.9.3.8