Getting Error in transformation funtions

Nishant Khandelwal asked on September 4, 2016 18:04


After upgrading 8.2 to 9.0 while building the website I am getting following error at many places in transformation:- "The name 'GetSKUFormattedPrice' does not exist in the current context."

What could be the problem??

Correct Answer

Richard Sustek answered on September 5, 2016 09:03

The GetSKUFormattedPrice takes different parameters in Kentico 9. In K8 it took no parameters at all, but in K9 you now need to specify whether the discounts and taxes should be applied and the column name of the sku price.

You can call it like:

<%# GetSKUFormattedPrice(true, true, "ColumnName") %>

You can also find more information here (just search for the GetSKUFormattedPrice)

0 votesVote for this answer Unmark Correct answer

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