Further to this, can force the error.
includes/modules/pages/product_info/jscript_dynamic_price_update.php
Code:
// use the spans to see if there is a discount occuring up in this here house
var test = thePrice.getElementsByTagName("span");
var psp = false;
var pdpt = false;
for (var a=0,b=test.length; a<b; a++) {
if (test[a].className === "normalprice") {
pdpt = test[a];
Leaving like this on a sale/special/reduced priced product, that is priced by attributes (product price is zero, attributes do all the work) gives:
Price 0.00 Price 123
Price 0.00 Price 234
Price 0.00 Price 456
Code:
<h2 id="productPrices" class="productGeneral"><font size="0.5" color="#636363">Price: </font><font size="0.5" color="#636363">Price: </font><span class="normalprice">£0.00</span> <span class="productSpecialPrice"><font size="0.5" color="#636363">Price: </font>£726.75</span><span class="productPriceDiscount"><br>Save: 25% off</span>
</h2>
Comment out the And gives the same (lowest priced attribute) starting price for all the different priced attributes
price 999 price 123
price 999 price 234
price 999 price 456
My html on page is as follows:
Code:
<h2 id="productPrices" class="productGeneral">
<font size="0.5" color="#636363">Price: </font><span class="normalprice">£969.00 </span> <span class="productSpecialPrice"><font size="0.5" color="#636363">Price: </font>£951.75</span><span class="productPriceDiscount"><br>Save: 25% off</span>
</h2>
/languages/english/extra_definitions/dynamic_price_updater.php contents:
Code:
<?php
/**
* @package Dynamic Price Updater
* @author Design75
* @version 3.0
* @licence This module is released under the GNU/GPL licence
*/
define('BOX_HEADING_DYNAMIC_PRICE_UPDATER_SIDEBOX', 'Price Breakdown'); // the heading that shows in the Updater sidebox
define('DPU_BASE_PRICE', 'Base price');
define('UPDATER_PREFIX_TEXT', '<font size="0.5" color="#636363">Price: </font>');
define('UPDATER_PREFIX_TEXT_STARTING_AT', 'Starting at: ');
define('UPDATER_PREFIX_TEXT_AT_LEAST', 'At least: ');
define('DPU_SHOW_QUANTITY_FRAME', ' (%s)');
define('DPU_SIDEBOX_QUANTITY_FRAME', ' x %s'); // how the weight is displayed in the sidebox. Default is ' x 1'... set to '' for no display... %s is the quantity itself
define('DPU_SIDEBOX_PRICE_FRAME', ' (%s)'); // how the attribute price is displayed
define('DPU_SIDEBOX_TOTAL_FRAME', '<span class="DPUSideboxTotalText">Total: </span><span class="DPUSideboxTotalDisplay">%s</span>'); // this is how the total should be displayed. %s is the price itself as displayed in the
define('DPU_SIDEBOX_FRAME', '<span class="DPUSideBoxName">%1$s</span>%3$s%2$s<br />'); // the template for the sidebox display. Instructions below
/*
*DPU_SIDEBOX_FRAME has 3 variables you can use... They are:
* %1$s - The attribute name
* %2$s - The quantity display
* %3$s - The individual price display
* You can position these anywahere around the DPU_SIDEBOX_FRAME string or even remove them to prevent them from displaying
*/
Bookmarks