wp-e-commerce / WP-e-Commerce

WP eCommerce - The most popular independent eCommerce platform for WordPress
https://wpecommerce.org
GNU General Public License v2.0
215 stars 217 forks source link

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

Open jtsternberg opened 7 years ago

jtsternberg commented 7 years ago

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 commented 7 years ago

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.