Skip to content

Fix missing currency on negative prices in feed - #273

Merged
Marvin-Magmodules merged 2 commits into
masterfrom
fix/price-currency-negative
May 13, 2026
Merged

Fix missing currency on negative prices in feed#273
Marvin-Magmodules merged 2 commits into
masterfrom
fix/price-currency-negative

Conversation

@Marvin-Magmodules

Copy link
Copy Markdown
Member

Summary

  • Clamp negative prices to 0.00 and always append currency suffix when use_currency is enabled
  • Previously, negative prices (from corrupted index or bad data) bypassed the currency append logic, causing Channable to reject the feed with "The price of at least one product is missing a currency"

Test plan

  • Create/simulate a product with a negative price in the index
  • Generate the feed and verify the price outputs as 0.00 EUR instead of a bare negative number
  • Verify normal positive prices still output correctly with currency suffix

Clamp negative prices to 0.00 and always append currency suffix
when use_currency is enabled. Previously, negative prices bypassed
the currency append logic, causing Channable to reject the feed
with "The price of at least one product is missing a currency".
@Marvin-Magmodules
Marvin-Magmodules merged commit 1f49196 into master May 13, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant