• Resolved Rob de Cleen

    (@rdc2701)


    Hi,
    Trying to resolve an issue with W3TotalCache and removing an item from the cart with the X, where a page refresh is needed before it shows “ITEMNAME deleted. Undo?”

    I noticed that when right-clicking the X to open in a new tab, the page does not stay on the cart, but instead opens on the Home page. If I then go to the Shop page things are fine, it shows “ITEMNAME deleted. Undo?”.
    Could the fact that the X when right-clicked opens the HomePage have anything to do with the needed page refresh when W3TC is active? Everything else works fine, even deleting the items by setting the quantity to 0.
    When using the “Empty Cart” plugin the page refresh issue also doesn’t happen with W3TC active.

    Site is a staging site (not publicly accessible).

    WordPress environment
    WooCommerce version: 		3.5.7
    Log directory writable: 		/usr/local/www/lcc2/wp-content/uploads/wc-logs/
    WordPress version: 		5.1.1	
    WordPress multisite: 		–
    WordPress memory limit: 		256 MB	
    WordPress debug mode: 		–
    WordPress cron: 		
    Language: 		en_US
    External object cache: 		–
    Server environment
    Server info: 		Apache/2.4.38 (FreeBSD) PHP/7.2.16
    PHP version: 		7.2.16	
    PHP post max size: 		32 MB
    PHP time limit: 		30
    PHP max input vars: 		1000
    cURL version: 		7.64.0, OpenSSL/1.0.2o
    SUHOSIN installed: 		–
    MySQL version: 		5.5.63-MariaDB	
    Max upload size: 		32 MB
    Default timezone is UTC: 		
    fsockopen/cURL: 		
    SoapClient: 		
    DOMDocument: 		
    GZip: 		
    Multibyte string: 		
    Remote post: 		
    Remote get: 		
    • This topic was modified 5 years, 11 months ago by Rob de Cleen.
    • This topic was modified 5 years, 11 months ago by Rob de Cleen. Reason: corrected typos
    • This topic was modified 5 years, 11 months ago by Rob de Cleen. Reason: stll one more typo corrected
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    There’s really not enough data here to try to accurately diagnose the issues you are seeing, but I would highly recommend not caching (setting up exclusions) on the cart page, the “my account” page, and the shop page. You can read more about setting up caching here: https://docs.woocommerce.com/document/configuring-caching-plugins/

    Hopefully that helps! Have a great one!

    Thread Starter Rob de Cleen

    (@rdc2701)

    Hi,

    Of course all that has already been done ??
    Like I wrote, everything works fine WITH the cache active, except for the “remove item with the X”. That’s why I am informing about the coding behind the X, as it seems to be opening on the Home page when right-clicked (instead of staying on the Shop page).

    So to make my question clearer:
    In what way does the coding between these two differ to explain this:
    – setting quantity to 0 (works fine with cache)
    – deleting cart item with X (works fine but needs manual page refresh when cache active)
    – deleting items with “Empty Cart” plugin (works fine with cache active)

    Thanks for any insight into this matter.

    Thread Starter Rob de Cleen

    (@rdc2701)

    So far with the help of W3TC we’ve been able to pinpoint the issue as related to the browser cache. In other words: when caching is active, then deleting the item with the X seems to make the browser take the updated page from the browser cache instead of fresh loading the page from the server. Could this be related to the method used to do a location.reload?
    cart, shop, checkout, my account have all been excluded from the page cache, so the page cache is not the issue, it’s purely the browser cache.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @rdc2701 Were you able to find a resolution to this? This sounds like changed behavior due to a plugin or the theme itself. Have you tried to rule out conflict through the troubleshooting steps here?
    https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    Thread Starter Rob de Cleen

    (@rdc2701)

    Nope, a solution has not been found.
    And yes, of course all possible troubleshooting steps had been followed.
    All we know for sure is that the issue is visible with the browser cache of W3TC activated…

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @rdc2701 Okay, I tested on this end with and without W3TC active, and I still get the notification.


    Link to image: https://cld.wthms.co/A9x0XC

    Since it is working from this end and it seems to be related to W3TC active, I am going to set the thread to resolved for now.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘insight into “remove cart item with X”’ is closed to new replies.