If a product has populated the quantity discounts associated with an attribute, but has not also
populated the price of the attribute (first value to be used/considered when using such quantity discounts), then the "look ahead" for the price of the product based on future selections does not get populated. There are multiple ways to address the issue. One is to force the attribute to have a price even if only the discounts have a price, another is to use the discount quantity when sorting on those values.
As this software is intended to handle the outcome of what is in the database and not necessarily to control what can/can not be added to the database, a software resolution path is being considered. In ZC 1.5.6b, a notifier (ZEN_GET_PRODUCTS_BASE_PRICE) has been added in includes/functions/functions_prices.php allowing the modification of the base price to be returned from the function zen_get_products_base_price. As this is the function used to basically determine the lowest price associated with the product before it is selected, this function seems appropriate to which to attach and mimic in display/operation of the software from this module.
If a product has populated the quantity discounts associated with an attribute, but has not also populated the price of the attribute (first value to be used/considered when using such quantity discounts), then the "look ahead" for the price of the product based on future selections does not get populated. There are multiple ways to address the issue. One is to force the attribute to have a price even if only the discounts have a price, another is to use the discount quantity when sorting on those values.
As this software is intended to handle the outcome of what is in the database and not necessarily to control what can/can not be added to the database, a software resolution path is being considered. In ZC 1.5.6b, a notifier (
ZEN_GET_PRODUCTS_BASE_PRICE
) has been added inincludes/functions/functions_prices.php
allowing the modification of the base price to be returned from the functionzen_get_products_base_price
. As this is the function used to basically determine the lowest price associated with the product before it is selected, this function seems appropriate to which to attach and mimic in display/operation of the software from this module.