has anyone addressed this? i’m getting reports of this error on my production site and need to resolve it asap.
since this is causing customers to make duplicate orders on my site (they think their order failed), I submitted a bug report on it. if anyone has found a solution already, please share.
// REMOVE THESE LINES: <?php if ($this->canPrint()) :?> <?php echo $this->__('Click <a href="%s" target="_blank">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?> <?php endif;?>
I will post more information after I’ll find out what went wrong.
thank you for the quick resolution. i noticed on a more recent install that the type was already set to “checkout/onepage_success”. when i run MagentoConnect updates, do the layouts in the default theme not get updated?
i also get the “Invalid method Mage_Core_Block_Template::canPrint” error, BUT
a) i have Magento Version 1.0.19870.1 installed
b) i have the T&C;extension installed (for german laws..)
c) SSL enabled checkout…
d) i come to this thread because of the checkout problem here:
http://www.magentocommerce.com/boards/viewthread/7108/P15/
e) i fixed it as “stefan” from “m_zentrale” described:
f) finally i landed in this thread and tried to fix the code in layout/checkout.xml, BUT it’s already there !
There is nothing to fix, but the problem still exists !
g) ==> IT IS WORKING with editing app/design/frontend/default/default/template/checkout/success.phtml:
// REMOVE THESE LINES: <?php if ($this->canPrint()) :?> <?php echo $this->__('Click <a href="%s" target="_blank">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?> <?php endif;?>
Any help will be highly appreciated
Printing would be nice as well, isn’t it ?!
a) i have Magento Version 1.0.19870.1 installed
f) finally i landed in this thread and tried to fix the code in layout/checkout.xml, BUT it’s already there !
There is nothing to fix, but the problem still exists !
g) ==> IT IS WORKING with editing app/design/frontend/default/default/template/checkout/success.phtml:
Ditto.
Any new information about the Invalid method Mage_Core_Block_Template::canPrint(Array problem?
It would be nice to give the customer possibility to print his/her order at the end of order process…
hmmm ... it worked for me. Have a look if there are other block type="core/XXX" in combination with checkout. I guess Magento moved the type from core to checkout but this wasn’t carried over to the Terms & Condition package.