
Originally Posted by
stiggy100
I too had this exact problem and only ever managed a workaround, my solution was to add:
#productAttributes {
margin:40px 0 0 -15px;
width:370px;
}
playing around with the margin helped - but as I say it was a workaround that worked for me - I have no idea if it will work for you. I'd be interested to hear to correct way to fix this though...
Got it. The code you provided did work, but my add to cart button was above the attributes which I thought was a problem (since my visitors are forced to add attributes and then add it to the cart). So it makes sense to move the add to cart button lower and it fixed the problem. Here is the solution that worked for me:
Find and Open: includes>templates>template_default>templates>tpl_product_info_display.php file.
Find this code around Line #88:
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-->
Move that code to after this tag (around line #142)
Code:
<!--eof Attributes Module -->
Save the file to: includes>templates>YOUR TEMPLATE>templates to override the core file.
Whalaaa! The add to cart image that was causing the issue was moved below the attributes. The attributes now diaplay the way the should display (in order).