WordPress.org

Ready to get started?Download WordPress

Forums

WP Menu Cart
[resolved] Cart not updating with eshop plugin (5 posts)

  1. awelsh
    Member
    Posted 6 months ago #

    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

    http://wordpress.org/plugins/wp-menu-cart/

  2. Ewout
    Member
    Plugin Author

    Posted 6 months ago #

    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

  3. awelsh
    Member
    Posted 6 months ago #

    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

  4. Ewout
    Member
    Plugin Author

    Posted 6 months ago #

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

    Thanks!
    Ewout

  5. awelsh
    Member
    Posted 6 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.