Maximus Design Posted June 22, 2022 Share Posted June 22, 2022 One of our employees uninstalled the module that changed the order ID numbers from e.g. CDXPZBCDO to e.g. 4962 and now I cannot install this module and when i try to see some order in backoffice i got error 500, screen from debugging Link to comment Share on other sites More sharing options...
Maximus Design Posted June 22, 2022 Author Share Posted June 22, 2022 OrderPayment.php <?php class OrderPayment extends OrderPaymentCore { 'table' => 'order_payment', 'primary' => 'id_order_payment', 'fields' => array( 'order_reference' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 100), 'id_currency' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'amount' => array('type' => self::TYPE_FLOAT, 'validate' => 'isNegativePrice', 'required' => true), 'payment_method' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'conversion_rate' => array('type' => self::TYPE_INT, 'validate' => 'isFloat'), 'transaction_id' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 254), 'card_number' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 254), 'card_brand' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 254), 'card_expiration' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 254), 'card_holder' => array('type' => self::TYPE_STRING, 'validate' => 'isAnything', 'size' => 254), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'), ), ); } In the attachment the module that was used modrefchange.zip Link to comment Share on other sites More sharing options...
Maximus Design Posted June 22, 2022 Author Share Posted June 22, 2022 Okay, I solved the problem with the order preview, I replaced the /override/classes/order/OrderPayment.php file with the one from the module modrefchange\override\classes\order\OrderPayment.php module. But I have a problem with adding to the cart, when I add a product, the store returns the information "Your cart is empty" Link to comment Share on other sites More sharing options...
Maximus Design Posted June 22, 2022 Author Share Posted June 22, 2022 I deleted the cookie on my browser and everything is ok now XD Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now