psylencer, on Apr 28 2008, 12:09 AM, said:
Dan
Hello Dan:
thank you for your GREAT contribution. I installed a fresh v2.2 RC2a, SQL 5.x and PHP 5.x and copy over your Auction v2.1 using the Catalog_NEW_AND_MODIFIED FILES and adding the update my database.
I have and error when clicking on the auction product: on the bidding list, the customer ID did not appear but just " your bid: "
I still have the currencies error twice:
Warning: Missing argument 2 for currencies::display_price(), called in C:\wamp\www\abk\auctions.php on line 302 and defined in C:\wamp\www\abk\includes\classes\currencies.php on line 72
$10.00
Also, I fixed one of the overbid amount that cannot be updated in the administration page:
here is the fix:
"admin\auction.php": around line 50
$overbid_amount = tep_db_prepare_input($HTTP_POST_VARS['overbid_amount']);
case 'update':
$auctions_id = tep_db_prepare_input($HTTP_POST_VARS['auctions_id']);
$products_price = tep_db_prepare_input($HTTP_POST_VARS['products_price']);
$auctions_price = tep_db_prepare_input($HTTP_POST_VARS['auctions_price']);
-->$overbid_amount = tep_db_prepare_input($HTTP_POST_VARS['overbid_amount']);
$day = tep_db_prepare_input($HTTP_POST_VARS['day']);
$month = tep_db_prepare_input($HTTP_POST_VARS['month']);
$year = tep_db_prepare_input($HTTP_POST_VARS['year']);
FIND around line 68 :
tep_db_query("update " . TABLE_AUCTIONS_PRODUCTS . " set auctions_starting_price = '" . tep_db_input($auctions_price) . "', auctions_last_modified = now(), expires_date = '" . $day . "' where auctions_id = '" . (int)$auctions_id . "'");
REPLACE:
tep_db_query("update " . TABLE_AUCTIONS_PRODUCTS . " set auctions_starting_price = '" . tep_db_input($auctions_price) ."', overbid_amount = '" . tep_db_input($overbid_amount) ."', auctions_last_modified = now(), expires_date = '" . $day . "' where auctions_id = '" . (int)$auctions_id . "'");
Hope that helps to improve your great contribution.
Thanks
Laurent









