# Campaign price per order row in checkout

**URL:** <https://forum.litium.com/t/campaign-price-per-order-row-in-checkout/629>\
**Category:** Questions\
**Created:** [February 27, 2019, 4:19am UTC](https://forum.litium.com/t/campaign-price-per-order-row-in-checkout/629 "2019-02-27T04:19:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![totte.perera](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@totte.perera](https://forum.litium.com/u/totte.perera)\
**Post date:** [February 27, 2019, 4:19am UTC](https://forum.litium.com/t/campaign-price-per-order-row-in-checkout/629/1 "2019-02-27T04:19:58Z")

</div>

Hello.

I want to be able to display for every order row if there are any campaign prices on that variant.

Ex. oldprice, saved and campaign price.

The campaign is for example going to be buy 3 get the cheapest one for free.

How do I in that case display the campaign price on the variant that the campaign is active for?

Ex. 3 different variants all with the campaign, display the campaign price on the cheapest variant.

Edit:

I’m asking the question because when running the code there are no active campaign on the order row.

And no result using ICampaignPriceCalculator.GetCampaignPrices on the variant.

Litium version: 5

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [March 1, 2019, 7:23pm UTC](https://forum.litium.com/t/campaign-price-per-order-row-in-checkout/629/2 "2019-03-01T19:23:41Z")

</div>

It is only product campaign types that is storing the information on the order row. For the _take 3 pay for 2_ the discount is added as an order level discount and is not connected to the individual rows but connected to the campaign itself with the campaign id property.

Not sure how performance it will be but you can fetch the campaign, fetching the action and from that see the products that is included. Based on the products that is included you can find the order rows and based on the price you can pick the correct one to show the discount on.

> [@totte.perera](#):
>
> ICampaignPriceCalculator.GetCampaignPrices

Is only returning prices for product campaign types.

---

<div class="post-metadata">

**Author:** ![totte.perera](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@totte.perera](https://forum.litium.com/u/totte.perera)\
**Post date:** [March 4, 2019, 9:07am UTC](https://forum.litium.com/t/campaign-price-per-order-row-in-checkout/629/3 "2019-03-04T09:07:01Z")

</div>

Do you have an example of fetching the action to see the products?

---

<div class="post-metadata">

**Author:** ![totte.perera](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@totte.perera](https://forum.litium.com/u/totte.perera)\
**Post date:** [March 5, 2019, 1:48am UTC](https://forum.litium.com/t/campaign-price-per-order-row-in-checkout/629/4 "2019-03-05T01:48:52Z")

</div>

@patric.forsgard

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [March 5, 2019, 7:22am UTC](https://forum.litium.com/t/campaign-price-per-order-row-in-checkout/629/5 "2019-03-05T07:22:31Z")

</div>

No, sorry I don’t have any example code that will check data in the campaign action and/or conditions.
