Home Forums WoodMart support forum Cart side widget

Cart side widget

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #219387

    mdgrubb
    Participant

    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 );

    #219401

    Artem Temos
    Keymaster

    Hello,

    Sorry, what is this code made for? Where did you get it? Please, clarify this so we can better understand your question.

    Regards

    #219602

    mdgrubb
    Participant

    Hi there,

    I got this code snippet from this forum.

    It powers the cart side widget for Woodmart. But now I’m seeing errors associated with it, so I’m wondering if something needs to be changed.

    Thanks!

    #219656

    Artem Temos
    Keymaster

    Probably, this code is for old version of the theme and it is not compatible with the latest version. Please, send us a topic where did you get it.

Viewing 4 posts - 1 through 4 (of 4 total)