From 5ff062e598afab8c8807003ef346b3b3d75b9f74 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: Mon, 15 May 2023 11:48:14 +0800 Subject: Add optionType to product --- catalog.cxx | 3 +++ interchange/product.hxx | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/catalog.cxx b/catalog.cxx index ece144c..aa1dd5f 100644 --- a/catalog.cxx +++ b/catalog.cxx @@ -42,6 +42,8 @@ namespace QInterchange { return product.category; case Product::WeightRole: return product.weight; + case Product::OptionTypeRole: + return product.optionType; case Product::AuthorRole: return product.author; case Product::CrossSellRole: @@ -66,6 +68,7 @@ namespace QInterchange { { Product::ProdGroupRole, "prodGroup" }, { Product::CategoryRole, "category" }, { Product::WeightRole, "weight" }, + { Product::OptionTypeRole, "optionType" }, { Product::AuthorRole, "author" }, { Product::CrossSellRole, "crossSell" }, { Product::ImageLargeRole, "imageLarge" } diff --git a/interchange/product.hxx b/interchange/product.hxx index 2b6d12c..8a46d89 100644 --- a/interchange/product.hxx +++ b/interchange/product.hxx @@ -18,6 +18,7 @@ namespace QInterchange { ProdGroupRole, CategoryRole, WeightRole, + OptionTypeRole, AuthorRole, CrossSellRole, ImageLargeRole @@ -44,6 +45,8 @@ namespace QInterchange { prodGroup = QString{product.prod_group}; if (product.category) category = QString{product.category}; + if (product.option_type) + optionType = QString{product.option_type}; if (product.author) author = QString{product.author}; if (product.crosssell) { @@ -65,6 +68,7 @@ namespace QInterchange { QString prodGroup; QString category; double weight; + QString optionType; QString author; QStringList crossSell; QString imageLarge; -- cgit v1.2.3