Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alejandro Ocampo 58 posts 300 karma points c-trib
    16 days ago
    Alejandro Ocampo
    0

    Show "Sales" price on product pages

    Hi,

    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?

    Thanks!

    Ale

  • Matt Brailsford 2279 posts 11088 karma points MVP 6x c-trib
    16 days ago
    Matt Brailsford
    0

    Hey Ale,

    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.

    Matt

  • Alejandro Ocampo 58 posts 300 karma points c-trib
    15 days ago
    Alejandro Ocampo
    0

    Hi Matt,

    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?

    Thanks!

    Ale

  • Matt Brailsford 2279 posts 11088 karma points MVP 6x c-trib
    15 days ago
    Matt Brailsford
    0

    Hi Ale,

    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.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft