Jump to content
покупайте без комиссии
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Ошибка на последнем шаге оформления заказа

Recommended Posts



С чем может быть связана следующая ошибка:


jquery.min.js:4 GET http://<site>/index.php?route=extension/payment/cod/confirm&_=1538898294951 500 (Internal Server Error)
  send @ jquery.min.js:4
  ajax @ jquery.min.js:4
  (anonymous) @ VM118:3
  dispatch @ jquery.min.js:3
  r.handle @ jquery.min.js:3


Никак не пойму.

Вот код самого метода confirm :


class ControllerExtensionPaymentCod extends Controller {
    public function index() {
        $data['button_confirm'] = $this->language->get('button_confirm');

        $data['text_loading'] = $this->language->get('text_loading');

        $data['continue'] = $this->url->link('checkout/success');

            $this->session->data['text_description_payment']['text_instruction'] = '';
            $this->session->data['text_description_payment']['text_description'] = 'Заказ Вам доставит курьер. Оплату Вы производите на месте.';
            $this->session->data['text_description_payment']['text_payment'] = '';
        return $this->load->view('extension/payment/cod', $data);

    public function confirm() {                        
        if ($this->session->data['payment_method']['code'] == 'cod') {
            $this->model_checkout_order->addOrderHistory($this->session->data['order_id'], $this->config->get('cod_order_status_id'));



В чем может быть ошибка






Link to post
Share on other sites

Код шаблона:



  <div id="cart-bottom" style="position: relative;">
     <div class="cart-page--main-col ">
    <section class="whiteBlock" id="order-form-section-confirm">
        <div class="orderProceed">

           <input type="button" value="отправить" id="button-confirm" data-loading-text="<?php echo $text_loading; ?>" /><br /><br />
             Подтверждая заказ, Вы принимаете условия
             <a href="javascript:void(0);" target="_blank">Пользовательского соглашения</a>
             и <br /> даете согласие на хранение и обработку персональных данных

<script type="text/javascript"><!--
$('#button-confirm').on('click', function() {
        type: 'get',
        url: 'index.php?route=extension/payment/bank_transfer/confirm',
        cache: false,
        beforeSend: function() {
        complete: function() {
        error: function(e) {
        success: function(data) {
            location = '<?php echo $continue; ?>';




Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.