1.001 | Download Patches for Red Alert 2 Yuri's Revenge Logo

Yuri's Revenge 1.001 Patch

Downloads

Prestashop Override: Module Class

/override/modules/mybankpayment/ Inside that folder, create a file named after the original module’s main class, but with override in the name? No – the file must be named exactly like the original class, but placed in override.

/** * Override the validateOrder method */ public function validateOrder($id_cart, $id_order_state, $amount_paid, $payment_method = 'Bank', $message = null, $extra_vars = array(), $currency_special = null, $dont_touch_amount = false, $secure_key = false, Shop $shop = null) prestashop override module class

While modifying a module's core files directly is a disaster waiting to happen (updates will erase your changes), provide a clean, upgrade-safe solution. /override/modules/mybankpayment/ Inside that folder

// Keep original module properties parent::__construct(); $payment_method = 'Bank'