Products' Options' Stock Manager: Price/Weight Extension (POSM-PW)
Version 2.3.1
Copyright © 2015-2024, Vinos de Frutas Tropicales, contact me here. Current Support Thread on GitHub: https://github.com/lat9/options_stock_support
Overview
This plugin extends the functionality of the Products' Options' Stock Manager, enabling you to specify the price, weight and, starting with POSM-PW v1.1.0, quantity-discount values for each product option-combination. When you enter those quantity-discount values, be sure to set the POSM-PW price field to 0 for the discounted price to be correctly calculated.
Notes:
- Requires the prior installation of v4.4.0 (or later) of the Products' Options' Stock Manager plugin.
- Notes:
- This plugin has not been validated to operate with the Edit Orders plugin!
- Zen Cart versions 1.5.7a, 1.5.8, 1.5.8a and 2.0.0 are supported.
- A minimum POSM version of v4.4.0 is required.
- Validated on PHP versions 7.3 through 8.3.
- Starting with v2.2.0:
- Support is added to enable the "Attributes Quantity Discounts" table to be displayed in the ZCA Bootstrap Template, v3.4.1 and later.
Installing, Upgrading or Uninstalling
This section identifies the processes you'll use to initially install POSM-PW or uninstall POSM-PW entirely. There's also a section that identifies the database changes made by the plugin's installation.
Installation
The details of this section are provided when you purchase the plugin.
Uninstalling
The details of this section are provided when you purchase the plugin.
Database Changes
The details of this section are provided when you purchase the plugin.
Change History
This section contains the plugin's version-history and an association of files changed in each version.
Version History
- v2.3.1, 2024-06-05:
- INTROP: Interoperation with Products' Options' Stock Manager v5.0.0 and later.
- v2.3.0, 2024-02-19:
- BUGFIX: Correcting PHP 8.2+ fatal error on initial installation.
- BUGFIX: Correcting MySQL error on admin update if price/price_onetime/weights are an empty string.
- CHANGE: Update product's price once the final option-value in a variant is chosen.
- v2.2.0, 2022-12-01:
- CHANGE: Requires a minimum Products' Options' Stock version of 4.4.0.
- CHANGE: Supports PHP 8.2's deprecation of "dynamic properties" for classes.
- BUGFIX: Correct PHP warning issued during AJAX update when a product has one-time charges.
- CHANGE: Note, in the product-price configuration setting, the required value for the Bootstrap template.
- BUGFIX: Ensure that base attribute price/weight settings are reset in the order for ordered POSM-PW managed products.
- CHANGE: Provide integration with the "ZCA Bootstrap Template", v3.4.1 and later, for displaying any attributes' quantity discounts you've defined.
- v2.1.0, 2022-02-28:
- BUGFIX: Correct PHP notice when a product with dependent attributes is not price/weight managed.
- BUGFIX: Correct invalid message when POSM-PW is enabled, but not yet used.
- BUGFIX: Correct onetime price variable name and check for presence of 'discountable' for POSM 'View All' processing.
- BUGFIX: Correct PHP notices and warnings for malformed quantity discounts.
- CHANGE: 'Hide' instead of disable POSM-PW inputs if a product isn't price/weight managed.
- CHANGE: Drop support for Zen Cart versions prior to 1.5.7a.
- v2.0.1, 2019-04-19:
- BUGFIX: Properly record main options-stock processing.
- v2.0.0, 2019-04-06:
- BUGFIX: Correct PHP warning on admin product-update
- CHANGE: Restructure core-/template-overwrites, based on Zen Cart version.
- CHANGE: Use zc155f as the change-basis for Zen Cart 1.5.5-series core-/template-overwrites.
- BUGFIX: Missing 'Starting At' lead-in for product's price.
- BUGFIX: Sanitize form-input values; add check for missing inputs to to
post_max_size
restrictions.
- v1.1.0, 2017-08-14:
- BUGFIX: Correct processing when the payment method is "PayPal Standard".
- BUGFIX: Setting a product as POSM-PW managed in the View All tool had no effect.
- CHANGE: Add support for an option-combination-specific quantity discount.
- CHANGE: Pull in additional changes to the attributes' module introduced in Zen Cart 1.5.5.
- CHANGE: Update all core/template overrides to use Zen Cart 1.5.5e as the change-basis.
- v1.0.2, 2016-08-28:
- CHANGE: Added AJAX handling to update a multiple-option product's "price block" upon each option-group selection.
- CHANGE: Add a configuration setting to allow stores to control the width of the "Price" input field.
- CHANGE: v2.1.8 or later of the Products' Options' Stock Manager is now required for this extension's installation or upgrade.
- BUGFIX: Non-price/weight-managed products' price appended with a zero-value price.
- BUGFIX: Set onetime-charge flag for the product's page if the product's managed-options include a onetime charge.
- BUGFIX: Correct products' weights' conditional display.
- CHANGE: Use Zen Cart v1.5.5a as the core/template-file change basis.
- v1.0.1, 2015-09-17:
- BUGFIX: Price/weight management was overriding overall dependent attributes' processing.
- v1.0.0, 2015-06-02: Initial release.
File/Database History by Version
Legend for the File Changes: Changed — Added — Removed — Core File — Template-Override
Version |
Files Changed/Added |
Database Changes |
v2.3.1 |
- /YOUR_ADMIN/includes/classes/observers/class.posm_price_weight_admin_observer.php
- /YOUR_ADMIN/includes/init_includes/init_posm_price_weight_admin.php
|
— |
v2.3.0 |
- /includes/templates/YOUR_TEMPLATE/jscript/jscript_posm_price_weight.php
- /YOUR_ADMIN/includes/classes/observers/class.posm_price_weight_admin_observer.php
- /YOUR_ADMIN/includes/init_includes/init_posm_price_weight_admin.php
- /YOUR_ADMIN/includes/languages/english/posm_price_weight.php
|
— |
v2.2.0 |
- /includes/classes/observers/class.posm_price_weight_observer.php
- /includes/functions/posm_price_weight_functions.php
- /includes/templates/bootstrap/modalboxes/popup_attributes_qty_prices_posmpw.php
- /includes/templates/YOUR_TEMPLATE/popup_attributes_qty_prices/tpl_main_page_posm_pw.php
- /YOUR_ADMIN/includes/classes/observers/class.posm_price_weight_admin_observer.php
- /YOUR_ADMIN/includes/init_includes/init_posm_price_weight_admin.php
- /YOUR_ADMIN/includes/languages/english/posm_price_weight.php
- /YOUR_ADMIN/includes/javascript/products_options_stock_posmpw.js
- /YOUR_ADMIN/includes/javascript/products_options_stock_view_all_posmpw.js
|
- Updated the description of the Price/Weight: Product's Base Price CSS Selector configuration setting to identify the value needed for the Bootstrap template.
|
v2.1.0 |
- /includes/classes/observers/class.posm_price_weight_observer.php
- /includes/templates/YOUR_TEMPLATE/css/popup_attributes_qty_prices.css
- /includes/templates/YOUR_TEMPLATE/jscript/jscript_posm_price_weight.php
- /includes/templates/YOUR_TEMPLATE/popup_attributes_qty_prices/tpl_main_page.php
- /includes/templates/YOUR_TEMPLATE/popup_attributes_qty_prices/tpl_main_page_posm_pw.php
- /YOUR_ADMIN/includes/classes/observers/class.posm_price_weight_admin_observer.php
- /YOUR_ADMIN/includes/init_includes/init_posm_price_weight_admin.php
- /YOUR_ADMIN/includes/languages/english/extra_definitions/posm_price_weight_extra_definitions.php
- /YOUR_ADMIN/includes/javascript/product_posmpw.php
- /zc155/*.*
- /zc156/*.*
|
— |
v2.0.1 |
- /includes/classes/observers/class.posm_price_weight_observer.php
- /YOUR_ADMIN/includes/init_includes/init_posm_price_weight_admin.php
|
— |
v2.0.0 |
- /includes/classes/observers/class.posm_price_weight_observer.php
- /includes/functions/posm_price_weight_functions.php
- /YOUR_ADMIN/includes/classes/observers/class.posm_price_weight_admin_observer.php
- /YOUR_ADMIN/includes/init_includes/init_posm_price_weight_admin.php
- /zc155/includes/classes/shopping_cart.php (Moved)
- /zc155/includes/functions/functions_prices.php (Moved, Updated)
- /zc155/includes/modules/YOUR_TEMPLATE/attributes.php (Moved, Updated, this is the zc155f version of the file)
- /zc155/YOUR_ADMIN/includes/classes/object_info.php (Moved)
- /zc155/YOUR_ADMIN/includes/functions/functions_prices.php (Moved)
- /zc155/YOUR_ADMIN/includes/modules/product/collect_info.php (Moved, Updated)
- /zc156/includes/classes/shopping_cart.php (Added, this is the zc156b version of the file)
- /zc156/includes/functions/functions_lookups.php (Added, this is the zc156b version of the file)
- /zc156/includes/functions/functions_prices.php (Added, this is the zc156b version of the file)
- /zc156/YOUR_ADMIN/includes/functions/functions_prices.php (Added, this is the zc156b version of the file)
- /zc156/YOUR_ADMIN/includes/modules/product/collect_info.php (Added)
|
— |
v1.1.0 |
- /includes/auto_loaders/paypal_ipn.products_options_stock_pw.php
- /includes/classes/shopping_cart.php
- /includes/classes/observers/class.posm_price_weight_observer.php
- /includes/functions/posm_price_weight_functions.php
- /includes/modules/YOUR_TEMPLATE/attributes.php (This is the Zen Cart 1.5.5e version of the file)
- /includes/templates/YOUR_TEMPLATE/css/popup_attributes_qty_prices.css
- /includes/templates/YOUR_TEMPLATE/popup_attributes_qty_prices/tpl_main_page.php (Added)
- /includes/templates/YOUR_TEMPLATE/popup_attributes_qty_prices/tpl_main_page_posm_pw.php
- /YOUR_ADMIN/includes/classes/observers/class.posm_price_weight_admin_observer.php
- /YOUR_ADMIN/includes/init_includes/init_posm_price_weight_admin.php
- /YOUR_ADMIN/includes/languages/english/posm_price_weight.php
|
- Added the
attributes_qty_prices field to the products_options_stock database table.
|
v1.0.2 |
- /includes/classes/shopping_cart.php
- /includes/classes/observers/class.posm_price_weight_observer.php
- /includes/functions/functions_prices.php
- /includes/languages/english/extra_definitions/posm_price_weight_extra_definitions.php (Added)
- /includes/templates/YOUR_TEMPLATE/jscript/jscript_posm_price_weight.php (Added)
- /YOUR_ADMIN/includes/classes/object_info.php (Added)
- /YOUR_ADMIN/includes/functions/functions_prices.php
- /YOUR_ADMIN/includes/init_includes/init_posm_price_weight_admin.php
- /YOUR_ADMIN/includes/modules/product/collect_info.php
|
- Added Configuration->Options' Stock Manager->Price/Weight: Admin Price Field Width
|
v1.0.1 |
- /includes/classes/observers/class.posm_price_weight_observer.php
|
|