Ability to Retrieve Product Price Including Applied Discounts Outside the Cart #2354
Asmodeyby
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I’ve run into a limitation when working with discounts in Lunar. Right now, discounts seem to apply only at the cart level, which makes it impossible to display a product’s discounted price outside the cart — for example, directly on the product page or in a product listing.
This creates a practical gap because showing the “final price” with discounts is a very common e-commerce requirement. From a developer’s perspective, the need for such functionality is natural and feels like something that should be supported at the product level, not only via the cart.
It’s possible I’ve overlooked an existing mechanism, but as far as I can tell, there is currently no straightforward way to apply a discount to a product and fetch its discounted price outside a cart instance.
Beta Was this translation helpful? Give feedback.
All reactions