• Hi,

    It adds products to the cart to begin with but then if you go back to the shop and add more it adds them to the cart icon in the header but when you go to the cart page the extra products are not there unless you refresh the browser. Also you cannot remove more than one product from the cart without refreshing the browser. these problems occur on all browsers.

    we have live and staging sites set up:

    on the live domain https://www.infinitybracelets.co.uk/ the latest woocommerce and wordpress is being used without any cache plugins and the host wp-engine have disabled cache for product pages and the cart page.

    
    ### WordPress Environment ###
    
    Home URL: https://www.infinitybracelets.co.uk
    Site URL: https://www.infinitybracelets.co.uk
    WC Version: 2.6.11
    Log Directory Writable: ?
    WP Version: 4.7
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: ? 5.5.9-1ubuntu4.20 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 100 MB
    PHP Time Limit: 3600
    PHP Max Input Vars: 1000
    cURL Version: 7.35.0
    OpenSSL/1.0.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.32
    Max Upload Size: 50 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.6.11
    : 
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ?
    
    ### Active Plugins (24) ###
    
    Black Studio TinyMCE Widget: by Black Studio – 2.3.1
    Coming Soon Page & Maintenance Mode by SeedProd: by SeedProd – 5.0.5
    Contact Form 7: by Takayuki Miyoshi – 4.6
    FooBox Image Lightbox: by FooPlugins – 1.1.11
    Foo Gallery: by FooPlugins – 1.2.18
    Google Analytics: by ShareThis – 2.0.4
    Instagram Feed: by Smash Balloon – 1.4.8
    Limit Login Attempts: by Johan Eenfeldt – 1.7.1
    LiveChat WooCommerce: by LiveChat – 1.1.7
    MailChimp for WordPress: by ibericode – 3.1.12
    Meta Slider: by Matcha Labs – 3.3.7
    Remove query strings from static resources: by Your WP Expert – 1.3.1
    Page Builder by SiteOrigin: by SiteOrigin – 2.4.21
    SiteOrigin Widgets Bundle: by SiteOrigin – 1.7.2
    Woo Checkout Field Editor Pro: by ThemeHiGH – 1.1.3
    WooCommerce Checkout Manager: by Visser Labs – 4.0.9
    WooCommerce AdWords Conversion Tracking: by Wolf+B?r GmbH – 1.3.5
    WooCommerce Hear About Us: by SiteOptimo – 1.5.2
    WooCommerce Stock Manager: by Vladislav Musílek – 1.1.3
    Webinterpret for WooCommerce: by Webinterpret – 1.2.1
    WooCommerce Xero Integration: by WooThemes – 1.7.5
    WooCommerce: by WooThemes – 2.6.11
    WooCommerce BarclaycardCw: by customweb GmbH – 3.0.58
    Yoast SEO: by Team Yoast – 4.0.2
    
    ### Settings ###
    
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    
    ### WC Pages ###
    
    Shop Base: #4 - /shop/
    Cart: #5 - /cart/
    Checkout: #6 - /checkout/
    My Account: #7 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Look Child
    Version: 1.0.0
    Author URL: https://magicaltheme.com
    Child Theme: ?
    Parent Theme Name: Look
    Parent Theme Version: 1.5.10
    Parent Theme Author URL: https://magicaltheme.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: look/woocommerce/archive-product.php
    look/woocommerce/cart/cart-item-data.php
    look/woocommerce/cart/cart-totals.php
    look/woocommerce/cart/cart.php
    look/woocommerce/cart/mini-cart.php
    look/woocommerce/checkout/form-checkout.php
    look/woocommerce/checkout/form-shipping.php
    look/woocommerce/checkout/review-order.php
    look/woocommerce/content-product.php
    look/woocommerce/content-product_cat.php
    look/woocommerce/content-single-product.php
    look/woocommerce/emails/admin-cancelled-order.php
    look/woocommerce/emails/admin-new-order.php
    look/woocommerce/emails/customer-completed-order.php
    look/woocommerce/emails/customer-invoice.php
    look/woocommerce/emails/customer-note.php
    look/woocommerce/emails/customer-processing-order.php
    look/woocommerce/emails/email-addresses.php
    look/woocommerce/emails/email-footer.php
    look/woocommerce/emails/email-header.php
    look/woocommerce/emails/email-order-items.php
    look/woocommerce/emails/email-styles.php
    look/woocommerce/global/quantity-input.php
    look/woocommerce/global/wrapper-end.php
    look/woocommerce/global/wrapper-start.php
    look/woocommerce/loop/loop-end.php
    look/woocommerce/loop/loop-start.php
    look/woocommerce/loop/no-products-found.php
    look/woocommerce/loop/orderby.php
    look/woocommerce/loop/result-count.php
    look/woocommerce/myaccount/form-edit-account.php
    look/woocommerce/myaccount/form-edit-address.php
    look/woocommerce/myaccount/form-login.php
    look/woocommerce/myaccount/my-account.php
    look/woocommerce/myaccount/my-address.php
    look/woocommerce/myaccount/my-orders.php
    look/woocommerce/myaccount/view-order.php
    look/woocommerce/order/order-details.php
    look/woocommerce/order/tracking.php
    look/woocommerce/single-product/add-to-cart/external.php
    look/woocommerce/single-product/add-to-cart/grouped.php
    look/woocommerce/single-product/add-to-cart/simple.php
    look/woocommerce/single-product/add-to-cart/variable.php
    look/woocommerce/single-product/price.php
    look/woocommerce/single-product/product-attributes.php
    look/woocommerce/single-product/product-image.php
    look/woocommerce/single-product/product-thumbnails.php
    look/woocommerce/single-product/rating.php
    look/woocommerce/single-product/related.php
    look/woocommerce/single-product/review.php
    look/woocommerce/single-product/sale-flash.php
    look/woocommerce/single-product/short-description.php
    look/woocommerce/single-product/tabs/additional-information.php
    look/woocommerce/single-product/tabs/description.php
    look/woocommerce/single-product/tabs/tabs.php
    look/woocommerce/single-product/up-sells.php
    
    

    so on the staging domain https://infinityb.staging.wpengine.com all plugins are disabled apart from woocommerce (using 2.6.8 as still had same problems on latest version) and latest wordpress. the theme is twenty sixteen. and still the same problem with the cart.

    
    ### WordPress Environment ###
    
    Home URL: https://infinityb.staging.wpengine.com
    Site URL: https://infinityb.staging.wpengine.com
    WC Version: 2.6.8
    Log Directory Writable: ?
    WP Version: 4.7
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: ? 5.5.9-1ubuntu4.20 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 100 MB
    PHP Time Limit: 3600
    PHP Max Input Vars: 1000
    cURL Version: 7.35.0
    OpenSSL/1.0.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.32
    Max Upload Size: 50 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.6.8
    : 
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: by WooThemes – 2.6.8
    
    ### Settings ###
    
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    
    ### WC Pages ###
    
    Shop Base: #4 - /shop/
    Cart: #5 - /cart/
    Checkout: #6 - /checkout/
    My Account: #7 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Twenty Sixteen
    Version: 1.3
    Author URL: https://www.ads-software.com/
    Child Theme: ? – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    

    any help gratefully received ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Caching is still the issue here – Look at this screenshot for evidence that pages are loaded from local cached copies, rather than fetched each time: https://cld.wthms.co/hBbD/kcsojVgD. Compare that with the results when you’re refreshing the cart page: https://cld.wthms.co/eqrP/4rH4mbgo

    Looking at the headers being served up for your cart page, it seems like your hosting provider is really still “caching” things as it’s forcing users to keep calling local cached versions from their own browsers. This is evident when looking at the max-age parameter: https://cld.wthms.co/SOry/12xwVN3G

    Armed with this information, I’d suggest you reach out to your hosting providers again.

    For a more in-depth guide on how the headers (and cache control) works, check out the following guide: https://www.keycdn.com/blog/http-cache-headers/

    Thread Starter bluebellsolut

    (@bluebellsolut)

    Thank you so much Riaan for your help!!! I will get back to the hosting company straight away!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cart not updating without refreshing browser’ is closed to new replies.