I’m using the following code in my functions.php file for the side widget. It was working fine, but now the side cart appears blank/empty, even though there are products in the cart. Is there something I need to change?
Thank you!
* * *
// Add cart side widget
function woodmart_cart_side_widget() {
if( ! whb_is_side_cart() ) return;
?>
<div class=”cart-widget-side”>
<div class=”widget-heading”>
<h3 class=”widget-title”><?php esc_html_e(‘Basket’, ‘woodmart’); ?></h3>
<?php esc_html_e(‘close’, ‘woodmart’); ?>
</div>
<div class=”widget woocommerce widget_shopping_cart”><div class=”widget_shopping_cart_content”></div></div>
</div>
<?php
}
add_action( ‘wp_footer’, ‘woodmart_cart_side_widget’, 140 );