summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--catalog.cxx5
-rw-r--r--interchange/product.hxx6
2 files changed, 9 insertions, 2 deletions
diff --git a/catalog.cxx b/catalog.cxx
index bb1f4dd..ece144c 100644
--- a/catalog.cxx
+++ b/catalog.cxx
@@ -46,6 +46,8 @@ namespace QInterchange {
return product.author;
case Product::CrossSellRole:
return product.crossSell;
+ case Product::ImageLargeRole:
+ return product.imageLarge;
default:
return QVariant();
}
@@ -65,7 +67,8 @@ namespace QInterchange {
{ Product::CategoryRole, "category" },
{ Product::WeightRole, "weight" },
{ Product::AuthorRole, "author" },
- { Product::CrossSellRole, "crossSell" }
+ { Product::CrossSellRole, "crossSell" },
+ { Product::ImageLargeRole, "imageLarge" }
};
}
diff --git a/interchange/product.hxx b/interchange/product.hxx
index b8e6714..2b6d12c 100644
--- a/interchange/product.hxx
+++ b/interchange/product.hxx
@@ -19,7 +19,8 @@ namespace QInterchange {
CategoryRole,
WeightRole,
AuthorRole,
- CrossSellRole
+ CrossSellRole,
+ ImageLargeRole
};
Product() {}
@@ -50,6 +51,8 @@ namespace QInterchange {
for (size_t i = 0; i < crosssell->length; i++)
crossSell << QString{crosssell->skus[i]};
}
+ if (product.image_large)
+ imageLarge = QString{product.image_large};
}
QString sku;
@@ -64,6 +67,7 @@ namespace QInterchange {
double weight;
QString author;
QStringList crossSell;
+ QString imageLarge;
};
}