Menu Close

Skip Checkout for MyLisitng Theme Woocommerce

Skip Checkout for MyLisitng Theme Woocommerce

This CODE lets you SKIP the Checkout process if you are using the My Listing Theme by 27 Collective

// // Do skip checkout for any listing package
add_filter( ‘mylisting\packages\free\skip-checkout’, ‘__return_true’ );

function woocommerce_button_proceed_to_checkout() { ?>
<a href=”<?php echo esc_url( wc_get_checkout_url() ); ?>” class=”checkout-button button alt wc-forward”>
<?php esc_html_e( ‘Add to your Account’, ‘woocommerce’ ); ?>
</a>
<?php
}
add_filter( ‘woocommerce_order_button_text’, ‘woo_custom_order_button_text’ );