If someone interested I've done my second question:
Now each customer must have money on his account to get involved into auction. Here is the solution:
1. Install in upgrade mode Account Balance (gift certificate redemption) contribution.
2. edit /includes/modules/auctions/auction_bids.php
after:
<!-- FWR START AUCTIONS CODE //-->
<?php !tep_not_null($this->auctions['auctions'][$this->auctionKey]->auctions_high_cust) ?
$highcust = "0" :
$highcust = $this->auctions['auctions'][$this->auctionKey]->auctions_high_cust;
add:
//--------------balance checkout
$products_customer_balance = "SELECT c.customers_id, customers_account_balance FROM " . TABLE_CUSTOMERS . " c, " . TABLE_AUCTIONS_BIDS . " ab," . TABLE_AUCTIONS . " ap WHERE c.customers_id = ab.customers_id";
$products_query = tep_db_query($products_customer_balance);
$rows = 0;
if( tep_db_num_rows($products_query) > 0 ){
while ($products = tep_db_fetch_array($products_query)) {
$rows++;
if (strlen($rows) < 2) {
$rows = '0' . $rows;
}
$bala = $products['customers_account_balance'];
}
}
// echo $bala;
//--------------end of balance checkout
Then after:
function validate(form) {
Add:
//----balance chekout
if(<?php echo round($bala,0); ?> < <?php echo "300"; ?>){
alert('<?php echo AUCTIONS_BALANCE_TOO_LOW; ?>');
return false;
}
//----end of balance checkout
Define your message in
/includes/modules/auctions/languages/<your language>/auctions_general.php
by adding:
define('AUCTIONS_BALANCE_TOO_LOW', 'Not enough money (for instance) ');
But I still didn't find solution for my first problem. Any help appreciated.