summaryrefslogtreecommitdiff
path: root/ord.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-19 15:48:18 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-19 15:48:18 +0800
commitf1503bf1a34cdb7b66171a2772108e7475ea792a (patch)
tree35bbf79c8b503f2092ae732ed95f0f494b6e74f4 /ord.cxx
parentb21dce3485058b8764500f1efc9f46bea5f7c890 (diff)
Add product title
Diffstat (limited to 'ord.cxx')
-rw-r--r--ord.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/ord.cxx b/ord.cxx
index 0d8f6eb..a80043e 100644
--- a/ord.cxx
+++ b/ord.cxx
@@ -36,6 +36,8 @@ namespace QInterchange {
switch (role) {
case Product::SkuRole:
return item.product.sku;
+ case Product::TitleRole:
+ return item.product.title;
case Product::DescriptionRole:
return item.product.description;
case Product::ImageRole:
@@ -53,6 +55,7 @@ namespace QInterchange {
{
return QHash<int, QByteArray>{
{ Product::SkuRole, "sku" },
+ { Product::TitleRole, "title" },
{ Product::DescriptionRole, "description" },
{ Product::ImageRole, "image" },
{ Product::PriceRole, "price" },