I am attempting to style the quantity box and add to cart button on tpl_product_info_display but can't seem to separate the two. I have tried modifying the code from
toCode:<?php if ($display_qty == '0' or $display_button != '') { ?> <?php echo $display_qty; echo $display_button; ?> <?php } // display qty and button ?>
to no avail.Code:<?php if ($display_qty != '') { ?> <div id="cartQty"> <?php echo $display_qty; ?> </div> <?php } // display qty ?> <?php if ($display_button != '') { ?> <div id="addToCartButton"> <?php echo $display_button; ?> </div> <?php } // display button ?>
The code renders the div 'addToCartButton' around the two objects as a whole, instead of putting that div just around the button. Any ideas?


Reply With Quote
