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

Burundug

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

Burundug's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Спасибо, но хотелось бы своими силами... Вдруг кто поможет ЗЫ - этот модуль тоже видел )
  2. Угумс, у заказчика такая прихоть... Не могу понять только, что ещё осталось добавить... Опции выглядят так же как и в самой карточке.
  3. Добрый день. Пытаюсь сделать редактирование опций на странице подтверждения opencart 2.3.Сделал вывод опций добавлением в контроллер $options_my = array(); foreach ($this->model_catalog_product->getProductOptions($product['product_id']) as $option) { $product_option_value_data = array(); foreach ($option['product_option_value'] as $option_value) { if (!$option_value['subtract'] || ($option_value['quantity'] > 0)) { if ((($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) && (float)$option_value['price']) { $price = $this->currency->format($this->tax->calculate($option_value['price'], $product_info['tax_class_id'], $this->config->get('config_tax') ? 'P' : false), $this->session->data['currency']); } else { $price = false; } $product_option_value_data[] = array( 'product_option_value_id' => $option_value['product_option_value_id'], 'option_value_id' => $option_value['option_value_id'], 'name' => $option_value['name'], 'image' => $this->model_tool_image->resize($option_value['image'], 50, 50), 'price' => $price, 'price_prefix' => $option_value['price_prefix'] ); } } $options_my[] = array( 'product_option_id' => $option['product_option_id'], 'product_option_value' => $product_option_value_data, 'option_id' => $option['option_id'], 'name' => $option['name'], 'type' => $option['type'], 'value' => $option['value'], 'required' => $option['required'] ); } После вставил в ['products'] 'options_my' => $options_my,Всё выводится отлично, но как собственно их редактировать ? Судя по редактированию количества товара - запрос идёт в метод public function edit() { контроллера checkout...Может кто помочь с этим ?
Guest
×
  • 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.