Browser: Chrome 110
OS: Windows.
URL: https://dev.imperialcoins.com.au/
Video: Jam
I have developed a custom product query loop both in homepage (as a carousel) and archive page. Whenever as a logged-out user I try to “add to cart” a product, the product does not added to the cart. First, it shows “1” on the mini cart and after reload complete it goes back to “0” which you will be able to see in that short “Jam” video.
Thank you!
Hi @hamza49 ,
This should be related to your performance plugin (WPRocket) that disabled the WooCommerce functions.
You could test with a default WP theme and probably you will be facing the same issue.
Then try deactivating WP Rocket and check if it’s the root cause.
Regards,
Jenn
1 Like
Hi @itchycode
Thanks for the instructions, I have disabled the Performance plugin (WP Rocket) but the issue remains the same.
Do you have any cache? Besides wp rocket, it’s not working on the product page either
1 Like
Hi @hamza49 ,
How about the default WP theme + WooCommerce?
Possible that certain configurations on your server/dns causing the issue?
Did you try deactivating all plugins except the WooCommerce + Bricks theme?
1 Like
@dsgadmin & @itchycode, thanks for those instructions. I’ve followed them all and even contacted the server team but it hasn’t been resolved yet.
Hi @hamza49,
Thanks for the update.
Could you confirm if the issue persists when using the default WordPress theme along with WooCommerce?
If the problem still occurs with the default setup, it is unrelated to Bricks. We can’t replicate this issue as well.
Best regards,
Jenn
with WP default theme and woocommerce enabled:
“on the shop page, we only can add 1 item to the cart as a logged-out user”
if I add a few items to the cart it only adds the last product I added.
Thank you for all the help. If it is not related to Bricks then what might be the issue? Give me a suggestion, I have contacted the Server Team and they said the same thing.
Hi @itchycode
Again thanks for the instructions, I have already tried this method and even cloned on a different host. But the issue remains the same.
Now I would like to know:
“Could Bricks Builder be blocking the code for guest users to run add to cart” it’s working for all other users just not logged-in ones.
Thank you.
Hi @hamza49 ,
“Could Bricks Builder be blocking the code for guest users to run add to cart”
Nope, if that’s the case, I believe there will be many more users reporting this issue in the forum and our Facebook Group now, right?
If in this case, please provide admin access for us to clone your site locally for testing. (Please send to help@bricksbuilder.io and include this forum thread URL as reference)
Regards,
Jenn
1 Like
Hi @hamza49 ,
Thanks for the login details.
I just replied to your email.
The root cause of your website is all WooCommerce-related DB tables are corrupted.
The ID columns for each table should have Auto Increment but it’s not on your website.
This caused any new Add to Cart session unable to insert a new row in the DB. (wp_woocommerce_session
)
To solve this issue, you can delete this table and it will be auto create again once Add to cart is triggered.
However, you might need to check with WooCommerce support to solve other table issues as deleting those tables might cause data lost. (orders, etc)
Regards,
Jenn