Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Banktransfer needs a default when the order status has not been configured #62

Closed
firstred opened this issue Jun 29, 2018 · 0 comments
Closed

Comments

@firstred
Copy link
Contributor

Banktransfer payments break when the order status for "open payments" has not been configured:

Configuration:
banktransferdefault

Error:

403.         }
404. 
405.         $orderStatus = new OrderState((int) $idOrderState, (int) $this->context->language->id);
406.         if (!Validate::isLoadedObject($orderStatus)) {
407.             Logger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int) $idCart, true);
408.             throw new PrestaShopException('Can\'t load Order status');
409.         }
410. 
411.         if (!$this->active) {
412.             Logger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int) $idCart, true);
413.             die(Tools::displayError());

This can be solved by defaulting to PS_OS_BANKWIRE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant