if (rawValue instanceof Long) {
<BUG>price = priceService.getMinimalPrice((Long) rawValue, null, shop.getShopId(), currency, BigDecimal.ONE, false, null);
</BUG>
} else if (rawValue instanceof String) {
<BUG>price = priceService.getMinimalPrice(null, (String) rawValue, shop.getShopId(), currency, BigDecimal.ONE, false, null);
</BUG>
}
if (price != null && price.getSkuPriceId() > 0L) {
final BigDecimal sale = price.getSalePriceForCalculation();
if (sale != null) {

if (rawValue instanceof Long) {
price = priceService.getMinimalPrice((Long) rawValue, null, shop.getShopId(), fallbackId, currency, BigDecimal.ONE, false, null);
} else if (rawValue instanceof String) {
price = priceService.getMinimalPrice(null, (String) rawValue, shop.getShopId(), fallbackId, currency, BigDecimal.ONE, false, null);
}
if (price != null && price.getSkuPriceId() > 0L) {
final BigDecimal sale = price.getSalePriceForCalculation();
if (sale != null) {
