Jump to content
Sign in to follow this  
Ilya2223

Платно помочь исправить мелкий конфликт Retailcrm и модуля Simple Checkout

Recommended Posts

Posted (edited)

Использую ocStore 3.0.2.0 и модуль simple checkout. Установил сегодня модуль Retailcrm, и теперь на странице оформления заказа выдает такое:

 

Notice: Undefined index: country_id in /var/www/site.ru/catalog/controller/extension/module/retailcrm.php on line 146
Notice: Undefined index: zone_id in /var/www/site.ru/catalog/controller/extension/module/retailcrm.php on line 147
Notice: Undefined index: address_1 in /var/www/site.ru/catalog/controller/extension/module/retailcrm.php on line 150
Notice: Undefined index: address_2 in /var/www/site.ru/catalog/controller/extension/module/retailcrm.php on line 151
Notice: Undefined index: city in /var/www/site.ru/catalog/controller/extension/module/retailcrm.php on line 152
Notice: Undefined index: postcode in /var/www/site.ru/catalog/controller/extension/module/retailcrm.php on line 153
Notice: Undefined index: iso_code_2 in /var/www/site.ru/catalog/controller/extension/module/retailcrm.php on line 154
Notice: Undefined index: name in /var/www/site.ru/catalog/controller/extension/module/retailcrm.php on line 155

Данное сообщение говорит о том, что некорректно заполняются параметры адреса

 

С меня тому кто поможет решить эту проблему плюсик в профиль и 500р на счет яндекс денег.

 

Dот код из файла на который ругается:

 

  /**
     * Create customer on event
     *
     * @param int $customerId customer identificator
     *
     * @return void
     */
    public function customer_create($parameter1, $parameter2 = null, $parameter3 = null) {
        $this->load->model('account/customer');
        $this->load->model('localisation/country');
        $this->load->model('localisation/zone');

        $customerId = $parameter3;
        $customer = $this->model_account_customer->getCustomer($customerId);

        if ($this->request->post) {
            $country = $this->model_localisation_country->getCountry($this->request->post['country_id']);
            $zone = $this->model_localisation_zone->getZone($this->request->post['zone_id']);

            $customer['address'] = array(
                'address_1' => $this->request->post['address_1'],
                'address_2' => $this->request->post['address_2'],
                'city' => $this->request->post['city'],
                'postcode' => $this->request->post['postcode'],
                'iso_code_2' => $country['iso_code_2'],
                'zone' => $zone['name']
            );
        }

        if (file_exists(DIR_APPLICATION . 'model/extension/retailcrm/custom/customer.php')) {
            $this->load->model('extension/retailcrm/custom/customer');
            $this->model_extension_retailcrm_custom_customer->sendToCrm($customer, $this->retailcrmApiClient);
        } else {
            $this->load->model('extension/retailcrm/customer');
            $this->model_extension_retailcrm_customer->sendToCrm($customer, $this->retailcrmApiClient);
        }
    }

 

Edited by Ilya2223

Share this post


Link to post
Share on other sites

это прикольно, когда автор поста "помогите мне за деньги", оформляет задачу как: "мелкий конфликт" ))) кому как...))

  • +1 1

Share this post


Link to post
Share on other sites
4 часа назад, Ilya2223 сказал:

Установил сегодня модуль Retailcrm, и теперь на странице оформления заказа выдает такое:

так вы соответствие полей установите. у меня все ок было при тесте.

 

4 часа назад, anboza сказал:

кому как...))

там по факту и проблемы нет. просто настроить надо.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.