foreach ($price_selling_b2c as $spid => $price) {
            $show_discount = $price_option[$spid] == 'true';
            $product->updatePriceSelling($spid, $price_uvp_sp[$spid], $price, $show_discount);
        }
        foreach ($price_selling_b2b as $spid => $prices) {
            $activate_discount = $price_option[$spid] == 'true';
            $product->updatePriceSellingB2B($spid, $prices['nd'], $prices['d'], $activate_discount);
        }
        $message = 'Price has been saved successfully';
        $product_table = drawProductPriceTable($product, $message);
        echo utf8_encode($product_table);
        exit;
    } elseif ($_POST['me_action'] == 'PREVIEWPRICE') {
        $price = tep_db_prepare_input($_POST['price']);
        $price_old = tep_db_prepare_input($_POST['price_old']);
        echo utf8_encode(Product::generatePricePreview($price_old, $price));
        exit;
    }
}
if (isset($_GET['pids']) && $_GET['pids'] != '') {
    $pids = explode(',', $_GET['pids']);
    $js_pids = 'var pids = [' . implode(', ', $pids) . '];';
} else {
    $js_pids = 'var pids = top.window.$("#hid-products-id").val().split(",");';
}
$content .= '<div id="product-list"></div>';
$content .= '<div style="clear:both;">&nbsp;</div>';
$content .= '<div id="product-load-more"' . ' class="box ui-corner-all pointer tac"' . ' style="' . 'width:1000px;' . 'border-width:3px;' . 'border-style:dashed;' . 'font-size:2em;' . 'color:#999;' . 'display:none;' . '">' . 'Click here to load more products!' . '</div>';
$content .= '<div id="product-loading" style="display:none;"><img src="/images/ajax-load-2.gif" /></div>';
$javascript = $js_pids . '
            var total_products = pids.length;