frank18:
Thought so: template specific issue.
Do you need "Login For Price" twice?
If not then modify your stylesheet.css asf:
#productPrices {
display: none;
}
>
> and
>
> ```
#addCart {
font-size: xxpx; /* replace xx with your own*/
line-height: xxpx;
float: right;
}
yes you are correct i will removed the extra login. now the problem is that now i have 2 quantity box one small and one larger. i did remove the small
one before but the large one looks ugly..if i add something, on the top qnty box it will not register. the larger will register products but is to big lol.
Zencart default template line i need code:
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
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('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
Custom Code it came with the template:
<!-- Options -->
<div id="productOptions">
<div class="frame_wrap frame_wrap_header clearfix">
<div class="fwh-title">Options</div>
</div>
<div class="frame_wrap frame_wrap_content clearfix">
<?php
if ($products_qty_box_status != 0 or $products_quantity_order_max!= 1) {
$add_quantity = '<label for="attrQuantity">' . PRODUCTS_ORDER_QTY_TEXT . '</label><input class="cart_quantity" type="number" name="cart_quantity" id="attrQuantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" min="1" />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . zen_draw_hidden_field('products_id', (int)$_GET['products_id']);
echo '<div class="prod-opt">' .$add_quantity. '</div>';
}
?>
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
* display the product atributes
*/
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
}
?>
<!--eof Attributes Module -->
</div>
</div>
<div class="product_footer clearfix">
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
?>
<?php if ($display_qty != '') { ?>
<div id="cartAdd"><?php echo $display_qty; ?></div>
<?php } ?>
<!-- Add to cart -->
<input class="btn add2cart" type="submit" name="add_to_cart" value="<?php echo TEXT_PRODUCT_ADD_TO_CART; ?>" />