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

    vFSS7tz.png

    any ideas? i can provide login details no problem…

    latest version of everything..

    i did update my woocommerce-mod.js but its still occuring.

    It also does this when you click add to cart from a product category

    2fJ5ljO.png

    #119197
    #119198

    hi i followed this but if i go to /shop/ and click the add to cart button when hovering over a product it still produces “undefined”

    #119199

    Hi,

    I have encountered 3 users with the same report. The code Peter suggested fixed it for them.

    Please open repleteconfig-woocommercewoocommerce-mod.js, find this code

    function update_cart_dropdown()
    {
    var menu_cart = jQuery('.cart_dropdown'),
    dropdown_cart = menu_cart.find('.dropdown_widget_cart:eq(0)'),
    subtotal = menu_cart.find('.cart_subtotal'),
    subtotal_new = dropdown_cart.find('.total .amount'),
    tax = dropdown_cart.find('.total small');
    setTimeout(function(){ subtotal.html(subtotal_new.html() + ' ' + tax.html()); }, 500);
    }

    Replace it with this

    function update_cart_dropdown()
    {
    var menu_cart = jQuery('.cart_dropdown'),
    dropdown_cart = menu_cart.find('.dropdown_widget_cart:eq(0)'),
    subtotal = menu_cart.find('.cart_subtotal'),
    subtotal_new = dropdown_cart.find('.total .amount'),
    tax = dropdown_cart.find('.total small'),
    taxtext = tax.html();
    if(typeof taxtext == 'undefined' || taxtext == 'undefined')
    {
    taxtext = '';
    }
    else
    {
    taxtext = ' ' + taxtext;
    }

    setTimeout(function(){ subtotal.html(subtotal_new.html() + taxtext); }, 500);
    }

    Please remove browser cache then reload the page.

    Regards,

    Ismael

    #119200

    This helped me as well – thanks so much for your great support!

    #119201

    Hey,

    Glad it worked for you. :)

    Cheers,

    Ismael

    #119202

    hello, justa quick update i’ve created a video, it shows how on teh products category page i get undefined still, and on the projects page it works as expected :)

    look forward to your reply :)

    http://www.youtube.com/watch?v=tf0b-F7oNBQ&feature=youtu.be

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

The topic ‘Menu Cart Area adding 'undefined' next to cart price’ is closed to new replies.