WP-e-Commerce icon indicating copy to clipboard operation
WP-e-Commerce copied to clipboard

Need to replace the "dom-to-model" bits in the cart notifications JS

Open jtsternberg opened this issue 7 years ago • 1 comments

Currently (now that #2295 was merged), the JS cart modal stuff is depending on some brittle html bits in the dom in order to add an item to the cart and display it properly. We need to update this to output actual data models in the dom for every product shown on the screen.

jtsternberg avatar Mar 15 '17 20:03 jtsternberg

Or, probably more ideally, using the REST API (WPSC_REST_Products_Controller) to do an ajax fetch when an item is added to the cart.

jtsternberg avatar Mar 15 '17 20:03 jtsternberg