Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #26043

    Dear Kriesi team,

    The cart message “No products in the cart.”, shown when mouse is over an empty cart, has disappeared.

    A thin blank square is showing instead

    Any suggestions? What part of the code should we check and update?

    #129103

    As well the “Add to cart” functionality is not working (circle keeps spinning)

    #129104

    Fixed after restoring from a backup. No idea what might have occurred.

    #129105

    Hi jacobom,

    I’m glad you were able to fix the issue. Did you recently update a plugin, install a new plugin or make any changes to any php files? If it doesn’t happen again its a non issue but if it does knowing what was changed before hand will allow us to diagnose what might have happened.

    Regards,

    Devin

    #129106

    Hello, I am having the same problem on my local development server. There is no text when the cart is empty on the hover message. Thanks.

    #129107

    We’ll look into it for the next update. A quick fix would be to replace following code in wp-contentthemesrepleteconfig-woocommercewoocommerce-mod.js

    if(counter == 10)
    {
    var cur_total = jQuery('.cart_dropdown:eq(0) .cart_subtotal:eq(0) .amount'),
    symbol_pos = isNaN(cur_total.text().charAt(0)) ? "before" : "after",
    symbol = cur_total.text().replace(/d|.|,|-|_/g,'');

    symbol_pos == "after" ? cur_total.html("0" + symbol) : cur_total.html(symbol + "0");
    }

    with

    if(counter == 10)
    {
    var cur_total = jQuery('.cart_dropdown:eq(0) .cart_subtotal:eq(0) .amount'),
    symbol_pos = isNaN(cur_total.text().charAt(0)) ? "before" : "after",
    symbol = cur_total.text().replace(/d|.|,|-|_/g,'');

    symbol_pos == "after" ? cur_total.html("0" + symbol) : cur_total.html(symbol + "0");
    }

    jQuery('.dropdown_widget.dropdown_widget_cart').html('<p class="avia_empty_cart">No products in the cart.</p>');

    #129108

    This appears to have been fixed for the latest update. Thanks!

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

The topic ‘Empty cart message dissapeared’ is closed to new replies.