{"id":4964675,"date":"2014-05-30T13:07:05","date_gmt":"2014-05-30T13:07:05","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/add-to-cart-not-functioning\/"},"modified":"2016-08-21T21:05:44","modified_gmt":"2016-08-21T21:05:44","slug":"add-to-cart-not-functioning","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/add-to-cart-not-functioning\/","title":{"rendered":"Add to Cart Not Functioning"},"content":{"rendered":"<p>Recently upgraded and the &#8220;Add to Cart&#8221; button doesn&#8217;t seem to be working.  I just see the AJAX spinning icon (Updating cart&#8230;), and if I close the modal window and go to checkout there&#8217;s nothing in the cart.<\/p>\n<p>I see this error in the console after clicking Add to Cart:<\/p>\n<p>Fatal error: Call to a member function remove_item() on a non-object in \/home\/username\/public_html\/wp-content\/plugins\/wp-e-commerce\/wpsc-components\/theme-engine-v1\/helpers\/ajax.php on line 137<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-e-commerce\/<\/p>\n","protected":false},"template":"","class_list":["post-4964675","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4964675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4964675\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4964675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}