Recommended Products
- No recommended searches
Suggestions
- No Suggestions
Site Pages
- No Related Site Pages
Free Value shipping on orders of $25 or more. No code needed. View details.
Delete /var/cache/dev/class_index.php (and /var/cache/prod/ in production).
<?php // override/modules/customshipping/classes/CustomShippingCalculator.php class CustomShippingCalculatorOverride extends CustomShippingCalculator
/override/modules/customshipping/classes/CustomShippingCalculator.php Your override must extend the original class and use the same namespace. prestashop module override
Use overrides sparingly, document them religiously, and always ask: “Could I achieve this with a hook or a custom module instead?”
OriginalClassNameOverride (e.g., CartControllerOverride , PaymentModuleOverride ) Delete /var/cache/dev/class_index
// Original logic would run if we called parent $originalCost = parent::calculateCost($products);
PrestaShop does not automatically scan new overrides. You must clear the class index. document them religiously
This is where come into play. What Is a Module Override? An override is a safe, core-respecting way to replace or extend the logic of an existing module without modifying its original source files.