Results 1 to 10 of 1684

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Dynamic Price Updater

    Quote Originally Posted by Calljj View Post
    so changing the line not made any difference, the error is thrown back as a result of the request, whereas that line is processing a successfull request?

    jquery gives 3.2.1

    thanks for continued help on this.
    Could you try:
    in includes/classes/dynamic_price_updater.php
    at/around line 746
    just below:
    Code:
          // output the header for JSON
          header('Content-Type: application/json');
    adding:
    Code:
          header('X-Content-Type-Options: nosniff');
    so that area of the code would look like:
    Code:
          // output the header for JSON
          header('Content-Type: application/json');
          header('X-Content-Type-Options: nosniff');
    By the way is this happening on one browser only or any?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Mar 2007
    Posts
    251
    Plugin Contributions
    6

    Default Re: Dynamic Price Updater

    Quote Originally Posted by mc12345678 View Post
    Could you try:
    so that area of the code would look like:
    Code:
          // output the header for JSON
          header('Content-Type: application/json');
          header('X-Content-Type-Options: nosniff');
    By the way is this happening on one browser only or any?
    Changed code,no difference.
    happening on all browsers.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Dynamic Price Updater

    Quote Originally Posted by Calljj View Post
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Mar 2007
    Posts
    251
    Plugin Contributions
    6

    Default Re: Dynamic Price Updater - SOLVED

    Quote Originally Posted by mc12345678 View Post
    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.

  5. #5
    Join Date
    Mar 2007
    Posts
    251
    Plugin Contributions
    6

    Default Re: Dynamic Price Updater - taxation

    OK, on to the next thing

    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

  6. #6
    Join Date
    Mar 2007
    Posts
    251
    Plugin Contributions
    6

    Default Re: Dynamic Price Updater - taxation

    Quote Originally Posted by Calljj View Post
    OK, on to the next thing

    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.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default 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.
    Last edited by mc12345678; 20 Jan 2019 at 03:14 PM. Reason: Microsoft Edge didn't copy/paste well
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v151 Help with dynamic price updater
    By anderson6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 23 Jul 2014, 08:52 AM
  2. v139h Dynamic Price Updater 3.0 Help!
    By Newbie 2011 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Mar 2014, 06:46 AM
  3. Dynamic Price Updater Error
    By Inxie in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 26 Oct 2012, 06:19 PM
  4. Alternative to Dynamic Price Updater?
    By thebigkick in forum General Questions
    Replies: 0
    Last Post: 9 Jul 2012, 11:41 PM
  5. Dynamic Price Updater with href
    By maxell6230 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Mar 2012, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg