Broad regression due to missing Product::SELLING_PREFERENCE_* constants across multiple controllers and classes
Author: wdammakCreated Sep 29, 2026Updated Sep 30, 2026
Description
A major regression was introduced in recent commits following the removal of SELLING_PREFERENCE_* constants (such as SELLING_PREFERENCE_HOTEL_STANDALONE, etc.) from the Product class.
While these constants were deleted from Product.php, their references were not cleaned up globally. They are still actively called within numerous controllers&classes across the project, triggering widespread Undefined constant fatal errors that completely break both the back-office and core functionalities.
Stack Trace Example
Product::SELLING_PREFERENCE_HOTEL_STANDALONE in \controllers\admin\AdminNormalProductsController.php
Source: Qloapps/QloApps