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

dovgan

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

    3
  • З нами

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

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

  1. On 01.02.2018 at 12:14 PM, lyovajan said:

    Нужна помощь opencart!
    Здравствуйте! хочу поменять Номер заказа которые сейчас так 0000 на A-0000 
    везде изменил но на одной странице не могу! вот тут prntscr.com/i822uh 

    columns: 
    [{ 
    title: '<?php echo $column_order_id; ?>', 
    field: 'order_id', valign: 'middle', align: 'center', 

    }

    @lyovajan , для этого нужно заменить 

    title: '<?php echo $column_order_id; ?>', 
    field: 'order_id', valign: 'middle', align: 'center', 

    на

    title: '<?php echo $column_order_id; ?>', 
    field: 'order_id', valign: 'middle', align: 'center', 
    formatter: function(value, row) {
    	return 'A-'+row.order_id;
    	
    }

     

  2. 8 hours ago, Flazz said:

    Подскажите, где смотреть адрес пункта выдачи, который выбрал клиент? В админке в инормации о заказе этих данных нет...

    как это нет? адрес доставки - это и есть адрес пункта самовывоза в случае выбранного типа доставки "самовывоз"

  3. @uriy1979 , баг, связанный с автоматическим добавлением типов доставок с сервера Шиптора. Для исправления в файле admin/controller/shipping/shiptor.php , строки 1220-1229, заменить эту часть:

    foreach($this->shiptor->getShippingMethods() as $shipping_method){
    			if($this->request->post['shiptor_'.$shipping_method['id'].'_type']=='P' && !empty($this->request->post['shiptor_'.$shipping_method['id'].'_markup']) &&
    				((int)$this->request->post['shiptor_'.$shipping_method['id'].'_markup']>100 || (int)$this->request->post['shiptor_'.$shipping_method['id'].'_markup']<-100)){
    				$this->error['error'][$shipping_method['id'].'_markup'] = $this->language->get('error_is_markup');
    			}
    			if($this->request->post['shiptor_'.$shipping_method['id'].'_type']=='P' && !empty($this->request->post['shiptor_'.$shipping_method['id'].'_markup_surcharge']) &&
    				((int)$this->request->post['shiptor_'.$shipping_method['id'].'_markup_surcharge']>100 || (int)$this->request->post['shiptor_'.$shipping_method['id'].'_markup_surcharge']<-100)){
    				$this->error['error'][$shipping_method['id'].'_markup_surcharge'] = $this->language->get('error_is_markup');
    			}
    		}

    на вот эту:

    foreach($this->shiptor->getShippingMethods() as $shipping_method){
    			if(isset($this->request->post['shiptor_'.$shipping_method['id'].'_type']) && $this->request->post['shiptor_'.$shipping_method['id'].'_type']=='P' && !empty($this->request->post['shiptor_'.$shipping_method['id'].'_markup']) &&
    				((int)$this->request->post['shiptor_'.$shipping_method['id'].'_markup']>100 || (int)$this->request->post['shiptor_'.$shipping_method['id'].'_markup']<-100)){
    				$this->error['error'][$shipping_method['id'].'_markup'] = $this->language->get('error_is_markup');
    			}
    			if(isset($this->request->post['shiptor_'.$shipping_method['id'].'_type']) && $this->request->post['shiptor_'.$shipping_method['id'].'_type']=='P' && !empty($this->request->post['shiptor_'.$shipping_method['id'].'_markup_surcharge']) &&
    				((int)$this->request->post['shiptor_'.$shipping_method['id'].'_markup_surcharge']>100 || (int)$this->request->post['shiptor_'.$shipping_method['id'].'_markup_surcharge']<-100)){
    				$this->error['error'][$shipping_method['id'].'_markup_surcharge'] = $this->language->get('error_is_markup');
    			}
    		}

     

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

Important Information

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