FunnelKit
FunnelKit Documentation
Get unstuck with our helpful reference material

Show a Cart Button On a Sliding Cart

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:

Note: For more details on how to add a code snippet, check our documentation. 

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>';
});
Add View Cart Button on Side Cart

Step 2: Test the cart button

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

preview Add View Cart Button on Side Cart


Ready to Transform Your Store?
Join 39,415+ successful store owners who trust FunnelKit to power their businesses.
Conversion Optimized Checkout Pages
Increase Revenue with Smart Upsells
Capture Emails & Recover Abandoned Carts
Automate Winbacks & Repeat Sales
941+ 5 star reviews on WordPress.org
Transform your store to power your business with FunnelKit
🚀 Maximize Your Profit with FunnelKit – Highest Rated with 941+ 5-Star Reviews
Get Started