<?php if (!class_exists('ML', false))
    throw new Exception(); ?>
<?php
$sListingType = $this->getField('listingType', 'value');
?>
<table class="hoodPrice ">
    <tbody>
    <tr>
        <th><?php echo $this->__('ML_HOOD_PRICE_CALCULATED') ?>:</th>
        <td colspan="2">
            <input type="hidden" name="<?php echo MLHTTP::gi()->parseFormFieldName($this->sOptionalIsActivePrefix.'[price]') ?>" value="<?php echo 'false'; ?>"/>
            <?php echo $this->oProduct->getSuggestedMarketplacePrice(MLModule::gi()->getPriceObject($sListingType), true, true) ?>
        </td>
    </tr>
    <?php
    if ($sListingType !== null) {
        if (in_array($sListingType, array('StoresFixedPrice', 'FixedPriceItem'))) {
            ?>
            <?php
        } else {//chinese
            ?>
            <tr>
                <?php
                $aPrice = $this->getField('price');
                $aPrice['type'] = isset($aPrice['optional']['field']['type']) ? $aPrice['optional']['field']['type'] : $aPrice['type'];
                $aPrice['value'] = number_format((float)$aPrice['value'], 2, '.', '');
                $this->includeType($aPrice);
                ?>
            </tr>
            <?php
            $aBuyItNow = $this->getField('buyitnowprice');
            $aBuyItNow['value'] = number_format((float)$aBuyItNow['value'], 2, '.', '');
            ?>
            <tr class="buynow"><?php $this->includeType($aBuyItNow); ?></tr>
            <?php
        }
    }
    ?>
    </tbody>
</table>
