From e2d7e962356e6f064ffcb0c23a9d87580d9beaab Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ Date: Mon, 15 May 2023 11:43:45 +0800 Subject: Add option_type to product --- interchange.c | 2 ++ interchange.h | 1 + 2 files changed, 3 insertions(+) diff --git a/interchange.c b/interchange.c index 223e3c1..473b7f4 100644 --- a/interchange.c +++ b/interchange.c @@ -81,6 +81,8 @@ void interchange_clear_product(struct interchange_product *product) free(product->crosssell->skus[i]); if (product->author) free(product->author); + if (product->option_type) + free(product->option_type); if (product->category) free(product->category); if (product->prod_group) diff --git a/interchange.h b/interchange.h index 2c7be52..957b510 100644 --- a/interchange.h +++ b/interchange.h @@ -14,6 +14,7 @@ struct interchange_product { char *prod_group; char *category; double weight; + char *option_type; char *author; struct interchange_product_crosssell { size_t length; -- cgit v1.3