Skip to content

Releases: Zen4All-nl/Zen-Cart-Dynamic-Price-Updater

Dynamic Price Updater

19 Apr 22:08
Compare
Choose a tag to compare
Dynamic Price Updater Pre-release
Pre-release
  • Added updates from MC12345678 fork
  • Fixed missing cart_quantity from posting to Ajax

Dynamic Price Updater

15 Apr 14:37
Compare
Choose a tag to compare
Dynamic Price Updater Pre-release
Pre-release
  • fixed sidebox

Dynamic Price Updater

15 Apr 09:18
Compare
Choose a tag to compare
Dynamic Price Updater Pre-release
Pre-release
  • moving the class code from includes/classes/dynamic_price_updater.php to includes/classes/ajax/zcDPU_Ajax.php
  • Removing the ancient code, using JSON or XML, and replaced it with the build in native Zen Cart Ajax functionality
  • Drop support for ZC versions <1.5.6
  • PHP version >= 5.6
  • Updated optional jquery version to 3.4.1

Dynamic Price Updater

25 Nov 17:40
ee58c70
Compare
Choose a tag to compare

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 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.

Dynamic Price Updater

03 Nov 21:07
Compare
Choose a tag to compare

Dynamic Price Updater v3.1
-=-=-=-=-=-=-=-=-=-=-=-=-=-

This is (IMHO) an improved version of DPU 2

  • Moving all the defines to language files, or the database
  • Making DPU multilingual
  • updating code to acommodate proper database calls, Zen Cart compliant.
  • Added a real sidebox, only the content is dynamically build
  • Added an admin configuration, to make changes to the configurable defines of DPU

Installation / Upgrade

NOTE: If you have an earlier version of Updater installed please remove the files first

  1. Rename the YOUR_ADMIN folder to the name of your secret foldername.

  2. Rename the YOUR_TEMPLATE folders to the name of your cutom template folder name.

  3. upload the files included in the "Installation files" folder (they are in the correct folder structure). For reference the file paths are:

    dpu_ajax.php
    YOUR_ADMIN/includes/auto_loaders/config.dpu.php
    YOUR_ADMIN/includes/init_includes/init_dpu_config.php
    YOUR_ADMIN/includes/languages/english/extra_definitions/dynamic_price_updater.php
    images/ajax-loader.gif
    includes/auto_loaders/config.dynamic_price_updater.php
    includes/classes/dynamic_price_updater.php
    includes/languages/english/extra_definitions/dynamic_price_updater.php
    includes/modules/pages/product_info/jscript_ajax_updater.php
    includes/modules/pages/product_music_info/jscript_ajax_updater.php
    includes/modules/sideboxes/YOUR_TEMPLATE/dynamic_price_updater_sidebox.php
    includes/YOUR_TEMPLATE/sideboxes/tpl_dynamic_price_updater_sidebox.php

  4. Log in to your webshop's admin panel, and the module will install automatically. There are no seperate sql files needed.

  5. Installation is now complete.

  6. By default DPU is disabled. Go to configuration=>Dynamic Price Updater set de status to true to enable DPU

NOTE: If you have an earlier version of Updater installed please remove the files first

Settings

The module is now set through the admin, more instructions to be added later

Support

As always support is located on the Zen Cart forums at:

http://www.zen-cart.com/forum/showthread.php?t=70577

Credits

This update (V3.0) : Erik Kerkhoven (Design75) http://zen4all.nl

Original author : Dan Parry (Chrome) http://chrpme.me.uk

Thanks to Jay (4jDesigns on the forum) for finding the 1% tax issue

Thanks to Thomas Achache to for giving me the inspiration for the mechanism

Thanks to web28 for the idea of preventing loading under certain circumstances

Thanks to Matt (lankeeyankee) for testing and correcting my inevitable mistakes

Copyright

Parts of copyright
2009 Dan Parry (Chrome)
2013 Erik Kerkhoven (Design75) Zen4All.nl

Dynamic Price Updater

03 Nov 21:05
Compare
Choose a tag to compare

Dynamic Price Updater v3.0
-=-=-=-=-=-=-=-=-=-=-=-=-=-

This is (IMHO) an improved version of DPU 2

  • Moving all the defines to language files, or the database
  • Making DPU multilingual
  • updating code to acommodate proper database calls, Zen Cart compliant.
  • Added a real sidebox, only the content is dynamically build
  • Added an admin configuration, to make changes to the configurable defines of DPU

Installation / Upgrade

NOTE: If you have an earlier version of Updater installed please remove the files first

  1. Rename the YOUR_ADMIN folder to the name of your secret foldername.

  2. Rename the YOUR_TEMPLATE folders to the name of your cutom template folder name.

  3. upload the files included in the "Installation files" folder (they are in the correct folder structure). For reference the file paths are:

    dpu_ajax.php
    YOUR_ADMIN/includes/auto_loaders/config.dpu.php
    YOUR_ADMIN/includes/init_includes/init_dpu_config.php
    YOUR_ADMIN/includes/languages/english/extra_definitions/dynamic_price_updater.php
    images/ajax-loader.gif
    includes/auto_loaders/config.dynamic_price_updater.php
    includes/classes/dynamic_price_updater.php
    includes/languages/english/extra_definitions/dynamic_price_updater.php
    includes/modules/pages/product_info/jscript_ajax_updater.php
    includes/modules/pages/product_music_info/jscript_ajax_updater.php
    includes/modules/sideboxes/YOUR_TEMPLATE/dynamic_price_updater_sidebox.php
    includes/YOUR_TEMPLATE/sideboxes/tpl_dynamic_price_updater_sidebox.php

  4. Log in to your webshop's admin panel, and the module will install automatically. There are no seperate sql files needed.

  5. Installation is now complete.

  6. By default DPU is disabled. Go to configuration=>Dynamic Price Updater set de status to true to enable DPU

NOTE: If you have an earlier version of Updater installed please remove the files first

Settings

The module is now set through the admin, more instructions to be added later

Support

As always support is located on the Zen Cart forums at:

http://www.zen-cart.com/forum/showthread.php?t=70577

Credits

This update (V3.0) : Erik Kerkhoven (Design75) http://zen4all.nl

Original author : Dan Parry (Chrome) http://chrpme.me.uk

Thanks to Jay (4jDesigns on the forum) for finding the 1% tax issue

Thanks to Thomas Achache to for giving me the inspiration for the mechanism

Thanks to web28 for the idea of preventing loading under certain circumstances

Thanks to Matt (lankeeyankee) for testing and correcting my inevitable mistakes

Copyright

Parts of copyright
2009 Dan Parry (Chrome)
2013 Erik Kerkhoven (Design75) Zen4All.nl