• Resolved britand

    (@britand)


    1) I noticed that if I change the product quantity u or down or if I click the x to remove the product from the cart, it will keep showing the ajax spinner. The only way to then update it is for me to either refresh the page or go to another page. How can this be fixed?

    2) I’ve looked and I cannot find anything that describes what the Premium version of this plugin offers over the free one. So, what does the premium plugin offer?

    Brian

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Giacomo

    (@jakjako)

    Hi britand, the “get_refreshed_fragments” call returns a 403 status.
    Have you disabled woocommerce fragments? ( like in a cache plugin ? )
    If so, you need to enable them in order for the plugin to work.

    The premium version gives you the ability to create a more complex conditions like:

    trigger product X when cart has a Y product
    trigger product X when cart has a product of category Y
    etc.

    Thread Starter britand

    (@britand)

    Thanks. So, how or where would I enable Woocommerce fragments? I don’t recall having one installed. I know my host uses a CDN but not a plugin for cache.

    Plugin Author Giacomo

    (@jakjako)

    Fragments are enabled by default.

    No cache plugin installed?
    You are using FlyWheel: we have multiple sites on that host too and the plugin works correcly, so I guess it’s not about FlyWheel.
    Any security plugin that maybe blocks the request?

    Can you try to enable the “Ignore external fragments” option on the main plugin setting tab? ( you can find it on the bottom, in the advanced section )

    Thread Starter britand

    (@britand)

    I tried those suggestions, and I also tried a few other cart plugins to test. Those also work using AJAX, but I didn’t have any issues with them at all. Items will add or remove just fine. Any more ideas on how to get this one to work with our site?

    Plugin Author Giacomo

    (@jakjako)

    From outside the website I can’t .. but it’s not something directly related to my plugin.
    If you open Chrome developers tab, you go to the full cart page, change an item quantity and update the cart you can see that the get_refreshed_fragments call returns a 403.

    https://allamericansupps.com/?wc-ajax=get_refreshed_fragments

    You can also check accessing the link above. It should return a json data response.

    Option 1 : there’s a plugin that blocks fragments
    Option 2 : a firewall return 403 on fragments call because there’s something “dirty”

    Thread Starter britand

    (@britand)

    I am working with Flywheel right now in the hope they might see something or know of a possible setting affecting this. (If not, are you available to look at the site if I give you access?)

    I really want this to work on our site because I cannot find any other plugin that does what yours does.

    Thread Starter britand

    (@britand)

    We had previously been having downtime issues, so a FlyWheel tech added the following code to the nginx setting…looks like this could be the culprit…

    Was added on the 12-18 for the downtime reports
    ?location ~* ^/autodiscover/autodiscover.xml {
    deny all;
    return 403;
    }
    if ($args ~ "wc-ajax=get_refreshed_fragments") {
    return 403;
    }
    Plugin Author Giacomo

    (@jakjako)

    if ($args ~ “wc-ajax=get_refreshed_fragments”) {
    return 403;
    }

    yes, it is ??

    Thread Starter britand

    (@britand)

    Is there a way to:

    1) Change the width of the open cart?
    2) Change the placement of the widget, such as up 100 pixels?
    3) Enter coupons in the cart?

    Plugin Author Giacomo

    (@jakjako)

    The first 2 points are css related so the answer is: yes, pretty easily.
    The third request is not supported at the moment, it needs custom coding.
    I’ll add it to the next version.

    Plugin Author Giacomo

    (@jakjako)

    Mark as resolved.
    If you need further help don’t hesitate to open another ticket, britand.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Ajax Add or Remove Issues’ is closed to new replies.