WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] [closed] eShop Cart widget not automatically updating (21 posts)

  1. domu
    Member
    Posted 1 year ago #

    Hello
    I am using the "eShop Cart (Improved)" widget on my site (not yet live). I noticed that in the past when I add a product to the cart, the widget will automatically update the contents without needing a refresh.

    Now though, this functionality does not work. The item is added to the cart, but the widget doesnt automatically update and I need to refresh the page to see it. So actually it does not look like it is being added at all unless I refresh. Ive tried with Firefox and IE and both are the same.

    I suspect (but really not sure) that this may have happened after the last upgrade to WordPress (3.6).

    Any idea on how to fix this?

    http://wordpress.org/plugins/eshop/

  2. domu
    Member
    Posted 1 year ago #

    Just to give a bit more info... it's not just the side bar widget that doesnt update. After clicking "Add to Cart" there is no indication at all that the item has been added (even though it has).

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    Can you replicate the problem using the default Twenty Thirteen theme with all other plugins deactivated?

  4. domu
    Member
    Posted 1 year ago #

    Just tried and yes, the same problem happens (all plugins deactivated and switched to Twenty Thirteen), although now that I think about it, this is not a widget problem, it's general issue with adding to cart button.

    If I remember correctly, when I used to add to cart, there was a small message that said "item added" (or something like that) and then faded away. Now this message does not occur at all and there is no indication that the item has been added. The "Add to Cart" button is clickable but clicking it doesnt appear to do anything. However, the item is actually added to the cart.

    For someone who is new to the site, it would appear as though the order function on the site is broken unless they think to refresh the screen.

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    Site url?

  6. domu
    Member
    Posted 1 year ago #

    Hmmm, actually it's new and not online yet. Any tips on trying to troubleshoot before I bring it online?

    Are you able to replicate the issue?

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    No - we cannot replicate this issue. So we've no real suggestions to offer at this time.

  8. domu
    Member
    Posted 1 year ago #

    No suggestions? From my detailed description.

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    Sorry - no. Whatever this is, it seems to be specific to your site.

  10. vincesta
    Member
    Posted 1 year ago #

    @domu did you fix it? I have the same problem after updating to WP 3.6

  11. domu
    Member
    Posted 1 year ago #

    Vincesta, no fix Im afraid, but it does appear to be a java issue:

    Uncaught TypeError: Cannot call method 'createDocumentFragment' of undefined jquery.js?ver=1.10.2:5
    dt jquery.js?ver=1.10.2:5
    x.extend.buildFragment jquery.js?ver=1.10.2:5
    x.fn.extend.domManip jquery.js?ver=1.10.2:5
    x.fn.extend.after jquery.js?ver=1.10.2:5
    x.fn.(anonymous function) jquery.js?ver=1.10.2:5
    (anonymous function) eshop-cart.js?ver=3.6:7
    c jquery.js?ver=1.10.2:4
    p.fireWith jquery.js?ver=1.10.2:4
    k jquery.js?ver=1.10.2:6
    r
  12. vincesta
    Member
    Posted 1 year ago #

    yup same output in my javascript console... I am trying to figure out :)

  13. domu
    Member
    Posted 1 year ago #

    Ah ok. Please post if you find a fix. This is pretty well out of my realm of expertice Im afraid.

  14. vincesta
    Member
    Posted 1 year ago #

    What theme are you using?

  15. vincesta
    Member
    Posted 1 year ago #

    @domu, maybe I found a solution!

    Go to wp-content/uploads/eshop_files

    You will find a file called eshop-cart.js

    In this file replace all occurances of insertAfter() with after()

    This works for me, let me know if it works for you!

  16. domu
    Member
    Posted 1 year ago #

    Vincesta, Ill try that when I have a chance. Hope it works. Thanks a lot for posting.

  17. rachelkeepl
    Member
    Posted 1 year ago #

    I have the same problem here, notice it didnt work few days ago.
    I tried vincesta suggestion, i have change
    -insertAfter(this) to after(this)
    -insertAfter() to after()

    But still could not resolve the problem. Is there any thing i missed?
    Pls help

  18. rachelkeepl
    Member
    Posted 1 year ago #

    im not a developer, i tried use firebug to find error msg, found this when i click add to cart....anyone can help

    hasData(e=undefined)jquery...r=3.5.2 (line 5)
    hasData(e=[[div.eshopajax]], t=undefined, n=false, r=[Object { url="http://www.kidscreative...wp-admin/admin-ajax.php", type="POST", isLocal=false, more...}])jquery...r=3.5.2 (line 5)
    hasData(e=[[div.eshopajax]], t=function(), n=undefined)jquery...r=3.5.2 (line 5)
    hasData()jquery...r=3.5.2 (line 5)
    hasData(e=Object { url="http://www.kidscreative...wp-admin/admin-ajax.php", type="POST", isLocal=false, more...})jquery...r=3.5.2 (line 5)
    (?)(response="<p>Added</p>")eshop-...r=3.5.2 (line 7)
    x(t=[Object { url="http://www.kidscreative...wp-admin/admin-ajax.php", type="POST", isLocal=false, more...}, ["<p>Added</p>", "success", Object { readyState=4, responseText="<p>Added</p>", status=200, more...}]])jquery...r=3.5.2 (line 4)
    x(e=Object { url="http://www.kidscreative...wp-admin/admin-ajax.php", type="POST", isLocal=false, more...}, t=[Object { url="http://www.kidscreative...wp-admin/admin-ajax.php", type="POST", isLocal=false, more...}, ["<p>Added</p>", "success", Object { readyState=4, responseText="<p>Added</p>", status=200, more...}]])jquery...r=3.5.2 (line 4)
    _evalUrl(e=200, n="OK", r=Object { text="<p>Added</p>"}, i="Date: Mon, 12 Aug 2013 ...xt/html; charset=UTF-8\n")jquery...r=3.5.2 (line 6)
    _evalUrl(e=readystatechange , i=undefined)jquery...r=3.5.2 (line 6)
    [Break On This Error]

    ...1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){i...

    jquery...r=3.5.2 (line 5

  19. tnault
    Member
    Posted 1 year ago #

    @ vincesta & @domu

    I was having same issue. Tried the mod to eshop-cart.js to change insertAfter* to after* and all works now.

    WordPress 3.6 | eShop 6.3.8 | Elegant Themes Aggregate 3.0

  20. domu
    Member
    Posted 1 year ago #

    Thanks all.

    I wonder if the author has accepted that this is not an issue specific to my site.

  21. esmi
    Forum Moderator
    Posted 11 months ago #

    I'm sorry but no - we cannot replicate this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags