Jump to content

Error 500 when trying to see an order in the backoffice


Maximus Design

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...