• Resolved awelsh

    (@awelsh)


    Hi,

    My cart is not updating unless you refresh the page. I’m using eshop. I followed the following advice but it didn’t make any difference.

    [ Moderator note: please wrap code in backticks or use the code button. ]

    $("div.wpsc_buy_button_container > input.wpsc_buy_button").click(function(){
    WPMenucart_Timeout();
    });

    change it to read:

    $("input.wpsc_buy_button").click(function(){
    WPMenucart_Timeout();
    });

    I realise you will putting out an update shortly, but just wanted to let you know the above fix didn’t work for me with eshop.

    If it helps, I’m using the Genesis framework with the Dynamik website builder. However, I activated the wordpress default theme and it still does not work as well.

    Thanks,
    Adrian

    https://www.ads-software.com/plugins/wp-menu-cart/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi Adrian,
    The fix you applied is not for eshop – each webshop plugin needs different classes. For eshop it is .eshopbutton:

    $(".eshopbutton").click(function(){
          WPMenucart_Timeout();
      });

    should do the trick. This is also part of the new update – it’s been delayed a little, sorry about that!

    Ewout

    Thread Starter awelsh

    (@awelsh)

    Hi Ewout,

    Thanks for your quick reply. I put the new code in but unfortunately it is still not working. Below is what my wpmenucart.js file looks like now:

    [ Moderator note: please wrap code in backticks or use the code button. Don’t use blockquote. ]

    /*
     * JS for WPEC and EDD
     */
    jQuery(document).ready(function($) {
      $("input.edd-add-to-cart").click(function(){
          WPMenucart_Timeout();
      });
    
    $(".eshopbutton").click(function(){
          WPMenucart_Timeout();
      });
    
      function WPMenucart_Timeout() {
          setTimeout(function () { WPMenucart_Load_JS(); }, 1000);
      }
    
      function WPMenucart_Load_JS() {
        $('#wpmenucartli').load(wpmenucart_ajax.ajaxurl+'?action=wpmenucart_ajax&_wpnonce='+wpmenucart_ajax.nonce);
      }
    });

    I also changed back to the default wordpress theme but it still didn’t help. Thanks for your help.
    Adrian

    Plugin Contributor Ewout

    (@pomegranate)

    Hi Adrian,
    Can you give a link to your site, or post the button CSS class?

    Thanks!
    Ewout

    Thread Starter awelsh

    (@awelsh)

    Ewout I just saw the update you pushed through and after updating this has fixed the issue. Thank you so much for your help.

    Adrian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cart not updating with eshop plugin’ is closed to new replies.