Hello,
if you want to go to step X directly after opening the checkout page, then you can use the “#step-0”, “#step-1”, “#step-2” hashes at the end of the checkout page’s URL. For example: https://example.org/checkout/#step-3 will go directly to step four when opening the checkout page.
If you want to go to step X after a JavaScript event, then you can use the “wpmc_switch_tab” hook. For example, the following JavaScript code will open the fourth step after clicking the page’s <h1> title:
jQuery(document).ready(function( $ ){
$('h1.entry-title').on('click', function() {
$('.woocommerce').trigger('wpmc_switch_tab', 3);
})
});
-
This reply was modified 5 years, 9 months ago by
SilkyPress.
-
This reply was modified 5 years, 9 months ago by
SilkyPress.