Variable Products Not Getting Added to Cart on Mobile
-
Variable Products are not getting added to cart on mobile. The message ‘Product has been added to your cart’ appears but the cart remains empty. This happens only on mobile.
What I have already tried :
1. Deactivating all plugins except Woocommerce
2. Switching to 2020 theme
Here is the cloned site with the above settings : http://woocommerce-343816-1356529.cloudwaysapps.com/product-category/combo/I have noticed that if we add a simple product to cart first, and then add a variable product it works.
Kindly help.
The page I need help with: [log in to see the link]
-
Forgot to add system status report
### WordPress Environment ### WordPress address (URL): http://rustikpaushtiq.in Site address (URL): https://rustikpaushtiq.in WC Version: 4.2.2 REST API Version: ✔ 1.0.8 WC Blocks Version: ✔ 2.5.16 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 1.2.4 Log Directory Writable: ✔ WP Version: 5.4.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.25 (Debian) PHP Version: 7.3.19-1+0~20200612.60+debian9~1.gbp6c8fe1 PHP Post Max Size: 10 MB PHP Time Limit: 60 PHP Max Input Vars: 2500 cURL Version: 7.52.1 OpenSSL/1.0.2u SUHOSIN Installed: – MySQL Version: 5.5.5-10.1.45-MariaDB-1~stretch Max Upload Size: 10 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 4.2.2 WC Database Prefix: wp_ Total Database Size: 18.47MB Database Data Size: 15.69MB Database Index Size: 2.78MB wp_woocommerce_sessions: Data: 0.42MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.05MB + Index: 0.03MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 0.40MB + Index: 0.25MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.03MB + Index: 0.02MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.08MB + Index: 0.09MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 1.05MB + Index: 0.56MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.42MB + Index: 0.31MB + Engine InnoDB wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_comments: Data: 0.06MB + Index: 0.04MB + Engine MyISAM wp_db7_forms: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_failed_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_isl_feed: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mclean_refs: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_mclean_scan: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 1.19MB + Index: 0.22MB + Engine MyISAM wp_postmeta: Data: 1.20MB + Index: 0.38MB + Engine MyISAM wp_posts: Data: 9.98MB + Index: 0.13MB + Engine MyISAM wp_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_social_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_tinvwl_analytics: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_tinvwl_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_tinvwl_lists: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_usermeta: Data: 0.32MB + Index: 0.19MB + Engine MyISAM wp_users: Data: 0.02MB + Index: 0.03MB + Engine MyISAM wp_wcpdf_invoice_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.05MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_indexable: Data: 0.11MB + Index: 0.05MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM ### Post Type Counts ### attachment: 221 blocks: 9 custom_css: 1 customize_changeset: 2 featured_item: 8 jetpack_migration: 2 nav_menu_item: 15 oembed_cache: 2 page: 19 post: 2 product: 36 product_variation: 18 revision: 771 shop_coupon: 5 shop_order: 120 shop_order_refund: 5 woo_discount: 2 woo_discount_cart: 1 ywtm_tab: 2 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (16) ### All-in-One WP Migration: by ServMask – 7.24 Better Search Replace: by Delicious Brains – 1.3.3 Breeze: by Cloudways – 1.1.7 CCAvenue Payment Gateway for WooCommerce: by Nilesh Chourasia – 2.6 – Installed version not tested with active version of WooCommerce 4.2.2 Google Tag Manager for WordPress: by Thomas Geiger – 1.11.4 – Installed version not tested with active version of WooCommerce 4.2.2 Facebook for WooCommerce: by Facebook – 1.11.4 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.10.4 PHP Compatibility Checker: by WP Engine – 1.5.0 Category Order and Taxonomy Terms Order: by Nsp-Code – 1.5.7.2 TI WooCommerce Wishlist: by TemplateInvaders – 1.20.5 WooCommerce No Shipping Message: by dangoodman – 2.0.0 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.5.2 WooCommerce: by Automattic – 4.2.2 WooSidebars: by WooCommerce – 1.4.5 Yoast SEO: by Team Yoast – 14.4.1 Custom Product Tabs for WooCommerce: by YIKES Inc. – 1.7.1 – Installed version not tested with active version of WooCommerce 4.2.2 ### Inactive Plugins (0) ### ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: ✔ Currency: INR (₹) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 0 Taxonomies: Product Types: simple (simple) grouped (grouped) variable (variable) external (external) Taxonomies: Product Visibility: exclude-from-search (exclude-from-search) exclude-from-catalog (exclude-from-catalog) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #1161 - /shop/ Cart: #61 - /cart/ Checkout: #60 - /checkout/ My account: #59 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Flatsome Child Version: 3.0 Author URL: Child Theme: ✔ Parent Theme Name: Flatsome Parent Theme Version: 3.11.3 Parent Theme Author URL: http://www.uxthemes.com/ WooCommerce Support: ✔ ### Templates ### Overrides: flatsome/woocommerce/archive-product.php flatsome/woocommerce/cart/cart-empty.php flatsome/woocommerce/cart/cart-shipping.php flatsome/woocommerce/cart/cart.php flatsome/woocommerce/checkout/form-checkout.php flatsome/woocommerce/checkout/form-coupon.php flatsome/woocommerce/checkout/terms.php flatsome/woocommerce/checkout/thankyou.php flatsome/woocommerce/content-product.php flatsome/woocommerce/content-product_cat.php flatsome/woocommerce/content-single-product.php flatsome/woocommerce/content-widget-product.php flatsome/woocommerce/global/breadcrumb.php flatsome/woocommerce/global/quantity-input.php flatsome/woocommerce/global/wrapper-end.php flatsome/woocommerce/global/wrapper-start.php flatsome/woocommerce/loop/loop-end.php flatsome/woocommerce/loop/loop-start.php flatsome/woocommerce/loop/pagination.php flatsome/woocommerce/loop/result-count.php flatsome/woocommerce/loop/sale-flash.php flatsome/woocommerce/myaccount/form-login.php flatsome/woocommerce/myaccount/navigation.php flatsome/woocommerce/notices/error.php flatsome/woocommerce/notices/notice.php flatsome/woocommerce/notices/success.php flatsome/woocommerce/product-searchform.php flatsome/woocommerce/single-product/photoswipe.php flatsome/woocommerce/single-product/price.php flatsome/woocommerce/single-product/product-image.php flatsome/woocommerce/single-product/product-thumbnails.php flatsome/woocommerce/single-product/rating.php flatsome/woocommerce/single-product/related.php flatsome/woocommerce/single-product/review.php flatsome/woocommerce/single-product/sale-flash.php flatsome/woocommerce/single-product/share.php flatsome/woocommerce/single-product/short-description.php flatsome/woocommerce/single-product/tabs/tabs.php flatsome/woocommerce/single-product/title.php flatsome/woocommerce/single-product/up-sells.php flatsome/woocommerce/single-product-reviews.php flatsome/woocommerce/single-product.php ### TI WooCommerce Wishlist Templates ### Overrides: – ### Action Scheduler ### Complete: 1,927 Oldest: 2020-05-27 06:50:23 +0000 Newest: 2020-06-27 06:30:36 +0000 Pending: 1 Oldest: 2020-06-27 06:45:36 +0000 Newest: 2020-06-27 06:45:36 +0000
Hey there,
Thanks for that clear description!
I went to your test site and tried adding a variable product to the cart on Android using Opera: the message came up that the product had been added to the cart, but the cart is empty.
There are a bunch of things that this could be, but the most obvious is a conflict. You mentioned that you’d already tested for it, but would you mind disabling all plugins and switching to 2020 on that test site? I’ll be happy to take another look at that point.
Hi Hannah,
Thanks for the quick response. It’s a live site, I cannot make changes on it.
But like I said, I cloned the website and disabled all plugins and switched to 2020.
You can have a look at the cloned site here : http://woocommerce-343816-1356529.cloudwaysapps.com/product-category/combo/
The exact problem is also seen here, only woocommerce plugin is active and the theme is 2020.Hey there,
Thanks for the update! I hadn’t realized that the test site was using 2020. Now that I check the source, I can see that.
I did some further testing, wondering if it was perhaps a responsive design issue. Interestingly, I can replicate the issue on my computer in both a small screen (to mimic a mobile browser) as well as in a full size screen. In both cases, the product is not actually added to the cart.
There aren’t any JavaScript warnings in the browser console, so it’s unlikely to be a conflict.
I did try to go back to the variable product from the cart and my browser showed me a caching error. That means that there’s likely something strange happening with the cache, which could explain the cart issues. Can you please make sure you don’t have any caching plugins enabled?
On the system status report, I’m seeing the following under drop-in plugins:
advanced-cache.php: advanced-cache.php
That could also be the problem here. I’d recommend disabling that and checking to see if you’re still having the same problem. If that doesn’t solve it, your next best step is to reach out to your host to check if they have any caching on your site: if they do, disable it so that you can test.
Please do let me know how that goes!
Hey there,
There is no caching plugin on the site. I have disabled cache on the server.I contacted Cloudways, where I host my sites, and they confirmed that there is no caching at the server.
Hey there,
While I do see the problem on your site, I’m not able to replicate it on any other site.
From here, I’d recommend trying to set up a new, clean site on the same hosting. If you see the same problem, you know it’s related to the hosting or configuration. If you don’t see the same problem, then it’s something specific to that site.
Otherwise, you may want to work with a Woo Expert who could get more hands-on with your site. In that case, I highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/
I hope that helps you in the right direction.
- The topic ‘Variable Products Not Getting Added to Cart on Mobile’ is closed to new replies.