Display Inventory of a product in the transformation

jason jorgenson asked on May 14, 2020 23:52

Hello,

I am trying to display the inventory amount on the product display and have it read Sold out if the amount is 0.

Kentico 11

Recent Answers


David te Kloese answered on May 15, 2020 10:25

What development Model are you using? Portal Engine or MVC?

How is the product data displayed? Using a Web Part, Widget?

0 votesVote for this answer Mark as a Correct answer

jason jorgenson answered on May 15, 2020 17:09

I was able to get the inventory to display on a product in the transformation using <%#ValidationHelper.GetInteger(Eval("SKUAvailableItems"), 0) %> but was having issues with it displays on a sized item. Do you know what I would reference to hide the Inventory on sized items?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 15, 2020 17:12

Jason,

Check out the out of the box ECommerce transformations on the ECommerce Page Type. They have examples of getting variants and option values.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.