Re: Dynamic Price Updater
actually the code to have the price and the add to cart button float on the top right is
HTML Code:
<DIV style="position: fixed; top: 56px; right: 30px; width: 240px; height: 40px;" id=cartAdd><H2 class=productGeneral id=productPrices>Starting at: $281.00</H2>Add to Cart: <INPUT maxLength=6 size=4 value=1
name=cart_quantity><BR><BR><INPUT type=hidden value=180
name=products_id><INPUT title=" Add to Cart " type=image alt="Add to Cart"
src="HOPC1 [HOPC1] - $281_00 OZM Systems, Powerful Custom Computers_files/button_in_cart.gif">
</DIV>
but again this is only works when I save the product page and add this code
obviously I need it to be done by the cart but I'm not sure what code to edit
I know the site is compiled from a bunch of files, I just need to find the file that calls for the div id=cartadd on the product detail page I think
any help would be greatly appreciated
Re: Dynamic Price Updater
ok, figured it out
you need to open the file tpl_product_info_display.php which is located in \includes\templates\template_default\templates
before the <!--bof Product Price block -->
I added
HTML Code:
<div style="position: fixed; top: 56px; right: 30px; width: 240px; height: 40px;">
and a closing div tag after <!--eof Product Price block -->
also I edited the div id="cartAdd" to
HTML Code:
<div style="position: fixed; top: 76px; right: 30px; width: 240px; height: 40px;" id="cartAdd">
(the closing div is already there)
then save it and upload it, the look of the box is a thin black line which I will try and also get the price breakdown to display too
WOW Zen Cart Rocks, together we can do anything with it
Re: Dynamic Price Updater
argh... only works on firefox...I will have to find out how to position it correctly in IE:oops:
Re: Dynamic Price Updater
Chrome,
Hows the new version coming along? I want to install this but I dont want to do it if there the new version coming soon. Also have you got it to work with quantity discounts?
Joe
Re: Dynamic Price Updater
When the option type is RADIO and the value 0 is selected, the price doesn't change back to previous amount.
i.e:
Price: $100
option 1: +0
option 2: +100
option 1 selected -> price $100
option 2 selected -> price $200
option 1 reselected (option 2 automatically unselected) -> price stays at $200, doesn't go back to $100.
Any idea how to work around this issue?
Thanks
Re: Dynamic Price Updater
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
Re: Dynamic Price Updater
Excellent contribution, thanks :)
Re: Dynamic Price Updater
Thank you so much for this great mod! The only thing I cannot get to work is my Radio Button choice. For example:
http://www.ilovephotogifts.com/index...roducts_id=131
I have it set to option 4 where the element is below image and option name--this will not work with the price updater...neither does option 5, but 0-3 work fine?!?!!?
I just read this whole thread but have not been able to find anything relevant to this issue?
Re: Dynamic Price Updater
same problem with "Momokui"
Issue of Price Updater. if i select price by attribute in product entry.
Price: $100
option 1: +0
option 2: +100
option 1 selected -> price $100
option 2 selected -> price $200
option 1 reselected (option 2 automatically unselected) -> price stays at $200, doesn't go back to $100.
please help... thanks :smile:
JYNKZ™
Re: Dynamic Price Updater
For some reason I seem to be getting a (1) around the price of the product when an attribute is selected. I'm using radio buttons, and the price scales up and down correctly depending on which attribute I choose, yet the (1) still stays at the top of the page next to the price.
I've looked through this thread a few times trying to get everything figured out, but can't find a solution to this problem. Anyone able to help me out? :)
Thanks,
Terps