In this documentation, we will show how to add a cart button on a slide cart by FunnelKit Cart.
By default, FunnelKit Cart displays a cart count of zero when no items are added to the cart, as shown below.
Steps To Show the View Cart Button on FunnelKit Cart
Step 1: Add a custom code snippet to your site:
To add this code, you can use a plugin like Code Snippets or add it to your child theme’s functions.php file:
In the code, you can set the background color and other styling options.
add_action( 'fkcart_before_checkout_button', function() {
echo '<p><a href="' . esc_url( wc_get_cart_url() ) . '" style="background: #e4dfdf; padding: 10px 10px; margin: 10px auto -7px; width: 92%; text-align: center; border-radius: 10px; display:block;">View Cart</a></p>';
});

Step 2: Test the cart button
This will display the “View Cart” button above the main button, as shown here:



