Re: Dynamic Price Updater
Quote:
Originally Posted by
mvstudio
I was checking the file last night and was able to make some progress, I think.
In comparing the file in the plugin with the modifications you suggested, and this file
https://github.com/mc12345678/Dynami...ce_updater.php which already contains the modifications, I found an extra line at the bottom of the code on the one on the plugin. In removing that extra line the product info page now downloads. However the ajax loader image stays on a loop. You can see the behavior on the test page here
http://www.byvalenti.com/bvostoretem...&products_id=4
No error log files are generated with this behavior.
I hope this info helps you a bit =)
Thank you for looking into it.
Now that have a link to a "problem" page, for one thing there are some significant html validation issues, one of which is considered a fatal error as seen here: https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.byvalenti.com%2Fbvostoretemp%2Findex.php%3Fmain_page%3Dpro duct_info%26cPath%3D8_9%26products_id%3D4.
Another issue may be related to the loading of jquery 1.7.1 as what looks like the main jquery to be loaded.
From my device, I couldn't see the entire page and the css essentialy wasn't loaded.
Recommend addressing the validation issues before attempting to further work with javascript/jquery related code.
Re: Dynamic Price Updater
The validation issues was on my to-do list, after installing all the plugins the site needed.
Anyways all the validation issues have been resolved. The jquery 1.7.1 is part of the zx Slideshow plugin.
Thank you!
Re: Dynamic Price Updater
Quote:
From my device, I couldn't see the entire page and the css essentialy wasn't loaded.
I didn't see a css file for the plugin. The templates folder only contains a jscript and sideboxes folders.
Re: Dynamic Price Updater
Quote:
Originally Posted by
mvstudio
I didn't see a css file for the plugin. The templates folder only contains a jscript and sideboxes folders.
Correct, the plugin's folders do not contain a css file. What I was referring to was that your site did not load from my mobile device because of some problem on the site. Part of the observatio of that problem was that css would not get applied to the html objects because of whatever the error was.
Now, today, I tried to access your site to see if it was the jquery 1.7.1 or some other issue that is causing the problem. Right now I see two console errors through firefox:
Quote:
onload@http://www.byvalenti.com/bvostoretemp/index.php?main_page=product_info&cPath=8_9&products_id=4:2:3
index.php:4:3
Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jscript_jquery-1.7.1.min.js:3:6598
The first is because it appears that only part of this plugin has been removed (includes/modules/pages/product_info/jscript_dynamic_price_updater.php) for some reason. Mind you the image replace option could have been turned off so that there wouldn't be a spinning image to possibly stay behind... I've again tested the specific change(s) on my site without problems or javascript errors.
The second because of the use of jquery 1.7.1... Would suggest looking into the ability to update/upgrade the zx Slideshow or at least to try to use newer jquery.
Re: Dynamic Price Updater
Thank you for looking into that.
The first the file is on the folder, however I turned off the pluggin as I spent the weekend installing other modules required for the site/tweaking overall design and the spinning image was making it harder to see the changes.
The second, the jquery 1.7.1 is the file on the latest version of the pluggin, go figure. I'll locate an updated version and see if that makes a difference.
I'll keep you posted.
Thank you again for looking into it.
Re: Dynamic Price Updater
I've updated to the latest jquery I could find 1.9.1, no change.
I deleted both files from the server the 1.7.1 and 1.9.1 and no change. The wheel keeps on spinning non-stop.
I've checked the error log, nothing is generated so I'm assuming everything works the way it should.
I'm going to leave the DPU on with the latest jquery installed for you to check it out.
Thank you again for looking into it.
Re: Dynamic Price Updater
Quote:
Originally Posted by
mvstudio
I've updated to the latest jquery I could find 1.9.1, no change.
I deleted both files from the server the 1.7.1 and 1.9.1 and no change. The wheel keeps on spinning non-stop.
I've checked the error log, nothing is generated so I'm assuming everything works the way it should.
I'm going to leave the DPU on with the latest jquery installed for you to check it out.
Thank you again for looking into it.
Preliminary review has identified "two", no actually three things. One which would be resolved by not using the replacement image, seeming to cause the problem with the image. :)
There is either some setting or condition that is causing the change of the attribute to attempt to access the login page (which has also been seen "randomly" by attempting navigate the site) I don't know if this is a session issue or what is causing it, but that is one response which is causing trouble and seems to be the reason that the image does not clear as the page is being redirected and I'm not logged in. If being logged in ends up being a criteria for use of this on your server because of your setup, then it could be disabled until the user is logged in as part of the initial load sequence. I could guide you to that if necessary and if the observation is your expected process.
The third thing possibly, which would likely at least resolve a part of the overall issue is that upon first attempt to access the data, a proxy authentication required message was received one time which is then processed, but by that point the ajax has already been considered to basically have failed and no further action is/was taken in a way. (After additional network monitoring, I'm not so sure that this is the specific problem or just something else that was observed at the same time as the issue occurring.) Haven't stepped through the entire transmission/response cycle sufficiently to identify which part of the process causes the loss of the onscreen restoration that was seen, but there is the possibility of incorporating some additional "retry" code to work through the authentication request that was seen to occur.
Re: Dynamic Price Updater
Thank you for looking into it. I really appreciate the time you've invested.
So, thing number 1, turned off the loading graphic, price doesn't update at all, logged in or not. I also tried having the loading graphic turned on, while logged in, nothing, no change on the perpetual spinning. I would like the price updater to work whether the client is logged in or not.
I turned off all the modules I could, to see if that would make a difference and no change.
I'm turning off the module for the time being until we can figure out what's the issue.
Thank you for all the effort you've put into it. =)
Re: Dynamic Price Updater
Quote:
Originally Posted by
mvstudio
Thank you for looking into it. I really appreciate the time you've invested.
So, thing number 1, turned off the loading graphic, price doesn't update at all, logged in or not. I also tried having the loading graphic turned on, while logged in, nothing, no change on the perpetual spinning. I would like the price updater to work whether the client is logged in or not.
I turned off all the modules I could, to see if that would make a difference and no change.
I'm turning off the module for the time being until we can figure out what's the issue.
Thank you for all the effort you've put into it. =)
The issue appears to have initially been whatever is in place (or not) that is requiring a user to be logged in. Not so much that the individual is or is not logged in, but something I found just in navigating the site is that sometimes when trying to change to another page I am redirected to the login screen... Sometimes I am not.. Do you have some sort of additional session handling/handler? BTW, since the software is completely turned off, there is no way that I can identify anything further because this is something affecting your site specifically and for some reason... I can't recreate it on anything that I operate. If it could remain enabled but without the replacement image then at least it could be further investigated/tested and at least one can see the base price (rather than the price being hidden by a spinning dial).
Otherwise, if you wish to figure it out on your own, I suggest you become familiar with the debugger of the browser of your choice. There are some javascript related issues that were identified with your particular page (outside of this plugin) and as far as "finding" a newer jquery, your particular ZC store already has 1.12.0 and therefore there is no other jquery that needs to be loaded (assuming that the other software needing jquery can operate in that environment.)
Re: Dynamic Price Updater
On second thought, what "change" are you expecting to see? The example product that I have seen technically contain only one attribute. Therefore, the price displayed is the only price to be displayed... Just after I posted the above, I went to the site and the plugin was still enabled... I didn't see any errors returned and the price was identified as starting at: XX.XX... Therefore from my perspective the plugin was working just fine. Now if there was a product that had two or more attributes where at least two of the attributes had a different price, then maybe we could be talking about the updates not occurring. Of course now that the plugin has actually been disabled I can't do anything further other than report what was observed while it was present.