From 228c93e5d02359a7a8f6d08da7a99bfbd79ce0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Tue, 16 Jun 2020 09:41:12 +0800 Subject: Product cross-sell list of strings member --- qicclient/product.hxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'qicclient') diff --git a/qicclient/product.hxx b/qicclient/product.hxx index 3b47241..b2abdeb 100644 --- a/qicclient/product.hxx +++ b/qicclient/product.hxx @@ -15,7 +15,8 @@ namespace ICClient { PriceRole, ProdGroupRole, WeightRole, - AuthorRole + AuthorRole, + CrossSellRole }; Product(icclient_product* product) : @@ -34,6 +35,11 @@ namespace ICClient { prodGroup = QString{product->prod_group}; if (product->author) author = QString{product->author}; + if (product->cross_sell) { + auto cross_sell = product->cross_sell; + for (size_t i = 0; i < cross_sell->length; i++) + crossSell << QString{cross_sell->skus[i]}; + } } QString sku; @@ -44,6 +50,7 @@ namespace ICClient { QString prodGroup; double weight; QString author; + QStringList crossSell; }; } -- cgit v1.2.3