“Reserve price has been met” before any bids
-
When creating an auction for which I don’t need a reserve price, I have the following settings:
- Opening Price: 1 (I have to fill in this or the buy now price before I can save the item)
- Lowest Price to accept: 1 (once I’ve filled in “opening price” I’m forced to fill this in)
Before any bids have been submitted the bid page for this item says: “Reserve price has been met”. Surely until a bid has been made the reserve has not been met.
The code that determines what text to display looks like this:
if ( $curr_price >= get_post_meta( $wdm_auction->ID, 'wdm_lowest_bid', true ) ) {
?>
<div class="wdm_reserved_note wdm-mark-green wdm-align-left">
<em><?php esc_html_e( 'Reserve price has been met.', 'wdm-ultimate-auction' ); ?></em>
</div>
<?php
} else {
?>
<div class="wdm_reserved_note wdm-mark-red wdm-align-left">
<em><?php esc_html_e( 'Reserve price has not been met by any bid.', 'wdm-ultimate-auction' ); ?></em>
</div>
<?php
}Would it be better if it went through the else branch until there was at least one bid, i.e. modify the if condition to also depend on the number of bids.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘“Reserve price has been met” before any bids’ is closed to new replies.