Fix: Calculate effectivePrice in design API endpoints

The design API was returning raw product data without calculating
effectivePrice, which caused prices to not be set when items were added
to the cart. Now uses toProductDTO to properly calculate the effective
price (accounting for sales) before returning design data.

Fixes issue where design reviews showed correct price but cart showed £0.00
This commit is contained in:
Andymick
2026-07-18 19:51:07 +01:00
parent 62ae2755f0
commit 60cb73f8a4
3 changed files with 16 additions and 4 deletions
+2 -1
View File
@@ -63,7 +63,8 @@
"Bash(git show *)",
"Bash(git status *)",
"Bash(git revert *)",
"Bash(git commit -m 'Fix price display issues and layout in design review page *)"
"Bash(git commit -m 'Fix price display issues and layout in design review page *)",
"Bash(git commit -m 'Fix: Calculate effectivePrice in design API endpoints *)"
]
}
}