"Continue Shopping" Link on the EDD Checkout
Adds a "Continue shopping" link below the Easy Digital Downloads checkout cart, taking buyers back to your products to add more.
Opens WPIDE on
Code
$wpide_edd_continue_url = ''; // Empty uses the downloads archive.
add_action( 'edd_cart_footer_buttons', function () use ( $wpide_edd_continue_url ) {
$url = $wpide_edd_continue_url ? $wpide_edd_continue_url : get_post_type_archive_link( 'download' );
printf( '<a class="wpide-edd-continue" href="%1$s" style="margin-right:1em">← %2$s</a>', esc_url( $url ? $url : home_url( '/' ) ), esc_html( 'Continue shopping' ) );
}, 5 );
Notes
Set $wpide_edd_continue_url to your products page; by default it uses the downloads archive or home page.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.