Congratulations...worked first time.
Some observations on this version 3.1.1.
- FFox with Web Developer flagged up a js error.
Warning: ReferenceError: assignment to undeclared variable updateSidebox
referrring to its first use here
var sbContent = '';
updateSidebox = true; HERE
} else {
updateSidebox = false;
So I declared it at the start:
var psp = false;
var updateSidebox;
- Chrome flagged another error
Uncaught NotFoundError: An attempt was made to reference a Node in a context where it does not exist.
Referring to:
objXHR.prototype.handlePrice = function () {
var thePrice = document.getElementById('productPrices');
thePrice.removeChild(loadImg); HERE
Changed this to
if (thePrice.loadImg) {
thePrice.removeChild(loadImg);
}
- I noted that the method of switching off of the sidebox code generation is not implemented. ie it still fires when the sidebox is not enabled in the Admin as
$show_dynamic_price_updater_sidebox = true;
is set manually in three places.
I did make some effort to make it work but lost interest when passing a variable into the class method, so just disabled the code in the three relevant places as I don't use the sidebox.