Re: Dynamic Price Updater
Quote:
Originally Posted by
Calljj
Changed code,no difference.
happening on all browsers.
Done a little more leg work... Looks like there might be an extra "blank" line somewhere in the process.
Check the following file to ensure that before the first <?php that there is no "hidden" character or return. If necessary delete the entire first line and retype the text of that line using your favorite plain text editor. Or should be able to copy the file from the latest distribution or from github.
includes/classes/ajax/zcDPU_Ajax.php
Also be sure that there is no closing ?> in the files. Having such a closing followed by a return could cause the same issue.
Further, I highly suspect the includes/classes/ajax/zcDPU_Ajax.php file as having from a while back the UTF8 BOM (Byte Order Mark) "character" that was accidentally added in when I was working on various filetypes some time ago. The file may look the same as the current version, but it is not and it will cause the problem described. I'll try to see if there is anything there in the current fileset, but if installation was done by comparison, then that character may have been missed. It is not a visible character like the text on this screen, but it would provide the opening content of the responseText where it shows: \r\n\ufeff
Once the responseText is "parsed" it turns that section into a carriage returned new line with the BOM character being the first character on the second line that is causing the issue.
Whatever method you use, could you please explain what was tried, what worked, and what didn't? I know someone else was having a somewhat similar problem, but it hadn't dawned on me as much about what was going on.
Re: Dynamic Price Updater - SOLVED
Quote:
Originally Posted by
mc12345678
Further, I highly suspect the includes/classes/ajax/zcDPU_Ajax.php file as having from a while back the UTF8 BOM (Byte Order Mark) "character" that was accidentally added in when I was working on various filetypes some time ago.
So problem finally solved!
I would never have even thought of looking at the encoding issues of a file, the first time i've come across such an issue!
Indeed, it was not a character that was the issue, but the entire includes/classes/ajax/zcDPU_Ajax.php file being encoded in UTF8-BOM.
I opened the file in notepad++, changed the encoding to standard UTF8 and saved, and worked instantly!
Thank you again for your patience.
Re: Dynamic Price Updater - taxation
OK, on to the next thing :D
sooo..... when a product is on sale, how do i get the "normalprice" to include the taxtation?
At the moment it gives:
Code:
Price: £649.17 £467.40
Save: 40% off
Re: Dynamic Price Updater - taxation
Quote:
Originally Posted by
Calljj
OK, on to the next thing :D
sooo..... when a product is on sale, how do i get the "normalprice" to include the taxtation?
At the moment it gives:
Code:
Price: £649.17 £467.40
Save: 40% off
forgot to say, product price "zero", product priced by attributes.
Re: Dynamic Price Updater - taxation
Sorry, been trying to knock down strict reporting notices and warnings with ZC 1.5.6a and other coding issues such as tidying up code.
Yes, there is a "proposal" in the github found at: https://github.com/mc12345678/Dynami...195351319d5460
I intend to include it in the next version release: https://github.com/mc12345678/Dynami...ter/tree/3.2.1 but have been working through a few issues. One of which is of interest is to conquer any flashing values as a result of typing text. Would like (if the replace value with an image is chosen) to be able to set a timer to not allow the flash to occur. Some of this is incorporated in this branch that is to also go into the next release: https://github.com/mc12345678/Dynami...-reduce-events
To see what each of those added/removed as compared to the current master branch, the first:
https://github.com/mc12345678/Dynami...master...3.2.1
The second:
https://github.com/mc12345678/Dynami...-reduce-events
They are not (yet) on the same branch so comparing them would be of limited value.
Re: Dynamic Price Updater - taxation
Quote:
Originally Posted by
mc12345678
many thanks, the link provided the solution i needed