How to add cart button in sidebar mini cart
-
Hi, firstly I would like to thank you for your amazing plugin! I really mean it and it’s really good. So many features in the free version and please keep it this way.
I wanted to know how can I add a cart button like “Go to cart” or “View Cart” in the sidebar mini cart, I couldn’t find any setting for that. But I did find the function code from your GitHub page. I am using the below following code.
// Add cart button to side mini cartadd_action( ‘fkcart_before_checkout_button’, function(){
?>
<a id=”fkcart-checkout-button” class=”button” href=”dynamic_wocommerce_cart_url_here”>View Cart</a>
<?php
} );
I am looking forward to us this plugin for my future projects so I wanted to know if is it safe to use the function code because I am worried that future updates might crash the website due to the discontinuation of the above code. Else could you add a view cart button in your future updates?Thank you once again!
Regards,
Tarjeet Singh
- The topic ‘How to add cart button in sidebar mini cart’ is closed to new replies.