Correction to the abowe.
I have a mod in an other file, so the abowe correction will probably not work for you. Sorry ....
So use this in stead. It should work wheather you have the product with or without tax.
In includes/modules/pages/product_auction_info/header_php.php
fine about between lines 20 and 25
Change to:PHP Code:
require(DIR_WS_MODULES . 'require_languages.php');
$process = false;
if (isset($_POST['action']) && ($_POST['action'] == 'place_bid')) {
$process = true;
$auction_bid = zen_db_prepare_input($_POST['auction_bid_amount']);
$auction_bid = zen_round($auction_bid, $currencies->currencies[$_SESSION['currency']]['decimal_places']);
$auction_price = zen_db_prepare_input($_POST['auction_price']);
$auction_current_bid = zen_db_prepare_input($_POST['auction_current_bid']);
$auction_current_bid = ($auction_current_bid > 0) ? $auction_current_bid : 0.01;
$products_id = zen_db_prepare_input($_GET['products_id']);
PHP Code:
require(DIR_WS_MODULES . 'require_languages.php');
$process = false;
$sql = "select p.products_id,
p.products_tax_class_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCT_AUCTION_EXTRA . " pae
where p.products_status = '1'
and p.products_id = '" . (int)$_GET['products_id'] . "'
and pd.products_id = p.products_id and p.products_id = pae.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'";
$product_info = $db->Execute($sql);
$site_tax = zen_get_tax_rate($product_info->fields['products_tax_class_id']);
if (isset($_POST['action']) && ($_POST['action'] == 'place_bid')) {
$process = true;
$auction_bid = zen_db_prepare_input($_POST['auction_bid_amount']);
$auction_bid = zen_round($auction_bid, $currencies->currencies[$_SESSION['currency']]['decimal_places']);
$auction_price = zen_db_prepare_input($_POST['auction_price']);
$auction_current_bid = zen_db_prepare_input($_POST['auction_current_bid']);
$auction_current_bid = ($auction_current_bid > 0) ? $auction_current_bid : 0.01;
$products_id = zen_db_prepare_input($_GET['products_id']);
if ($site_tax > 0) {
$auction_bid = $auction_bid * "100" / sprintf("1".$site_tax);
}