How to redirect to OnePageCheckout page when click the checkout button directly.
Currently we have to go to registration page and manually click as guest.
~/Views/Shared/Component/OrderSummary/Default.cshtml page.
~/Themes/ThemeName/Views/Shared/Component/OrderSummary/Default.cshtml page.
<script type="text/javascript">
$("#checkout").click(function(e) {if($('#termsofservice').prop('checked') == true){ $('#shopping-cart-form').attr('action', 'onepagecheckout'); }});
</script>