订单退货中的Prestashop错误

时间:2013-03-11 18:43:56

标签: prestashop object-model

我在Back Office中遇到错误>订单>商品在尝试将退货状态从“等待确认”更改为“等待包裹”时返回。

我附上了截图。任何帮助将非常感激。 enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

不能说明为什么它显示错误的确切问题。但是,让我给你一个快速修复,希望它能解决它。 打开文件 classes / order / OrderReturn.php ,找出以下代码

 public static $definition = array(
    'table' => 'order_return',
    'primary' => 'id_order_return',
    'fields' => array(
        'id_customer' =>    array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
        'id_order' =>       array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
        'question' =>       array('type' => self::TYPE_HTML, 'validate' => 'isMessage'),
        'state' =>          array('type' => self::TYPE_STRING),
        'date_add' =>       array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
        'date_upd' =>       array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
    ),
);

在那里你可以看到以下行

 'question' =>      array('type' => self::TYPE_HTML, 'validate' => 'isMessage'),

将其更改为

  'question' =>         array('type' => self::TYPE_HTML, 'validate' => 'isString'),

然后检查页面,希望你没有错误。

如果您还需要更多帮助,请告诉我。

谢谢