Skip to content

Commit

Permalink
Merge pull request #542 from magento-folks/MAGETWO-40559
Browse files Browse the repository at this point in the history
[Folks] MAGETWO-40559: [GITHUB] 1.0.0 Beta 1 JS Error when click 'Go to Checkout...
  • Loading branch information
vpelipenko committed Aug 19, 2015
2 parents 85ab7c3 + 56e3e55 commit 5fbc6b4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 43 deletions.

This file was deleted.

4 changes: 0 additions & 4 deletions app/code/Magento/Checkout/etc/frontend/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
<plugin name="checkout-session-depersonalize"
type="Magento\Checkout\Model\Layout\DepersonalizePlugin" sortOrder="20"/>
</type>
<type name="Magento\Customer\Block\Account\AuthenticationPopup">
<plugin name="authentication-popup-checkout-url"
type="Magento\Checkout\Model\Customer\Autentication\ConfigPlugin" sortOrder="20"/>
</type>
<type name="Magento\Customer\CustomerData\SectionPoolInterface">
<arguments>
<argument name="sectionSourceMap" xsi:type="array">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<button type="button"
data-role="proceed-to-checkout"
title="<?php echo __('Proceed to Checkout') ?>"
data-mage-init='{"Magento_Checkout/js/proceed-to-checkout":{}}'
data-mage-init='{"Magento_Checkout/js/proceed-to-checkout":{"checkoutUrl":"<?php echo $block->getCheckoutUrl(); ?>"}}'
class="action primary checkout<?php echo($block->isDisabled()) ? ' disabled' : ''; ?>"
<?php if ($block->isDisabled()):?>disabled="disabled"<?php endif; ?>>
<span><?php echo __('Proceed to Checkout') ?></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ define([
authenticationPopup.showModal();
return false;
}
location.href = window.authenticationPopup.checkoutUrl;
location.href = config.checkoutUrl;
});

};
Expand Down

0 comments on commit 5fbc6b4

Please sign in to comment.