From 0d474d9483b797e2ff6996f752d057bc144f2311 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, 20 Feb 2023 09:28:41 +0800 Subject: Add product category and reorder title & description. --- interchange/product.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'interchange') diff --git a/interchange/product.hxx b/interchange/product.hxx index 63ac63e..eda700a 100644 --- a/interchange/product.hxx +++ b/interchange/product.hxx @@ -9,13 +9,14 @@ namespace QInterchange { { enum ProductRoles { SkuRole = Qt::UserRole + 1, - TitleRole, DescriptionRole, + TitleRole, CommentRole, ThumbRole, ImageRole, PriceRole, ProdGroupRole, + CategoryRole, WeightRole, AuthorRole, CrossSellRole @@ -28,10 +29,10 @@ namespace QInterchange { { if (product->sku) sku = QString{product->sku}; - if (product->title) - title = QString{product->title}; if (product->description) description = QString{product->description}; + if (product->title) + title = QString{product->title}; if (product->comment) comment = QString{product->comment}; if (product->thumb) @@ -40,6 +41,8 @@ namespace QInterchange { image = QString{product->image}; if (product->prod_group) prodGroup = QString{product->prod_group}; + if (product->category) + category = QString{product->category}; if (product->author) author = QString{product->author}; if (product->crosssell) { @@ -50,13 +53,14 @@ namespace QInterchange { } QString sku; - QString title; QString description; + QString title; QString comment; QString thumb; QString image; double price; QString prodGroup; + QString category; double weight; QString author; QStringList crossSell; -- cgit v1.2.3