
Originally Posted by
arrow
I should have given you more details. When I say the button don't appear, I mean that nothing appear in its place either. There is no square with a red "x" that would imply a broken link, there is no "BUTTON_IMAGE_AUCTION_BUY_NOW" written that would suggest a define problem. I checked the page source and saw no code there for a button to appear. By the way, all of this is with the option in Auction Manager turned on.
What I would need is the code that is supposed to display the button. That's where I think my issue is.
Sounds like the file did not upload all the way. You may need to upload tpl_product_auction_info_display.php once more. The following is the full section that deals with displaying the Buy Now button and price. If the full section is not used, you may have problems with it working right.
Lines 176-195
Code:
<?php
if (($products_buynow_price > $auction_current_bid) && ($products_buynow_price > 0)) {
if (AUCTION_INFO_DISPLAY_BUY_NOW == '1') { ?>
<div class="productAuction biggerText"><?php echo BUY_NOW_PRICE; ?> <?php echo $currencies->display_price($products_buynow_price,
zen_get_tax_rate($product_info->fields['products_tax_class_id'])); ?>
<?php echo ((SHOW_PRODUCT_INFO_IN_CART_QTY == '1' and $_SESSION['cart']->in_cart($_GET['products_id'])) ? PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) : ' '); ?>
<?php
if ($products_qty_box_status == '0' or $products_quantity_order_max== '1') {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('price', $products_buynow_price) . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_AUCTION_BUY_NOW, BUTTON_AUCTION_BUY_NOW_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_QUANTITY_TO_BUY_NOW . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br>' . zen_draw_hidden_field('price', $products_buynow_price) . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_AUCTION_BUY_NOW, BUTTON_AUCTION_BUY_NOW_ALT);
}
?><br/><?php
echo zen_get_buy_now_button_auction($_GET['products_id'], $the_button);
?>
</div>
<?php } } ?></form>
I guess I'm a bit confused, if this is missing, then you may have even more of the file missing.
Bookmarks