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

grimfand

Newbie
  
  • Posts

    7
  • Joined

  • Last visited

grimfand's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Боюсь что сам это не осилю, требуется помощь разбирающихся людей..
  2. В теории это понятно, интересует практическое применение. Уверен, этот код пригодился бы многим.
  3. Подскажите, как сделать добавление в заказ товара из админки не по названию, а по артикулу? 1.5.4.1 order_form.tpl: <tbody> <tr> <td class="left"><?php echo $entry_product; ?></td> <td class="left"><input type="text" name="product" value="" /> <input type="hidden" name="product_id" value="" /></td> </tr> <tr id="option"></tr> <tr> <td class="left"><?php echo $entry_quantity; ?></td> <td class="left"><input type="text" name="quantity" value="1" /></td> </tr> </tbody> Какие правки нужны в view, controller и module?
  4. Подскажите пожалуйста, имеется запрос на вывод Артикула (SKU) товара в admin/model/sale/order.php, а как вывести туда же запрос на Расположение (location) товара? public function getOrderProducts($order_id) { $query = $this->db->query("SELECT a.*, b.sku FROM " . DB_PREFIX . "order_product a LEFT JOIN " . DB_PREFIX . "product b ON a.product_id = b.product_id WHERE order_id = '" . (int)$order_id . "'"); return $query->rows; } 1.5.4.1
  5. Подскажите пожалуйста, имеется запрос на вывод Артикула (SKU) товара в admin/model/sale/order.php, а как вывести туда же запрос на Расположение (location) товара? public function getOrderProducts($order_id) { $query = $this->db->query("SELECT a.*, b.sku FROM " . DB_PREFIX . "order_product a LEFT JOIN " . DB_PREFIX . "product b ON a.product_id = b.product_id WHERE order_id = '" . (int)$order_id . "'"); return $query->rows; }
  6. Копал, копал и нашёл простой способ отсюда: http://forum.opencart.com/viewtopic.php?f=20&t=4279&p=20617 Настраивается из админки: Система->Локализация->Страны->Российская Федерация (По умолчанию) Изменить Далее выбираем на свой вкус, например: {firstname} {lastname}, {country}, {city}, {postcode}, {address_1}, {address_2} Сработает на новых заказах.
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.