From a5a01231f31b56d1e5a7594cef32cdfdcfdc4b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Fri, 31 Mar 2023 17:13:43 +0800 Subject: Function for removing an item from the cart --- ord.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ord.c') diff --git a/ord.c b/ord.c index 38a6aba..1dd8994 100644 --- a/ord.c +++ b/ord.c @@ -11,6 +11,15 @@ void interchange_ord_order(const char *sku, request(handler, NULL, NULL, "%s%s", "order?mv_arg=", sku); } +void interchange_ord_remove(const char *name, const char *nextpage, + void (*parser)(interchange_response *)) +{ + request(parser, NULL, &(struct body){ 1 + (nextpage ? 1 : 0), { + { name, "0" }, + { "mv_nextpage", nextpage } + }}, "%s", "process"); +} + void interchange_ord_checkout(const char *order_profile, struct interchange_member member, void (*handler)(interchange_response *)) -- cgit v1.2.3