summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-15 11:54:37 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-15 11:54:37 +0800
commit5b457c0d69377c786436476d67476eee1c922462 (patch)
tree7a2011af4c82d59e6d980e9b658f4ccddfbc4215
parent5ff062e598afab8c8807003ef346b3b3d75b9f74 (diff)
Add optionType to item
-rw-r--r--ord.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/ord.cxx b/ord.cxx
index 0a4e67c..6995ed1 100644
--- a/ord.cxx
+++ b/ord.cxx
@@ -44,6 +44,8 @@ namespace QInterchange {
return item.product.image;
case Product::PriceRole:
return item.product.price;
+ case Product::OptionTypeRole:
+ return item.product.optionType;
case Item::QuantityRole:
return item.quantity;
case Item::NameRole:
@@ -61,6 +63,7 @@ namespace QInterchange {
{ Product::DescriptionRole, "description" },
{ Product::ImageRole, "image" },
{ Product::PriceRole, "price" },
+ { Product::OptionTypeRole, "optionType" },
{ Item::QuantityRole, "quantity" },
{ Item::NameRole, "name" }
};