Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there any way to get the prices with a discount included if a sale is active on a particular product? So in a product page where the item is on sale, you will see the price with the discount applied?
Are you referring to having a discount setup in the discounts section and you want to show the price excluding that discount?
If so, unfortunately not. The problem with this is that discounts can be configured with many rules so it would be pretty hard to figure out for a single product what the discounted price would be. Maybe if it was just a single product discount we could find it, but if you have for example a discount for a product with a certain quantity, I wouldn't know how people would want to display this?
The way this is handled currently is to say add an extra price field on the product for "discounted price" and manage that manually.
Not ideal, but it's the only sure fire way of handling it.
Yes, that was exactly what I was asking for, I see your point and if that is the only workaround then at least we have one.
Is there any way to get the award of a specific product/rule? so Instead of displaying the price, you can display a text or something to indicate that this product it's on sale or has 20% off ??
Is there any way to interact with the marketing section in this way?
We have a CampaignService which you can access to get a list of campaigns. You can access that via CampaignService.Instance.GetAllActive(storeId) to get a list of all active marketing campaigns. We also have an award service and a rule service you could access, but these only return a list of the awards / rules. None of them will provide any level of filtering as this all occurs in the order calculator.
The only way I could think to get a list of discounts that would apply would be to create a dummy order and add the product to it, then run the calculator. But this would be faaaaar from an ideal solution.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted