seoseo
tr-opencart

     
avatar Şuanki Zaman: 12-08-2016, 08:57 AMHoşgeldin Misafir !
  Şifremi Hatırlat   kayıt ol
opencart temaları

Müşteri paneli siparişler açılmıyor

Konuyu görüntüleyenler: 1 Misafir
 
Değerlendir:
  • 0 Oy - 0 Yüzde
  • 1
  • 2
  • 3
  • 4
  • 5
%
Cevapla  Gönder 
v  v
Yazar  alone00001 - Görüntüleme - Okunma  1954 - Yorum  1

alone00001v
 
**
Üye user avatar
Çevrimdışı

Mesajlar: 3
Konular: 1
Katılma Tarihi: Mar 2013
Rep Puanı: 0
Teşekkürler: 0
0 Mesajına, 0 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 07-01-2014 10:34 AM
Merhaba arkadaşlar,

müşteri panelinde siparişlere girmeye çalıştığımda bu hatayı alıyorum

PHP Kod:
Parse errorsyntax errorunexpected T_DOUBLE_ARROW in /home/sepet/public_html/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 402 


ilgili dosyanın 402. satırında şu var

hata veren kısımlar kargo takip eklentisiyle ilgili eklenti düzgün çalışıyor ancak müşteri panelinde sipariş sayfasının açılmasına engel oluyor.


PHP Kod:
                // Begin Track en Trace
                
'carrier'     => $result['carrier'],
                
'tnt_track'  => $result['trackcode'],
                
'trackcode'     => $result['trackcode'] = $trackcode

dosyanın tamamıda şu şekilde;

PHP Kod:
<?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'] == 'text' || $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) * 1010);
        
        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() { 
        
$this->language->load('account/order');
        
        if (isset(
$this->request->get['order_id'])) {
            
$order_id $this->request->get['order_id'];
        } else {
            
$order_id 0;
        }    

        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->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');
        

                
// Begin Track en Trace
                
$this->data['column_track_trace'] = $this->language->get('column_track_trace');
                
$this->data['text_no_tracking'] = $this->language->get('text_no_tracking');
                
// End Track en Trace
            
            
            
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['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("\r\n""\r""\n"), '<br />'preg_replace(array("/\s\s+/""/\r\r+/""/\n\n+/"), '<br />'trim(str_replace($find$replace$format))));

              
$this->data['payment_method'] = $order_info['payment_method'];
            
            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("\r\n""\r""\n"), '<br />'preg_replace(array("/\s\s+/""/\r\r+/""/\n\n+/"), '<br />'trim(str_replace($find$replace$format))));

            
$this->data['shipping_method'] = $order_info['shipping_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'], 0utf8_strrpos($option['value'], '.'));
                    }
                    
                    
$option_data[] = array(
                        
'name'  => $option['name'],
                        
'value' => (utf8_strlen($value) > 20 utf8_substr($value020) . '..' $value)
                    );                    
                }

                
$this->data['products'][] = array(
                      
'name'     => $product['name'],
                      
'model'    => $product['model'],
                      
'option'   => $option_data,
                      
'quantity' => $product['quantity'],
                      
'price'    => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']),
                    
'total'    => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $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']);

                
// Begin Track en Trace
                
$tnt_zipcode TRIM(substr($order_info['shipping_postcode'], 04) . strtoupper(substr($order_info['shipping_postcode'], -2)));

                if (
$order_info['shipping_country'] == "Turkey") {
            
            

              foreach (
$results as $result) {

                
// Begin Track en Trace
                
                
$trackcode 'http://selfservis.yurticikargo.com/reports/SSWDocumentDetail.aspx?DocId=' $result['trackcode'];

                if (
$result['carrier'] == 'yurticikargo') {
                    
$trackcode 'http://selfservis.yurticikargo.com/reports/SSWDocumentDetail.aspx?DocId=' $result['trackcode'];
                }
                if (
$result['carrier'] == 'araskargo') {
                    
$trackcode 'http://appl-srv.araskargo.com.tr/yurticigonbil.aspx?Cargo_Code=' $result['trackcode'];
                }
                if (
$result['carrier'] == 'suratkargo') {
                    
$trackcode 'https://www.suratkargo.com.tr/kargoweb/bireysel.aspx?no=' $result['trackcode'];
                }
                if (
$result['carrier'] == 'mngkargo') {
                    
$trackcode 'http://service.mngkargo.com.tr/iactive/popup/kargotakip.asp?k=' $result['trackcode'];
                }
                if (
$result['carrier'] == 'upskargo') {
                    
$trackcode 'http://www.ups.com.tr/WaybillSorgu.aspx?waybill=' $result['trackcode'];
                }
                if (
$result['carrier'] == 'pttkargo') {
                    
$trackcode 'https://interaktif.ptt.gov.tr/apps/sonuc.php?barkod=' $result['trackcode'];
                }    
            
        
                
// Begin Track en Trace
                
'carrier'     => $result['carrier'],
                
'tnt_track'  => $result['trackcode'],
                
'trackcode'     => $result['trackcode'] = $trackcode,
        
            
            
                
$this->data['histories'][] = array(
                      
'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
        
        }    
            
                
// Begin Track en Trace
                
if ($order_info['shipping_country'] != "Turkey") {
                    foreach (
$results as $result) {
                    
$trackcode 'http://selfservis.yurticikargo.com/reports/SSWDocumentDetail.aspx?DocId=' $result['trackcode'];

                        
$this->data['histories'][] = array(
                            
'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
                            
'status'     => $result['status'],
                            
'carrier'     => $result['carrier'],
                            
'tnt_track'  => $result['trackcode'],
                            
'trackcode'     => $result['trackcode'] = $trackcode,
                            
'comment'    => nl2br($result['comment'])
                        );
                    }
                }
                
// End Track en Trace
            
            
                      
'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());                
        }
      }
}
?>
Alıntı Yaparak Cevapla
Paylaş!
opencart temaları
alone00001v
 
**
Üye user avatar
Çevrimdışı

Mesajlar: 3
Konular: 1
Katılma Tarihi: Mar 2013
Rep Puanı: 0
Teşekkürler: 0
0 Mesajına, 0 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 07-05-2014 03:44 PM
Bir fikri olan yok mu arkadaşlar
Alıntı Yaparak Cevapla
Paylaş!

« Önceki | Sonraki »
Cevapla  Gönder 

Müşteri paneli siparişler açılmıyor Konusunun Linki Direk Link
Müşteri paneli siparişler açılmıyor Konusunun HTML Kodu HTML Link
Müşteri paneli siparişler açılmıyor Konusu BBCode Linki BBCode Link
Müşteri paneli siparişler açılmıyor Konusunu Paylaş Sosyal Paylaş

Benzeyen Konular
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  Siparişler silinmiyor - API hatası osmannet 1 297 07-09-2016 11:21 AM
Son Mesaj: osdem66
  Opencart admin paneli atma sorunu Venusay 4 2,442 03-22-2016 11:30 AM
Son Mesaj: atakanttnet
  Resim upload alanında admin paneli çıkıyor ! alitan 0 209 12-21-2015 01:30 PM
Son Mesaj: alitan
  müşteri email ile onaylamayı kapatmak istiyorum myweb 6 593 10-22-2015 05:08 AM
Son Mesaj: bluemonday
  Admin Paneli Oturum Aç Tıklanmıyor burak55 4 591 06-21-2015 03:03 PM
Son Mesaj: burak55
  Sunucu değiştirdim site açılmıyor metehan 7 2,798 05-01-2015 03:52 PM
Son Mesaj: metehan
  Online Müşteri Durumu barney 1 539 02-27-2015 12:20 AM
Son Mesaj: Kıroğlumarket
  Müşteri yedekleme blue021433 6 1,122 10-27-2014 02:40 PM
Son Mesaj: blue021433
  [Modifikasyon] Opencart Alışveriş Listesine Farklı Bir Müşteri tarafından girmek barney 1 675 10-25-2014 04:06 PM
Son Mesaj: adsl
  Ürün fotoğrafları popup şekilde açılmıyor marcelo 0 644 07-22-2014 05:45 PM
Son Mesaj: marcelo

Müşteri paneli siparişler açılmıyor indir, Müşteri paneli siparişler açılmıyor Videosu, Müşteri paneli siparişler açılmıyor online izle, Müşteri paneli siparişler açılmıyor Bedava indir, Müşteri paneli siparişler açılmıyor Yükle, Müşteri paneli siparişler açılmıyor Hakkında, Müşteri paneli siparişler açılmıyor nedir, Müşteri paneli siparişler açılmıyor Free indir, Müşteri paneli siparişler açılmıyor oyunu, Müşteri paneli siparişler açılmıyor download


Forum Atla: