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

Refactor `WPSC_Controller_Cart::add` to use `WPSC_REST_Checkout_Controller` and `rest_do_request`

Open jtsternberg opened this issue 7 years ago • 1 comments

Currently, there is a lot of duplicated functionality. We should default to putting our effort into the new REST API controllers and use those as the base. We'll likely have to make some modifications in WPSC_Controller_Cart to make sure things work from a back-compatibility standpoint (unless this is all TEV2? @JustinSainton?)

jtsternberg avatar Mar 15 '17 20:03 jtsternberg

All tev2, no need to be back compat w/ tev1 - and A++to reducing duplication.

JustinSainton avatar Mar 15 '17 21:03 JustinSainton