Copied to clipboard

Flag this post as spam?

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

  • MB 273 posts 936 karma points
    Oct 28, 2019 @ 16:33

    Marketing discount rule on product page

    Hi guys,

    Have any of you displayed marketing discounted prices on the product page?

    Currently, I get the price like this:

        decimal price = CurrentPage.GetPropertyValue("price");
          <span>@priceFrom</span> @String.Format("{0:n}", price) DKK

    And for variants:

      @foreach (VariantPublishedContent variant in variants)
        <div class="variantPrice price" data-priceindex="@variantIndex">
              @(TC.GetPrice(1, Model.Content.Id + "_" + variant.VariantIdentifier))

    The basket shows the discount just fine but how do I check if this specific category of products has a marketing rule?

    // Mike

Please Sign in or register to post replies

Write your reply to: