The foundational functions of Venddor IO are neatly housed within the app/functions directory. These functions are the backbone of the platform, offering its integral capabilities. To maintain organization and facilitate easy navigation, they're categorized and filed based on their specific function or application area.
Functions in Venddor IO are organized by their purpose and domain. Examples include:
fn.catalog.php - Functions related to product catalogfn.cart.php - Shopping cart functionalityfn.common.php - General utility functionsfn.users.php - User management functionsfn.database.php - Database interaction functionsThis organization makes it easier to locate and understand the functional components of the platform.
To enhance or modify the intrinsic behavior of these core functions, Venddor IO utilizes PHP hooks. This allows for greater customization and adaptability, ensuring that modules can seamlessly integrate and augment the platform's default operations.
For example, to modify how products are displayed in search results, you can hook into the relevant core function rather than modifying the core code directly. This approach maintains compatibility with future updates.
When working with Venddor IO's core functions, follow these best practices: