summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-15 11:43:45 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-15 11:43:45 +0800
commite2d7e962356e6f064ffcb0c23a9d87580d9beaab (patch)
treee2e1f9624dc211f7e1b3978402dacb79b60656f7
parent42ad93d1f6e7dbca2264c2cf62db3b8c79a5120b (diff)
Add option_type to product
-rw-r--r--interchange.c2
-rw-r--r--interchange.h1
2 files changed, 3 insertions, 0 deletions
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;