added combined discount for consumer so codes can be calculated on the fly for any monitor

This commit is contained in:
TPV committed 2026-07-26 17:55:13 -07:00
1 parent e9632470fd
commit 4c1033057a
3 files changed
+141 -2

No files matched your search

+5
View File
@@ -347,6 +347,11 @@ def convert_product_to_mongo(product: Product) -> dict:
"customizationIndex": metadata["customization_index"],
"memberNonMemberComparison": metadata["member_non_member_comparison"],
"overstockText": metadata["overstock_text"],
"affiliateUrl": metadata["affiliate_url"],
"promoCode": metadata["promo_code"],
"promoPercentage": metadata["promo_percentage"],
"promoDollarOff": metadata["promo_dollar_off"],
"promoMinSpend": metadata["promo_min_spend"],
"startDate": timing["start_date"],
"endDate": timing["end_date"],
"priceBeforeDrop": pricing["price_before_drop"],