Skip to content

ZC Release of v3.2.0 of Dynamic Price Updater

Latest
Compare
Choose a tag to compare
@mc12345678 mc12345678 released this 22 Nov 16:06

3.2.0, What changed:

  • Identified this version as 3.2.0 because 1) this update provided significant new functionality and modified/provided new database features and 2) 3.1.0 had previously been identified in the github path/history and did not want to cause undo confusion.
  • Commented out code that performed no operation/action.
  • Added an update to the customer's latest page when using an ajax style call to improve display of information on the who's online admin page.
  • Added a method to update price text to represent when none and less than all attributes have been selected.
  • Added DPU_ATTRIBUTES_MULTI_PRICE_TEXT to be able to control which of the pretext(s) to allow to show.
  • Added a variable to be able to update/display the text before the first price when price includes a special and/or a sale.
  • Added ability to update what is known as the normalprice which is the price/value that is crossed out when there is a sale or other special.
  • Added stock quantity update capability which incorporates the possibility of operating with ZC 1.5.x and control how the information is replaces other content. Guidance for display modifications provided in readme.txt.
  • Corrected use of float casting to use code published in ZC 1.5.6 to support strict server mode.
  • Reworked code to better account and control sub-functional area execution.
  • Removed single quotes from SQL queries that included casted integers to minimize further processing.
  • Expanded attribute text switching to more than product priced by attribute such that should apply to product that have attributes that affect the base price.
  • Corrected price display and determination to include pricing associated with text (word and/or letter pricing, etc...)
  • Updated javascript side to use exactly equal to instead of loosely comparing two values (in a majority of examples.
  • Switched javascript calls to use dot notation where able.
  • Added a fallback attempt for collecting/setting JSON response if responseJSON is empty but a non-fault responseText is provided.
  • Moved javascript variable declaration out of most function calls.
  • Corrected an issue reported by mvstudio of where the expected text to be in front of the priced item would not be displayed if the imgLoc variable in the includes/modules/pages/PRODUCT_TYPE/jscript_dynamic_price_updater.php file was not set to "replace". Essentially the result was that pspClass would be blank when sending to ajax.
  • Added change detection and capture of the html element textarea and changed the text detection to an input event instead of a keyup event. This allows capture/detection of pasted content without firing off multiple events for the same modification. Additional testing may reveal the need to incorporate other event listeners. The process would be similar as shown for the number case.
  • Updated ajax.php file to prevent known spiders from performing ajax requests. This is from the ZC 1.5.6 version of the file
  • Moved the status notification from an alert to a console log when zcJS is not used and a 200 status result is not received.