• Resolved cathydurso

    (@cathydurso)


    Hello, I am having an issue with the cart for my shop. On my computer, when I add an item to the cart, the cart icon still shows as $0.00. When I click on it, the item is in the cart. On my phone, when I add an item to the cart, the cart icon shows as $0.00 and when I click on it the cart is empty.

    I have been using WooCommerce for a long time but have never had this problem until just recently. I’m not sure how this could be related, but it seems to have started after I implemented an SSL certificate for my site. That was the only major change I made to my site right before this problem started.

    I am using the Storefront theme.

    Things I have tried that did not work:
    -Cleared transients, recounted terms, and cleared customer sessions
    -Disabled all plugins except WooCommerce
    -Checked that there were no spaces or weird characters in checkout end-points

    Here is my system status report:

    
    ### WordPress Environment ###
    
    Home URL: //cathydurso.net
    Site URL: https://cathydurso.net
    WC Version: 3.4.3
    Log Directory Writable: ?
    WP Version: 4.9.7
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.7
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.60.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.39
    Max Upload Size: 2 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.4.3
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ?
    Total Database Size: 49.64MB
    Database Data Size: 44.77MB
    Database Index Size: 4.87MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_order_itemmeta: Data: 0.03MB + Index: 0.02MB
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB
    wp_404_to_301: Data: 30.47MB + Index: 2.48MB
    wp_cntctfrm_field: Data: 0.00MB + Index: 0.00MB
    wp_commentmeta: Data: 0.01MB + Index: 0.01MB
    wp_comments: Data: 0.02MB + Index: 0.02MB
    wp_cptch_blacklist_ip: Data: 0.02MB + Index: 0.02MB
    wp_cptch_images: Data: 0.02MB + Index: 0.00MB
    wp_cptch_packages: Data: 0.02MB + Index: 0.00MB
    wp_cptch_track_countries: Data: 0.02MB + Index: 0.00MB
    wp_cptch_track_visitor: Data: 3.52MB + Index: 0.00MB
    wp_cptch_whitelist: Data: 0.02MB + Index: 0.02MB
    wp_gallery_galleries: Data: 0.00MB + Index: 0.00MB
    wp_gallery_galleriesslides: Data: 0.00MB + Index: 0.00MB
    wp_gallery_slides: Data: 0.00MB + Index: 0.00MB
    wp_links: Data: 0.00MB + Index: 0.00MB
    wp_options: Data: 1.42MB + Index: 0.08MB
    wp_postmeta: Data: 3.41MB + Index: 1.27MB
    wp_posts: Data: 4.08MB + Index: 0.27MB
    wp_termmeta: Data: 0.03MB + Index: 0.03MB
    wp_terms: Data: 0.04MB + Index: 0.06MB
    wp_term_relationships: Data: 0.05MB + Index: 0.10MB
    wp_term_taxonomy: Data: 0.03MB + Index: 0.04MB
    wp_usermeta: Data: 0.02MB + Index: 0.02MB
    wp_users: Data: 0.00MB + Index: 0.01MB
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB
    wp_WP_SEO_404_links: Data: 0.39MB + Index: 0.27MB
    wp_WP_SEO_Cache: Data: 0.00MB + Index: 0.00MB
    wp_WP_SEO_Redirection: Data: 0.00MB + Index: 0.00MB
    wp_WP_SEO_Redirection_LOG: Data: 1.13MB + Index: 0.12MB
    
    ### Post Type Counts ###
    
    attachment: 1403
    custom_css: 2
    customize_changeset: 69
    jetpack_migration: 2
    jp_img_sitemap: 2
    jp_sitemap: 2
    jp_sitemap_master: 2
    ml-slider: 2
    nav_menu_item: 5
    page: 28
    post: 55
    product: 180
    product_variation: 617
    revision: 755
    shop_coupon: 1
    shop_order: 24
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (20) ###
    
    404 to 301 - Redirect, Log and Notify 404 Errors: by Joel James – 3.0.0.1
    Akismet Anti-Spam: by Automattic – 4.0.8
    All In One SEO Pack: by Michael Torbert – 2.6.1
    Captcha: by simplywordpress – 4.4.5
    Contact Form Multi by BestWebSoft: by BestWebSoft – 1.2.3
    Contact Form by BestWebSoft: by BestWebSoft – 4.1.0
    Easy FancyBox: by RavanH – 1.8.5
    WordPress Editorial Calendar: by Colin Vernon
    Justin Evans
    Joachim Kudish
    Mary Vogt
    and Zack Grossbart – 3.6.8
    
    Jetpack by WordPress.com: by Automattic – 6.3.2
    MetaSlider: by Team Updraft – 3.8.1
    Really Simple SSL: by Rogier Lankhorst – 3.0.2
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.0.2
    Storefront Powerpack: by WooCommerce – 1.4.1 – 1.4.9 is available
    Storefront WooCommerce Customiser: by WooThemes – 1.9.2 – Not tested with the active version of WooCommerce
    SumoMe: by SumoMe – 1.29
    Title Remover: by WPGurus – 1.2
    WooCommerce Services: by Automattic – 1.15.1
    WooCommerce Sold Out Products: by Gerhard Potgieter – 1.0.4 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.4.3
    WordPress Importer: by wordpressdotorg – 0.6.4
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #7096 - /shop/
    Cart: #5607 - /cart/
    Checkout: #5608 - /checkout/
    My account: #5609 - /my-account/
    Terms and conditions: #8200 - /policies/
    
    ### Theme ###
    
    Name: Storefront
    Version: 2.3.2
    Author URL: https://woocommerce.com/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    

    I would really appreciate any help that anyone can offer!

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    This is a good article for troubleshooting empty cart problems: https://businessbloomer.com/woocommerce-solving-cart-empty-issue/

    If all of these steps do not help, I suggest creating a staging site for example via: https://www.ads-software.com/plugins/wp-staging/ and then try a complete reinstallation (deactivate, deinstall, install, activate) of WooCommerce there.

    Kind regards,

    Thread Starter cathydurso

    (@cathydurso)

    Hi Con, thank you for the response. I have already tried everything on the business bloomer page.

    I will try reinstalling woocommerce.

    Thread Starter cathydurso

    (@cathydurso)

    Con, it looks like I have to buy the pro version of the plugin you recommended in order to actually migrate the staged site to the live site? So if I don’t buy the pro version I will have to recreate all of my products from scratch? Or would I have to recreate all of the products from scratch either way?

    Plugin Support con

    (@conschneider)

    Engineer

    Hello again,

    Copying the changes back over does indeed require the pro version. But WooCommerce has a built in product import / export: https://docs.woocommerce.com/document/product-csv-importer-exporter/ – you can use this to copy over your products.

    Thread Starter cathydurso

    (@cathydurso)

    Hi again,
    I couldn’t get the staging plugin to work so I’m just going to do the reinstallation without staging first. But I can’t figure out how to export my products as a CSV file. The WordPress exporter will only export as an XML file, but then to import them I need a CSV file. Am I missing something?
    Thanks again Con.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    To export, you’ll need to go to Products > Export:

    Export
    Link to image: https://cld.wthms.co/LPx3VR

    That’ll let you export all of your products into a CSV file. When you’re ready to re-import, go to the same place and choose the import option.

    Thread Starter cathydurso

    (@cathydurso)

    Ohhhhhhh. Thanks Hannah!

    Thread Starter cathydurso

    (@cathydurso)

    I’ve deactivated, deleted, reinstalled, and reactivated woocommerce. The problem persists. I’m at a loss! Any other ideas?

    Thread Starter cathydurso

    (@cathydurso)

    I created a new instance of wordpress + woocommerce at cathydurso.net/test and I don’t have the issue there.

    The whole thing is so strange. On my main site, I notice that after I click “add to cart” on a product page, the cart icon will briefly show the cost and the number of items, while the page is loading. But then once the page is fully loaded the cost and number of items goes back to 0.

    I’m at a loss!

    Thread Starter cathydurso

    (@cathydurso)

    I’m wondering if this is a corrupted database issue? I have no clue what I’m looking at in phpMyAdmin. I ran “repair table”. No changes to the issue I’m having. Is there another way to check if a database is corrupted?

    Hello, I am having also an issue with the cart for my shop. On my computer, when I add an item to the cart, the cart icon still shows as $0.00. On my phone and on chrome browser, when I add an item to the cart, the cart icon shows as $0.00 and when I click on it the cart is empty.

    I would really appreciate any help that anyone can offer!

    https://kumasdiyari.com/ is my shop.

    did you fix this ? i am having same issue for bundle products.

    Thread Starter cathydurso

    (@cathydurso)

    I was able to solve the problem. I figured out that it was a database issue, some files somehow got corrupted when the SSL certificate was installed. I ended up having to completely wipe my wordpress installation and then install it again from scratch. It was a total pain but it solved the problem. Of course, before you wipe your wordpress installation, make sure you have a backup and then after you reinstall wordpress, you should be able to import your data with minimal issues.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Cart shows empty when products are placed in cart’ is closed to new replies.