diff options
Diffstat (limited to 'qicclient/product.hxx')
-rw-r--r-- | qicclient/product.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
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; }; } |