Issue Adding Products to Cart
-
Hello! My customers are having issues adding items to their carts. After selecting color and size, they are still unable to add the items to cart. This error has been occurring for a couple of days. Please help!
The page I need help with: [log in to see the link]
-
Hello @appchs843 not much we can do with that url seeing as your site seems to be locked or behind a maintenance app.
Hi @appchs843,
I tried your site, and I see it’s accessible now, but trying to access any shop page requires a login.
Hello! My customers are having issues adding items to their carts. After selecting color and size, they are still unable to add the items to cart. This error has been occurring for a couple of days. Please help!
Back to your main message, can you tell us which error do they face when trying to add products to the cart? Have you tried adding products on your own, and did you find any problems? Please share a screenshot of what you see when this happens, please. You can use a service like https://snipboard.io/ to share screenshots here.
Additionally, please check your browser’s console for errors when adding products to the cart. If you find any, kindly send us a screenshot as well.
Here are a few more questions to learn more:
- Can you tell us if your WordPress, WooCommerce (and any related plugins), and theme are up to date?
- Do you use any plugins to edit or manage your products in any way?
- Does this issue happen for variable products only, or simple products are also affected?
- Does this issue happen to all your variable products or just some? If so, can you check those variations are properly set up?
Finally, please check for Fatal error logs?(if any) under WooCommerce > Status > Logs. If you find any, please share it with us.
Once we have more information, we’ll be able to assist you further.
Thanks!
-OPHello! I have duplicated the error on my end and when selecting all product variation selections, and then clicking the Add to Cart button, an error message populates stating “Please select some product options before adding items to cart”. This is happening to all items across the board.
2024-08-28T14:09:30+00:00Critical Namespace declaration statement has to be the very first statement or after any declare call in the script Additional context{ “error”: { “type”: 64, “file”: “/var/www/wp-content/plugins/wp-smushit/core/external/free-dashboard/classes/notices/class-email.php”, “line”: 13 }, “backtrace”: [ { “file”: “/var/www/wp-content/plugins/woocommerce/includes/class-woocommerce.php”, “line”: 401, “function”: “critical”, “class”: “WC_Logger”, “type”: “->” }, { “function”: “log_errors”, “class”: “WooCommerce”, “type”: “->” } ] }Hey, @appchs843!
Thanks for the information.
The error shows an issue with the plugin Smush Image Optimization. Please deactivate it and check if the issue persists.
If it does,
Can you please run a full conflict test to check if anything else is interfering with this?
To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.
If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.
— Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.
— It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.
You can find more about this in this guide.
Please let us know about your findings.
Have a wonderful day!
Hello, I have run a test to check for plugin/theme conflicts. I have disabled and deleted the Smush plugin. I am still experiencing the issue described.
Hello @appchs843,
Sorry to hear that the issue persists even after running a conflict test.
I tried visiting your site to try and make test orders, however, I couldn’t access the products as the site is password protected. Are you able to temporarily deactivate the password protection so that we can try making test orders from your store?
Hey, @appchs843!
Please never share (or offer to share) login credentials here. This is a public forum and for the best interest of your sites security, this should never be shared. Just to add, it can result in your account being banned, as seen in the forum guidelines: https://www.ads-software.com/support/guidelines/#we-reserve-the-right-to-manage-the-forums-to-the-best-of-our-ability
For us to be able to check your website, it needs to be public, as we are not allowed to access private content.
If you can, please make the website/staging site public so we can take a look.
If you can’t do it, can you please replicate the issue on your end and check the browser console for errors?
You can do this by following the steps below:- On the page where you see the error click with the right mouse button and select the “inspect” option
- It will open a window on the browser, check the tabs on the top and click on Console
- Please take screenshots of the errors showing there (if any) and share with us
- I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.
Looking forward to your reply.
Have a wonderful day!
My apologies for breaking the rules. I didn’t realize this would be any different than making the website public, since the account is not an admin account.
I will duplicate the issue and post screenshots here
Here is the screenshot
Hi @appchs843,
Thank you for the additional details. There seems to be an issue with your variable products. To learn more, does this happen with any product or just variable? And does it happen with all your variable products or just specific ones? Finally, if it happens with specific ones, does it happens with all variations within that product, or just specific ones?
Can you share an example of one of the affected variable products/variations and show us how they’re set up in the product editor page, please? You can continue to use Snipboard for this. Kindly also let us know if you use any third-party plugin to set up your variations or any aspect of your products and product edit/creation process.
Finally, kindly let us know if you find any errors in your WooCommerce > Status > Logs.
Thanks!
-OPIt seems to be an issue with the “Sleeve Embroidery” variation. There are two options, “Charleston Bridge” and “None”. I’ve attached some screenshots of one specific item that is having issues when trying to select all variation options and then adding to cart, and then the back end. Let me know if there is another screenshot that you need!
I’ve also attached a screenshot of the Woocommerce Error Log.
Nevermind, some items with that variation are working and some items without this variation are not working. So not solely based on whether the item has the “sleeve embroidery” variation option.
Hello appchs843,
Thank you for your reply.
It would be helpful if you could make your site publicly accessible.
Troubleshooting by looking at the screenshots may take more time.The notification “Please select some product options” indicates that even though the selections are made, WooCommerce is not detecting them. Then in the next message you shared an error log that shows a 3rd party plugin is causing it.
For the next step, I suggest you deactivate all the plugins except WooCommerce and switch the theme to Twenty Twenty-Four. This will help us check how the website behaves in the default environment and determine the cause of the problem.
Looking forward to your response. ??
Best regards.
Hello,
I have disabled all plugins except for woo commerce, switched to 2024 theme and made the site public.
- You must be logged in to reply to this topic.