Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

svvasya

Newbie
  
  • Posts

    36
  • Joined

  • Last visited

Information

  • Gender
    Мужчина

Recent Profile Visitors

1,192 profile views

svvasya's Achievements

Contributor

Contributor (5/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Подскажите как извлечь ид категории в карточке товара. На сколько я понимаю надо сначала в контроллере вытянуть ид, а потом вывести в product.tpl Кто может подсказать какой именно код и куда вставить.
  2. нанять всегда успею, в принципе этот форум предназначен и для советов также, а не только для продажи модулей и поиска разработчиков за денюжку
  3. вставил сюда $data['orders'] = array(); $this->load->model('account/order'); $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']); $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'), 'comment' => nl2br($order_info['comment']) ); }
  4. не выводит ничего(((, а вверху ошибка Notice: Undefined variable: order_info in ....../catalog/controller/account/order.php on line 80
  5. немножко разобрался сам $this->language->get('text_comment') - вытаскивает текст "Комментарий " а как вытащить сам комментарий
  6. праздник закончился.... может кто поможет??? :-(
  7. У меня следующего вида проблемка В заказе опции товара теряют тот порядок в котором они есть на странице товара. В товаре много опций что вызывает определенные неудобства при его обработке. Подозреваю, что это наверное связано с модулем вашим модулем
  8. Так что никто не подскажет? возможно я не понятно сформулировал вопрос ....... Нужно на странице история заказов index.php?route=account/order в таблице возле каждого заказа показать комментарий из страницы index.php?route=account/order/info&order_id=97 если вставляю просто <?php echo $comment; ?> то видает ошибку Undefined variable: comment in ...../catalog/view/theme/default/template/account/order_list.tpl
  9. Следующая проблема нужно переменную $comment (Коментарии к заказу) из order_info.tpl показать на странице истории заказов order_list.tpl как я понимаю надо поправить что-то в контроллере controller/account/order.php может кто подскажет что и где? opencart 2
×
×
  • 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.