All customers have a settled default shipping address so right now the shipment step is a bit redundant, how can I jump this step in Magento 2?
I managed to alter vendor\magento\module-checkout\view\frontend\templates\onepage\link.phtml
(For test only) to then add:
<?php if ($block->isPossibleOnepageCheckout()):?>
<button type="button"
data-role="proceed-to-checkout"
title="<?php /* @escapeNotVerified */ echo __('Proceed to Checkout') ?>"
data-mage-init='{"Magento_Checkout/js/proceed-to-checkout":{"checkoutUrl":"<?php /* @escapeNotVerified */ echo $block->getCheckoutUrl().'#payment'; ?>"}}'
class="action primary checkout<?php echo($block->isDisabled()) ? ' disabled' : ''; ?>"
<?php if ($block->isDisabled()):?>disabled="disabled"<?php endif; ?>>
<span><?php /* @escapeNotVerified */ echo __('Proceed to Checkout') ?></span>
</button>
<?php endif?>
Notice the #payment anchor in:
data-mage-init='{"Magento_Checkout/js/proceed-to-checkout":{"checkoutUrl":"<?php /* @escapeNotVerified */ echo $block->getCheckoutUrl().'#payment'; ?>"}}'
The checkout goes through, it takes me directly to review and payment (final step) step but when click on the checkout button to finalize the order an error message appears saying that a shipment method has not been established
If a go back 1 step I can see the shipment address loaded
Magento is 2.1.1