Can't add products to cart - Magento store

Can't add products to cart - Magento store

August 24, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Can't add products to cart - Magento store

Solving Magento Cart Addition Issues: A Developer’s Perspective

Are you facing unexpected challenges adding products to your Magento cart? This issue can be frustrating for both customers and store owners alike. Let me guide you through this common problem step-by-step.

Understanding the Issue

You mentioned that setting use_frontend_sid to “NO” caused you to lose access to the admin panel. This happens because Magento relies on frontend session IDs for administrative tasks when this setting is enabled. However, you managed to resolve this by changing the configuration value back to 1 and clearing the cache.

Now, the strange part: even after fixing the admin issue, customers can’t add products to their carts anymore. Instead of proceeding with the purchase, Magento redirects them to a CMS page named enable-cookies.

Digging Deeper into the Problem

This error occurs due to a conflict between Magento’s core session management and your store’s current setup. When you use frontend session IDs (SID) in the admin panel, Magento expects cookies to be enabled on the frontend as well.

The redirection to the enable-cookies page indicates that Magento is detecting missing or disabled cookies in the customer’s browser. This prevents cart functionality from working correctly.

Solving the Cart Addition Problem

To fix this issue permanently, you have two main options:

Option 1: Enable Cookies and Use Frontend SID

The most straightforward solution involves enabling cookies for your Magento installation and using frontend session IDs (SID) consistently across both admin and frontend contexts. This approach aligns with Magento’s default behavior.

To implement this:

  1. Ensure that cookies are enabled in all browsers accessing your store.
  2. Maintain the use_frontend_sid setting at “YES” for both admin and frontend configurations (core_config_data > web/session/use_frontend_sid).

This configuration ensures a seamless cart experience while preserving administrative functionality.

Option 2: Disabling Frontend SID Consistently

Alternatively, if you prefer not to use frontend session IDs in the admin panel, disable them completely across all contexts. This approach requires careful management of the session configuration:

  1. Set use_frontend_sid to “NO” for both admin and frontend configurations (core_config_data > web/session/use_frontend_sid).
  2. Ensure that you manage sessions manually or use a third-party extension if needed.

While this option provides more flexibility, it requires a deep understanding of session management in your specific Magento environment.

Best Practices and Further Reading

1. Always Clear Cache: Remember to clear the cache after making configuration changes, especially when dealing with sessions and cookies. You can do this manually via FTP or use Magento’s built-in caching interface.

2. Use Version Control: Consider using version control systems like Git for your Magento codebase. This practice helps you track changes, revert to previous states if needed, and maintain a more stable environment.

For a comprehensive guide on version controlling Magento projects, check out our blog post at Laravel Company: Version Control for Magento Development.

Conclusion

Resolving cart addition issues in Magento requires a solid understanding of session management and cookie handling. By carefully managing your configuration settings and ensuring consistent session behavior across admin and frontend contexts, you can provide customers with a smooth shopping experience while maintaining control over administrative functions.

Remember that every Magento installation is unique, so always consider your specific requirements when choosing a solution. If the issue persists after following these steps, don’t hesitate to reach out to a professional development team for further assistance in troubleshooting and optimizing your store’s performance.

Happy fixing!

Checkout Catalog Cache Admin

Our network