Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

mescal1ne

Новачок
  
  • Публікації

    37
  • З нами

  • Відвідування

Повідомлення, опубліковані користувачем mescal1ne

  1. Прошу Подсказать , где можно на форуме Выложить обработку для обмена с 1с. Может кому-то интересно будет и доделает под большие обьемы.

    Добавьте как бесплатный модуль, автоматом создается тема поддержки, там же и пожелания с обсуждением можно вести

  2. Да не в этом дело. Автор же написал "закомментирован неработающий блок выгрузки характеристик" - не выгружаются они и количество товара берется из количества одной характеристики, не суммируются характеристики (недоделан модуль).

    Может найдется грамотный товарищ и допилит выгрузку характеристик?

    Спасибо, так наверно более правильнее и понятнее сформулировано :)

    https://github.com/e...cart-exchange1c

    тут обновляется проект, но я не пробовал.

    Та же самая история
  3. Попробуйте : Администрирование – Настройка параметров учета – Нормативно-справочная информация , включить флажок - Использовать характеристики номенклатуры.

    У меня как то по другому все :)

    Изображение

    Поставил тут

    Изображение

    тем не менее, в 1С учет у меня ведется, продается все как надо, при продаже я выбираю характеристику товара, а вот при выгрузке на сайт пишет у некоторых товаров кол-во 0, хотя их в общей сложности 10 например

  4. Характеристики Выгружаються?

    я же написал что остался вопрос характеристик, я добился только выгрузки: категорий, товара, картинок, кол-ва и цены, больше них*я не могу понять, банально не могу указать Н1, Seo url.... :-D
  5. Подскажите что не так, выгрузка происходит без ошибок, товар и категории появляются, но кол-во товара и цена не устанавливается oStore 1,5,3,1 УТ 11

    Нашел решение:

    1.Включить использование обмена с сайтами: перейти Администрирование – Настройка параметров учета – Обмен данными, включить флажок Использовать обмен с сайтами.

    2.Включить использование дополнительных реквизитов и сведений: перейти Администрирование – Настройка параметров учета – Общие настройки, включить флажок Использовать дополнительные реквизиты и сведения.

    3.Включить использование заказов клиентов: перейти Администрирование – Настройка параметров учета – Оптовые продажи, включить флажок Использовать заказы клиентов.

    4.Создать типовое соглашение для выгрузки цен: перейти Маркетинг — Типовые соглашения с клиентами. Создать новое соглашение или изменить существующее. При этом соглашение должно быть действующим, с пустым сегментом партнеров, доступно внешним пользователям. Установить Вид цен, График работы, поставить галочку: Доступно внешним пользователям

    5. Данное соглашение установить в Условиях отбора в выгрузке товаров.

    Остался вопрос характеристик, не могу вывести, у меня например есть ксеноновая лампа, цветовая температура на 4300К, 5000К, 6000К.... как вывести наличие каждой так сказать?

  6. вот этот файл покажите

    /Users/mLn_one/Sites/shop/catalog/controller/account/order.php

    
    <?php
    class ControllerAccountOrder extends Controller {
    private $error = array();
    
    public function index() {
    	 if (!$this->customer->isLogged()) {
    	   $this->session->data['redirect'] = $this->url->link('account/order', '', 'SSL');
    
      $this->redirect($this->url->link('account/login', '', 'SSL'));
    	 }
    
    $this->language->load('account/order');
    
    $this->load->model('account/order');
      
    if (isset($this->request->get['order_id'])) {
    $order_info = $this->model_account_order->getOrder($this->request->get['order_id']);
    
    if ($order_info) {
    $order_products = $this->model_account_order->getOrderProducts($this->request->get['order_id']);
    
    foreach ($order_products as $order_product) {
    $option_data = array();
    
    $order_options = $this->model_account_order->getOrderOptions($this->request->get['order_id'], $order_product['order_product_id']);
    
    foreach ($order_options as $order_option) {
    if ($order_option['type'] == 'select' || $order_option['type'] == 'radio') {
    $option_data[$order_option['product_option_id']] = $order_option['product_option_value_id'];
    } elseif ($order_option['type'] == 'checkbox') {
    $option_data[$order_option['product_option_id']][] = $order_option['product_option_value_id'];
    } elseif ($order_option['type'] == 'input' || $order_option['type'] == 'textarea' || $order_option['type'] == 'date' || $order_option['type'] == 'datetime' || $order_option['type'] == 'time') {
    $option_data[$order_option['product_option_id']] = $order_option['value'];
    } elseif ($order_option['type'] == 'file') {
    $option_data[$order_option['product_option_id']] = $this->encryption->encrypt($order_option['value']);
    }
    }
    
    $this->session->data['success'] = sprintf($this->language->get('text_success'), $this->request->get['order_id']);
    
    $this->cart->add($order_product['product_id'], $order_product['quantity'], $option_data);
    }
    
    $this->redirect($this->url->link('checkout/cart'));
    }
    }
    
    	 $this->document->setTitle($this->language->get('heading_title'));
    
    	   $this->data['breadcrumbs'] = array();
    
    	   $this->data['breadcrumbs'][] = array(
    		 'text'	  => $this->language->get('text_home'),
    'href'	  => $this->url->link('common/home'),		
    		 'separator' => false
    	   );
    
    	   $this->data['breadcrumbs'][] = array(
    		 'text'	  => $this->language->get('text_account'),
    'href'	  => $this->url->link('account/account', '', 'SSL'),		
    		 'separator' => $this->language->get('text_separator')
    	   );
    
    $url = '';
    
    if (isset($this->request->get['page'])) {
    $url .= '&page=' . $this->request->get['page'];
    }
    
    	   $this->data['breadcrumbs'][] = array(
    		 'text'	  => $this->language->get('heading_title'),
    'href'	  => $this->url->link('account/order', $url, 'SSL'),		
    		 'separator' => $this->language->get('text_separator')
    	   );
    
    $this->data['heading_title'] = $this->language->get('heading_title');
    
    $this->data['text_order_id'] = $this->language->get('text_order_id');
    $this->data['text_status'] = $this->language->get('text_status');
    $this->data['text_date_added'] = $this->language->get('text_date_added');
    $this->data['text_customer'] = $this->language->get('text_customer');
    $this->data['text_products'] = $this->language->get('text_products');
    $this->data['text_total'] = $this->language->get('text_total');
    $this->data['text_empty'] = $this->language->get('text_empty');
    
    $this->data['button_view'] = $this->language->get('button_view');
    $this->data['button_reorder'] = $this->language->get('button_reorder');
    $this->data['button_continue'] = $this->language->get('button_continue');
    
    if (isset($this->request->get['page'])) {
    $page = $this->request->get['page'];
    } else {
    $page = 1;
    }
    
    $this->data['orders'] = array();
    
    $order_total = $this->model_account_order->getTotalOrders();
    
    $results = $this->model_account_order->getOrders(($page - 1) * 10, 10);
    
    foreach ($results as $result) {
    $product_total = $this->model_account_order->getTotalOrderProductsByOrderId($result['order_id']);
    $voucher_total = $this->model_account_order->getTotalOrderVouchersByOrderId($result['order_id']);
    
    $this->data['orders'][] = array(
    'order_id'   => $result['order_id'],
    'name'	   => $result['firstname'] . ' ' . $result['lastname'],
    'status'	 => $result['status'],
    'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
    'products'   => ($product_total + $voucher_total),
    'total'	  => $this->currency->format($result['total'], $result['currency_code'], $result['currency_value']),
    'href'	   => $this->url->link('account/order/info', 'order_id=' . $result['order_id'], 'SSL'),
    'reorder'	=> $this->url->link('account/order', 'order_id=' . $result['order_id'], 'SSL')
    );
    }
    
    $pagination = new Pagination();
    $pagination->total = $order_total;
    $pagination->page = $page;
    $pagination->limit = 10;
    $pagination->text = $this->language->get('text_pagination');
    $pagination->url = $this->url->link('account/order', 'page={page}', 'SSL');
    
    $this->data['pagination'] = $pagination->render();
    
    $this->data['continue'] = $this->url->link('account/account', '', 'SSL');
    
    if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/order_list.tpl')) {
    $this->template = $this->config->get('config_template') . '/template/account/order_list.tpl';
    } else {
    $this->template = 'default/template/account/order_list.tpl';
    }
    
    $this->children = array(
    'common/column_left',
    'common/column_right',
    'common/content_top',
    'common/content_bottom',
    'common/footer',
    'common/header'
    );
    
    $this->response->setOutput($this->render());
    }
    
    public function info() {
    if (!$this->customer->isLogged()) {
    $this->session->data['redirect'] = $this->url->link('account/order/info', 'order_id=' . $order_id, 'SSL');
    
    $this->redirect($this->url->link('account/login', '', 'SSL'));
    	 }
    
    $this->language->load('account/order');
    
    if (isset($this->request->get['order_id'])) {
    $order_id = $this->request->get['order_id'];
    } else {
    $order_id = 0;
    }
    
    $this->load->model('account/order');
    
    $order_info = $this->model_account_order->getOrder($order_id);
    
    if ($order_info) {
    $this->document->setTitle($this->language->get('text_order'));
    
    $this->data['breadcrumbs'] = array();
    
    $this->data['breadcrumbs'][] = array(
    'text'	  => $this->language->get('text_home'),
    'href'	  => $this->url->link('common/home'),		
    'separator' => false
    );
    
    $this->data['breadcrumbs'][] = array(
    'text'	  => $this->language->get('text_account'),
    'href'	  => $this->url->link('account/account', '', 'SSL'),		
    'separator' => $this->language->get('text_separator')
    );
    
    $url = '';
    
    if (isset($this->request->get['page'])) {
    $url .= '&page=' . $this->request->get['page'];
    }
    
    $this->data['breadcrumbs'][] = array(
    'text'	  => $this->language->get('heading_title'),
    'href'	  => $this->url->link('account/order', $url, 'SSL'),	  
    'separator' => $this->language->get('text_separator')
    );
    
    $this->data['breadcrumbs'][] = array(
    'text'	  => $this->language->get('text_order'),
    'href'	  => $this->url->link('account/order/info', 'order_id=' . $this->request->get['order_id'] . $url, 'SSL'),
    'separator' => $this->language->get('text_separator')
    );
    
    	   $this->data['heading_title'] = $this->language->get('text_order');
    
    $this->data['text_order_detail'] = $this->language->get('text_order_detail');
    $this->data['text_invoice_no'] = $this->language->get('text_invoice_no');
    	 $this->data['text_order_id'] = $this->language->get('text_order_id');
    $this->data['text_date_added'] = $this->language->get('text_date_added');
    	   $this->data['text_shipping_method'] = $this->language->get('text_shipping_method');
    $this->data['text_shipping_address'] = $this->language->get('text_shipping_address');
    	   $this->data['text_payment_method'] = $this->language->get('text_payment_method');
    	   $this->data['text_payment_address'] = $this->language->get('text_payment_address');
    	   $this->data['text_history'] = $this->language->get('text_history');
    $this->data['text_comment'] = $this->language->get('text_comment');
    
    	   $this->data['column_name'] = $this->language->get('column_name');
    	   $this->data['column_model'] = $this->language->get('column_model');
    	   $this->data['column_quantity'] = $this->language->get('column_quantity');
    	   $this->data['column_price'] = $this->language->get('column_price');
    	   $this->data['column_total'] = $this->language->get('column_total');
    $this->data['column_action'] = $this->language->get('column_action');
    $this->data['column_date_added'] = $this->language->get('column_date_added');
    	   $this->data['column_status'] = $this->language->get('column_status');
    	   $this->data['column_comment'] = $this->language->get('column_comment');
    
    $this->data['button_return'] = $this->language->get('button_return');
    	   $this->data['button_continue'] = $this->language->get('button_continue');
    
    if ($order_info['invoice_no']) {
    $this->data['invoice_no'] = $order_info['invoice_prefix'] . $order_info['invoice_no'];
    } else {
    $this->data['invoice_no'] = '';
    }
    
    $this->data['order_id'] = $this->request->get['order_id'];
    $this->data['date_added'] = date($this->language->get('date_format_short'), strtotime($order_info['date_added']));
    
    if ($order_info['shipping_address_format']) {
    	   $format = $order_info['shipping_address_format'];
    	 } else {
    $format = '{firstname} {lastname}' . "n" . '{company}' . "n" . '{address_1}' . "n" . '{address_2}' . "n" . '{city} {postcode}' . "n" . '{zone}' . "n" . '{country}';
    }
    
    	 $find = array(
      '{firstname}',
      '{lastname}',
      '{company}',
    	   '{address_1}',
    	   '{address_2}',
    	  '{city}',
    	   '{postcode}',
    	   '{zone}',
    '{zone_code}',
    	   '{country}'
    );
    
    $replace = array(
      'firstname' => $order_info['shipping_firstname'],
      'lastname'  => $order_info['shipping_lastname'],
      'company'   => $order_info['shipping_company'],
    	   'address_1' => $order_info['shipping_address_1'],
    	   'address_2' => $order_info['shipping_address_2'],
    	   'city'	  => $order_info['shipping_city'],
    	   'postcode'  => $order_info['shipping_postcode'],
    	   'zone'	  => $order_info['shipping_zone'],
    'zone_code' => $order_info['shipping_zone_code'],
    	   'country'   => $order_info['shipping_country']  
    );
    
    $this->data['shipping_address'] = str_replace(array("rn", "r", "n"), '<br />', preg_replace(array("/ss+/", "/rr+/", "/nn+/"), '<br />', trim(str_replace($find, $replace, $format))));
    
    $this->data['shipping_method'] = $order_info['shipping_method'];
    
    if ($order_info['payment_address_format']) {
    	   $format = $order_info['payment_address_format'];
    	 } else {
    $format = '{firstname} {lastname}' . "n" . '{company}' . "n" . '{address_1}' . "n" . '{address_2}' . "n" . '{city} {postcode}' . "n" . '{zone}' . "n" . '{country}';
    }
    
    	 $find = array(
      '{firstname}',
      '{lastname}',
      '{company}',
    	   '{address_1}',
    	   '{address_2}',
    	  '{city}',
    	   '{postcode}',
    	   '{zone}',
    '{zone_code}',
    	   '{country}'
    );
    
    $replace = array(
      'firstname' => $order_info['payment_firstname'],
      'lastname'  => $order_info['payment_lastname'],
      'company'   => $order_info['payment_company'],
    	   'address_1' => $order_info['payment_address_1'],
    	   'address_2' => $order_info['payment_address_2'],
    	   'city'	  => $order_info['payment_city'],
    	   'postcode'  => $order_info['payment_postcode'],
    	   'zone'	  => $order_info['payment_zone'],
    'zone_code' => $order_info['payment_zone_code'],
    	   'country'   => $order_info['payment_country']  
    );
    
    $this->data['payment_address'] = str_replace(array("rn", "r", "n"), '<br />', preg_replace(array("/ss+/", "/rr+/", "/nn+/"), '<br />', trim(str_replace($find, $replace, $format))));
    
    	   $this->data['payment_method'] = $order_info['payment_method'];
    
    $this->data['products'] = array();
    
    $products = $this->model_account_order->getOrderProducts($this->request->get['order_id']);
    
    	   foreach ($products as $product) {
    $option_data = array();
    
    $options = $this->model_account_order->getOrderOptions($this->request->get['order_id'], $product['order_product_id']);
    
    		  foreach ($options as $option) {
    		   if ($option['type'] != 'file') {
    $value = $option['value'];
    } else {
    $value = utf8_substr($option['value'], 0, utf8_strrpos($option['value'], '.'));
    }
    
    $option_data[] = array(
    'name'  => $option['name'],
    'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
    );
    		 }
    
    		 $this->data['products'][] = array(
    		   'name'	 => $product['name'],
    		   'model'	=> $product['model'],
    		   'option'   => $option_data,
    		   'quantity' => $product['quantity'],
    		   'price'	=> $this->currency->format($product['price'], $order_info['currency_code'], $order_info['currency_value']),
    'total'	=> $this->currency->format($product['total'], $order_info['currency_code'], $order_info['currency_value']),
    'return'   => $this->url->link('account/return/insert', 'order_id=' . $order_info['order_id'] . '&product_id=' . $product['product_id'], 'SSL')
    		 );
    	   }
    
    // Voucher
    $this->data['vouchers'] = array();
    
    $vouchers = $this->model_account_order->getOrderVouchers($this->request->get['order_id']);
    
    foreach ($vouchers as $voucher) {
    $this->data['vouchers'][] = array(
    'description' => $voucher['description'],
    'amount'	  => $this->currency->format($voucher['amount'], $order_info['currency_code'], $order_info['currency_value'])
    );
    }
    
    	   $this->data['totals'] = $this->model_account_order->getOrderTotals($this->request->get['order_id']);
    
    $this->data['comment'] = nl2br($order_info['comment']);
    
    $this->data['histories'] = array();
    
    $results = $this->model_account_order->getOrderHistories($this->request->get['order_id']);
    
    	   foreach ($results as $result) {
    		 $this->data['histories'][] = array(
    		   'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
    		   'status'	 => $result['status'],
    		   'comment'	=> nl2br($result['comment'])
    		 );
    	   }
    
    	   $this->data['continue'] = $this->url->link('account/order', '', 'SSL');
    
    if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/order_info.tpl')) {
    $this->template = $this->config->get('config_template') . '/template/account/order_info.tpl';
    } else {
    $this->template = 'default/template/account/order_info.tpl';
    }
    
    $this->children = array(
    'common/column_left',
    'common/column_right',
    'common/content_top',
    'common/content_bottom',
    'common/footer',
    'common/header'
    );
    
    $this->response->setOutput($this->render());
    	 } else {
    $this->document->setTitle($this->language->get('text_order'));
    
    	   $this->data['heading_title'] = $this->language->get('text_order');
    
    	   $this->data['text_error'] = $this->language->get('text_error');
    
    	   $this->data['button_continue'] = $this->language->get('button_continue');
    
    $this->data['breadcrumbs'] = array();
    
    $this->data['breadcrumbs'][] = array(
    'text'	  => $this->language->get('text_home'),
    'href'	  => $this->url->link('common/home'),
    'separator' => false
    );
    
    $this->data['breadcrumbs'][] = array(
    'text'	  => $this->language->get('text_account'),
    'href'	  => $this->url->link('account/account', '', 'SSL'),
    'separator' => $this->language->get('text_separator')
    );
    
    $this->data['breadcrumbs'][] = array(
    'text'	  => $this->language->get('heading_title'),
    'href'	  => $this->url->link('account/order', '', 'SSL'),
    'separator' => $this->language->get('text_separator')
    );
    
    $this->data['breadcrumbs'][] = array(
    'text'	  => $this->language->get('text_order'),
    'href'	  => $this->url->link('account/order/info', 'order_id=' . $order_id, 'SSL'),
    'separator' => $this->language->get('text_separator')
    );
    
    	   $this->data['continue'] = $this->url->link('account/order', '', 'SSL');
    
    if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) {
    $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl';
    } else {
    $this->template = 'default/template/error/not_found.tpl';
    }
    
    $this->children = array(
    'common/column_left',
    'common/column_right',
    'common/content_top',
    'common/content_bottom',
    'common/footer',
    'common/header'
    );
    
    $this->response->setOutput($this->render());
    	 }
       }
    }
    ?>
    
    

    чет до меня только щас дошло что к теме то это не относится пожалуй, модуль тут не причем вообще, но если сможете помочь буду примного благодарен :)

    Еще вопрос, как то можно что бы ссылка на мыло приходила в нормальном виде так сказать, а не index.php?route=account/order/info&order_id=4 ?

    был бэкап без модуля dead cow seo, теперь переход выполняется корректно

  7. Подскажите как исправить?

    при оформлении заказа на мыло пришло письмо:

    Для просмотра Вашего заказа перейдите по ссылке:

    http://www.autooptic...info&order_id=3

    при переходе выдает ошибку:

    Notice: Undefined variable: order_id in /Users/mLn_one/Sites/shop/catalog/controller/account/order.php on line 149Warning: Cannot modify header information - headers already sent by (output started at /Users/mLn_one/Sites/shop/index.php:104) in /Users/mLn_one/Sites/shop/system/engine/controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /Users/mLn_one/Sites/shop/index.php:104) in /Users/mLn_one/Sites/shop/system/engine/controller.php on line 29

    но если залогинится, то все отображается нормально

    Ставил модуль freelancer'a

  8. Необходимо добавить следующий код, после 18 строки, в файле hyla/template/product/category.tpl

    Спасибо! то что нужно

    еще вопрос, как то можно вывести картинки этих самых подкатегорий, а под ними уже названия как в 1.5.1.3?

  9. Доброго времени суток!

    Нуждаюсь в помощи по шаблону Hyla. Проблема заключается в следующем, при выборе категории не отображаются подкатегории

    Изображение

    т.е. подкатегорию я могу выбрать слева, но от этого блока хочу избавиться вообще

    а хочется что бы было так как в стандартном шаблоне и желательно с картинками от подкатегорий

    Изображение

    подскажите пожалуйста как исправить?

    Версия 1.5.2.1

    адрес сайта www.autooptics.ru

    Стоит все на localhost, Mac OS X Lion 10.7.3 MAMP


×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.