Show prices adjusted by discounts #716
Replies: 1 comment
-
Yea, the only workaround for this at the moment is to create a temporary order in memory then add the product to id and ask it to recalculate (you don't need to persist the order so it won't flood your DB). The hard thing with this is that the rules engine can be based on a lot of things. The simplest is a specific product in an order, but it can also be based on if a member is logged in, or if they have multiple specific products in an order, or even multiple specific products but also with shipping method X etc, so it can handle really complex scenarios, but all of these require context. You can use the workaround I mentioned creating a temporary order and seeing if something get's applied, but this is only going to work for simple rules that don't require additional context to calculate the price. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Which component is this idea for?
Umbraco Commerce (Core)
Describe your idea
Generally product prices are handled as Umbraco Content (properties on the specific Umbraco documenttypes) and then (by certain conventions) passed to the Umbraco Commerce engine when added to the basket etc. These "listprices" are general for all visitors in all contexts, but it would be very nice if it were possible to show prices adjusted by the Umbraco Commerce Discount engine. As I understand it, this is possible if you have an order-context, fx. in the checkout. Why is it not possible everywhere on a site to provide an order-context and get the exact prices adjusted by the discount-engine?
To be clear: I actually think it is a "must-have" to be able to show the context-specific prices everywhere on the site. To convince the customer to "add-to-basket" / buy something, we need to be able to show the context-specifik exact price on every product listing and product page - before the customer goes to checkout.
What do you think? :-)
Context
No response
Beta Was this translation helpful? Give feedback.
All reactions