I have had some usability testers report mild confusion regarding the way the quantity is displayed next to the updated price since it's just (1) or whatever number. I changed it to display (1 item) or (2 items) etc. I added a conditional to display (item) if the quantity is 1 and (items) for all other quantities. Here's what I did:
On line 296 change:
to:Code:document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ')' : '');
You can change the text to anything that you want. For instance, you could change it to display (Quantity x) by changing line 296 to:Code:if (quantity == 1) { document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ' item)' : ''); } else { document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (' + quantity + ' items)' : ''); }
Thanks again to Dan the Man for this most excellent of mods!!!Code:document.getElementById('productPrices').innerHTML = '<?php echo UPDATER_PREFIX_TEXT; ?>' + l + addCommas(newPrice) + r + (showQuantity ? ' (Quantity ' + quantity + ')' : '');
Cheers, Happy Christmas and Merry New Year!!![]()


Reply With Quote
