diff --git a/config/defines.inc.php b/config/defines.inc.php index 4a86b1930..3e319225f 100644 --- a/config/defines.inc.php +++ b/config/defines.inc.php @@ -26,7 +26,7 @@ /* Debug only */ if (!defined('_PS_MODE_DEV_')) { - define('_PS_MODE_DEV_', false); + define('_PS_MODE_DEV_', true); } /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false); diff --git a/controllers/front/OrderOpcController.php b/controllers/front/OrderOpcController.php index 61b602ec3..f551646e1 100644 --- a/controllers/front/OrderOpcController.php +++ b/controllers/front/OrderOpcController.php @@ -126,7 +126,7 @@ class OrderOpcControllerCore extends ParentOrderController } elseif (Tools::strlen($phone) > $rules['size']['phone']) { $this->errors[] = sprintf(Tools::displayError('Mobile phone number is too long. (%s chars max).'), $rules['size']['phone']); } else { - $this->context->customer = $phone; + $this->context->customer->phone = $phone; } $_POST['lastname'] = $_POST['customer_lastname']; @@ -692,7 +692,7 @@ class OrderOpcControllerCore extends ParentOrderController 'id_country' => (int)$address_delivery->id_country, 'id_state' => (int)$address_delivery->id_state, 'id_gender' => (int)$customer->id_gender, - 'phone' => (int)$customer->phone, + 'phone' => $customer->phone, 'sl_year' => $birthday[0], 'sl_month' => $birthday[1], 'sl_day' => $birthday[2],