{"id":463,"date":"2012-11-01T16:31:34","date_gmt":"2012-11-01T16:31:34","guid":{"rendered":"http:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=463"},"modified":"2022-02-22T11:15:56","modified_gmt":"2022-02-22T11:15:56","slug":"cannot-add-the-item-to-shopping-cart","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/","title":{"rendered":"Cannot add the item to shopping cart"},"content":{"rendered":"<p>When adding a product in shopping cart on your magento installed website, it shows message as below. It does not allows you to add the product to your shopping cart.<\/p>\n<blockquote><p><strong>Cannot add the item to shopping cart.<\/strong><\/p><\/blockquote>\n<p>When adding a product to your shopping cart system needs a directory in which the sessions files can be stored temporarily. On linux servers, these session files are stored in <strong>tmp<\/strong> directory.<\/p>\n<p>Open the file named &#8220;File.php&#8221; under your <a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-install-magento-from-cpanel-softaculous\/\">magento installation<\/a>. Path is &#8220;<strong>lib\/Zend\/Cache\/Backend\/File.php<\/strong>&#8220;. On a cPanel installed server the absolute path is &#8220;<strong>\/home\/user\/public_html\/lib\/Zend\/Cache\/Backend\/File.php<\/strong>&#8220;. Change<\/p>\n<blockquote><p>protected $_options = array(<br \/>\n&#8216;cache_dir&#8217; =&gt; &#8216;null&#8217;,<\/p><\/blockquote>\n<p><strong>with<\/strong><\/p>\n<blockquote><p>protected $_options = array(<br \/>\n&#8216;cache_dir&#8217; =&gt; &#8216;tmp\/&#8217;,<\/p><\/blockquote>\n<p>Save the file and exit. Make sure you create a <strong>tmp<\/strong> directory under the directory magento is installed. Set permissions to 777.<\/p>\n<p>Magento builds up cache at a higher rate in comparison to other e-commerce applications. Whenever you make any changes in the code OR configuration form admin panel, make sure to clear the cache. Delete all the content under &#8220;<strong>var\/cache<\/strong>&#8221; OR &#8220;<strong>\/home\/user\/public_html\/var\/cache<\/strong>&#8220;.<\/p>\n<p>Now try adding the products to your shopping cart &amp; they will work like a charm.<\/p>\n<p><strong>Read:\u00a0 <\/strong><a href=\"https:\/\/www.milesweb.co.uk\/blog\/ecommerce\/tips-choosing-right-shopping-cart-software\/\">Tips For Choosing The Right Shopping Cart Software<\/a><strong><br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When adding a product in shopping cart on your magento installed website, it shows message as below. It does not allows you to add the product to your shopping cart. Cannot add the item to shopping cart. When adding a product to your shopping cart system needs a directory in which the sessions files can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[],"class_list":["post-463","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-shopping-carts-faq"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cannot add the item to shopping cart - Web Hosting FAQs by MilesWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cannot add the item to shopping cart - Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"og:description\" content=\"When adding a product in shopping cart on your magento installed website, it shows message as below. It does not allows you to add the product to your shopping cart. Cannot add the item to shopping cart. When adding a product to your shopping cart system needs a directory in which the sessions files can [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-01T16:31:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-22T11:15:56+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/\",\"name\":\"Cannot add the item to shopping cart - Web Hosting FAQs by MilesWeb\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2012-11-01T16:31:34+00:00\",\"dateModified\":\"2022-02-22T11:15:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cannot add the item to shopping cart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/42e5b55cc2772cd685c8803f6f7f854b?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/42e5b55cc2772cd685c8803f6f7f854b?s=96&d=blank&r=g\",\"caption\":\"admin\"},\"description\":\"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cannot add the item to shopping cart - Web Hosting FAQs by MilesWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/","og_locale":"en_GB","og_type":"article","og_title":"Cannot add the item to shopping cart - Web Hosting FAQs by MilesWeb","og_description":"When adding a product in shopping cart on your magento installed website, it shows message as below. It does not allows you to add the product to your shopping cart. Cannot add the item to shopping cart. When adding a product to your shopping cart system needs a directory in which the sessions files can [&hellip;]","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2012-11-01T16:31:34+00:00","article_modified_time":"2022-02-22T11:15:56+00:00","author":"admin","twitter_misc":{"Written by":"admin","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/","name":"Cannot add the item to shopping cart - Web Hosting FAQs by MilesWeb","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2012-11-01T16:31:34+00:00","dateModified":"2022-02-22T11:15:56+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/cannot-add-the-item-to-shopping-cart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Cannot add the item to shopping cart"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/42e5b55cc2772cd685c8803f6f7f854b?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/42e5b55cc2772cd685c8803f6f7f854b?s=96&d=blank&r=g","caption":"admin"},"description":"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/admin\/"}]}},"views":2185,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":12,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"predecessor-version":[{"id":14030,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/463\/revisions\/14030"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}