you can use checkboxes to get around the price adjustment issue
the code for positioning I posted works in IE7+, FF, Opera and others
I'm still working on getting the code to place the information in a decent spot on IE6
I figured out how to put the price breakdown on the side so it scrolls with the page too (you will need to turn it off in the admin under tools layout box controller)
insert this code anywhere, end of the page is fine
HTML Code:
<div style="position: fixed; top: 426px; right: 30px; width: 200px; height: 30px;"; align="center">
<!--// bof: priceupdatersidebox //-->
<div class="rightBoxContainer" id="priceupdatersidebox" style="width: 150px">
<h3 class="rightBoxHeading" id="priceupdatersideboxHeading">Price Breakdown</h3>
<div id="priceupdatersideboxContent" class="sideBoxContent"></div></div>
<!--// eof: priceupdatersidebox //-->
</div>
add a div tag before the <!--bof Product Price block --> and a closing div tag like so
HTML Code:
<div style="position: fixed; top: 266px; right: 30px; width: 200px; height: 30px;"; align="center">
<!--bof Product Price block -->
<h2 id="productPrices" class="productGeneral">
<?php
// base price
if ($show_onetime_charges_description == 'true') {
$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
?></h2>
<!--eof Product Price block -->
</div>
style the div id="cartAdd" like so
HTML Code:
<div style="position: fixed; top: 306px; right: 60px; width: 100px; height: 40px; background-color:#81c481" id="cartAdd" align="center">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
This will display the price, add this to my cart button and the price breakdown
This doesn't work on IE6 and below, I'm still working on a viable workaround for IE6 not supporting fixed positioning
Bookmarks