seoseo
tr-opencart

     
avatar Şuanki Zaman: 12-10-2016, 09:33 PMHoşgeldin Misafir !
  Şifremi Hatırlat   kayıt ol
opencart temaları

kategori hatası

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  UnknownSouL - Görüntüleme - Okunma  2057 - Yorum  9

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

Mesajlar: 51
Konular: 18
Katılma Tarihi: Aug 2012
Rep Puanı: 0
Teşekkürler: 3
2 Mesajına, 2 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-06-2012 07:46 AM
Merhaba arkadaşlar

sitemde şu hatayı alıyorum kategorileri açtığımda

Parse error: syntax error, unexpected '}' in /home/...../public_html/vqmod/vqcache/vq2-catalog_view_theme_....._template_product_category.tpl on line 59

kaynak kodu aşağıdaki gibidir

Kod:
<?php
class ControllerProductCategory extends Controller {  
    public function index() {
        $this->language->load('product/category');
        
        $this->load->model('catalog/category');
        
        $this->load->model('catalog/product');
        
        $this->load->model('tool/image');
        
        if (isset($this->request->get['sort'])) {
            $sort = $this->request->get['sort'];
        } else {
            $sort = 'p.sort_order';
        }

        if (isset($this->request->get['order'])) {
            $order = $this->request->get['order'];
        } else {
            $order = 'ASC';
        }
        
        if (isset($this->request->get['page'])) {
            $page = $this->request->get['page'];
        } else {
            $page = 1;
        }    
                            
        if (isset($this->request->get['limit'])) {
            $limit = $this->request->get['limit'];
        } else {
            $limit = $this->config->get('config_catalog_limit');
        }
                    
        $this->data['breadcrumbs'] = array();

           $this->data['breadcrumbs'][] = array(
               'text'      => $this->language->get('text_home'),
            'href'      => $this->url->link('common/home'),
               'separator' => false
           );    
            
        if (isset($this->request->get['path'])) {
            $path = '';
        
            $parts = explode('_', (string)$this->request->get['path']);
        
            foreach ($parts as $path_id) {
                if (!$path) {
                    $path = $path_id;
                } else {
                    $path .= '_' . $path_id;
                }
                                    
                $category_info = $this->model_catalog_category->getCategory($path_id);
                
                if ($category_info) {
                       $this->data['breadcrumbs'][] = array(
                           'text'      => $category_info['name'],
                        'href'      => $this->url->link('product/category', 'path=' . $path),
                        'separator' => $this->language->get('text_separator')
                    );
                }
            }        
        
            $category_id = array_pop($parts);
        } else {
            $category_id = 0;
        }
        
        $category_info = $this->model_catalog_category->getCategory($category_id);
    
        if ($category_info) {
              $this->document->setTitle($category_info['name']);
            $this->document->setDescription($category_info['meta_description']);
            $this->document->setKeywords($category_info['meta_keyword']);
            
            $this->data['heading_title'] = $category_info['name'];
            
            $this->data['text_refine'] = $this->language->get('text_refine');
            $this->data['text_empty'] = $this->language->get('text_empty');            
            $this->data['text_quantity'] = $this->language->get('text_quantity');
            $this->data['text_manufacturer'] = $this->language->get('text_manufacturer');
            $this->data['text_model'] = $this->language->get('text_model');
            $this->data['text_price'] = $this->language->get('text_price');
            $this->data['text_tax'] = $this->language->get('text_tax');
            $this->data['text_points'] = $this->language->get('text_points');
            $this->data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0));
            $this->data['text_display'] = $this->language->get('text_display');
            $this->data['text_list'] = $this->language->get('text_list');
            $this->data['text_grid'] = $this->language->get('text_grid');
            $this->data['text_sort'] = $this->language->get('text_sort');
            $this->data['text_limit'] = $this->language->get('text_limit');
                    
            $this->data['button_cart'] = $this->language->get('button_cart');
            $this->data['button_wishlist'] = $this->language->get('button_wishlist');
            $this->data['button_compare'] = $this->language->get('button_compare');
            $this->data['button_continue'] = $this->language->get('button_continue');
                    
            if ($category_info['image']) {
                $this->data['thumb'] = $this->model_tool_image->resize($category_info['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height'));
            } else {
                $this->data['thumb'] = '';
            }
                                    
            $this->data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
            $this->data['compare'] = $this->url->link('product/compare');
            
            $url = '';
            
            if (isset($this->request->get['sort'])) {
                $url .= '&sort=' . $this->request->get['sort'];
            }    

            if (isset($this->request->get['order'])) {
                $url .= '&order=' . $this->request->get['order'];
            }    
            
            if (isset($this->request->get['limit'])) {
                $url .= '&limit=' . $this->request->get['limit'];
            }
                                
            $this->data['categories'] = array();
            
            $results = $this->model_catalog_category->getCategories($category_id);
            
            foreach ($results as $result) {
                $data = array(
                    'filter_category_id'  => $result['category_id'],
                    'filter_sub_category' => true    
                );
                            
                $product_total = $this->model_catalog_product->getTotalProducts($data);

if ($result['image']) {
    $image = $this->model_tool_image->resize($result['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height'));
} else {
    $image = false;
}
;

if ($result['image']) {
    $image = $this->model_tool_image->resize($result['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height'));
} else {
    $image = false;
}
;

                
                $this->data['categories'][] = array(
                    'name'  => $result['name'] . ' (' . $product_total . ')',
                    'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url)
, 'thumb' => $image
, 'thumb' => $image
                );
            }
            
            $this->data['products'] = array();
            
            $data = array(
                'filter_category_id' => $category_id,
                'sort'               => $sort,
                'order'              => $order,
                'start'              => ($page - 1) * $limit,
                'limit'              => $limit
            );
                    
            $product_total = $this->model_catalog_product->getTotalProducts($data);
            
            $results = $this->model_catalog_product->getProducts($data);
            
            foreach ($results as $result) {
                if ($result['image']) {
                    $image = $this->model_tool_image->resize($result['image'], $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height'));
                } else {
                    $image = false;
                }
                
                if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
                    $price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));
                } else {
                    $price = false;
                }
                
                if ((float)$result['special']) {
                    $special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax')));
                } else {
                    $special = false;
                }    
                
                if ($this->config->get('config_tax')) {
                    $tax = $this->currency->format((float)$result['special'] ? $result['special'] : $result['price']);
                } else {
                    $tax = false;
                }                
                
                if ($this->config->get('config_review_status')) {
                    $rating = (int)$result['rating'];
                } else {
                    $rating = false;
                }
                                
                $this->data['products'][] = array(
                    'product_id'  => $result['product_id'],
                    'thumb'       => $image,
                    'name'        => $result['name'],
                    'description' => mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
                    'price'       => $price,
                    'special'     => $special,
                    'tax'         => $tax,
                    'rating'      => $result['rating'],
                    'reviews'     => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
                    'href'        => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'])
                );
            }
            
            $url = '';
    
            if (isset($this->request->get['limit'])) {
                $url .= '&limit=' . $this->request->get['limit'];
            }
                            
            $this->data['sorts'] = array();
            
            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_default'),
                'value' => 'p.sort_order-ASC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.sort_order&order=ASC' . $url)
            );
            
            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_name_asc'),
                'value' => 'pd.name-ASC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=pd.name&order=ASC' . $url)
            );

            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_name_desc'),
                'value' => 'pd.name-DESC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=pd.name&order=DESC' . $url)
            );

            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_price_asc'),
                'value' => 'p.price-ASC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.price&order=ASC' . $url)
            );

            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_price_desc'),
                'value' => 'p.price-DESC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.price&order=DESC' . $url)
            );
            
            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_rating_desc'),
                'value' => 'rating-DESC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=rating&order=DESC' . $url)
            );
            
            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_rating_asc'),
                'value' => 'rating-ASC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=rating&order=ASC' . $url)
            );
            
            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_model_asc'),
                'value' => 'p.model-ASC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.model&order=ASC' . $url)
            );

            $this->data['sorts'][] = array(
                'text'  => $this->language->get('text_model_desc'),
                'value' => 'p.model-DESC',
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '&sort=p.model&order=DESC' . $url)
            );
            
            $url = '';
    
            if (isset($this->request->get['sort'])) {
                $url .= '&sort=' . $this->request->get['sort'];
            }    

            if (isset($this->request->get['order'])) {
                $url .= '&order=' . $this->request->get['order'];
            }
            
            $this->data['limits'] = array();
            
            $this->data['limits'][] = array(
                'text'  => $this->config->get('config_catalog_limit'),
                'value' => $this->config->get('config_catalog_limit'),
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=' . $this->config->get('config_catalog_limit'))
            );
                        
            $this->data['limits'][] = array(
                'text'  => 25,
                'value' => 25,
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=25')
            );
            
            $this->data['limits'][] = array(
                'text'  => 50,
                'value' => 50,
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=50')
            );

            $this->data['limits'][] = array(
                'text'  => 75,
                'value' => 75,
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=75')
            );
            
            $this->data['limits'][] = array(
                'text'  => 100,
                'value' => 100,
                'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&limit=100')
            );
                        
            $url = '';
    
            if (isset($this->request->get['sort'])) {
                $url .= '&sort=' . $this->request->get['sort'];
            }    

            if (isset($this->request->get['order'])) {
                $url .= '&order=' . $this->request->get['order'];
            }
    
            if (isset($this->request->get['limit'])) {
                $url .= '&limit=' . $this->request->get['limit'];
            }
                    
            $pagination = new Pagination();
            $pagination->total = $product_total;
            $pagination->page = $page;
            $pagination->limit = $limit;
            $pagination->text = $this->language->get('text_pagination');
            $pagination->url = $this->url->link('product/category', 'path=' . $this->request->get['path'] . $url . '&page={page}');
        
            $this->data['pagination'] = $pagination->render();
        
            $this->data['sort'] = $sort;
            $this->data['order'] = $order;
            $this->data['limit'] = $limit;
        
            $this->data['continue'] = $this->url->link('common/home');

            if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) {
                $this->template = $this->config->get('config_template') . '/template/product/category.tpl';
            } else {
                $this->template = 'default/template/product/category.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 {
            $url = '';
            
            if (isset($this->request->get['path'])) {
                $url .= '&path=' . $this->request->get['path'];
            }
                                    
            if (isset($this->request->get['sort'])) {
                $url .= '&sort=' . $this->request->get['sort'];
            }    

            if (isset($this->request->get['order'])) {
                $url .= '&order=' . $this->request->get['order'];
            }
                
            if (isset($this->request->get['page'])) {
                $url .= '&page=' . $this->request->get['page'];
            }
                        
            if (isset($this->request->get['limit'])) {
                $url .= '&limit=' . $this->request->get['limit'];
            }
                        
            $this->data['breadcrumbs'][] = array(
                'text'      => $this->language->get('text_error'),
                'href'      => $this->url->link('product/category', $url),
                'separator' => $this->language->get('text_separator')
            );
                
            $this->document->setTitle($this->language->get('text_error'));

              $this->data['heading_title'] = $this->language->get('text_error');

              $this->data['text_error'] = $this->language->get('text_error');

              $this->data['button_continue'] = $this->language->get('button_continue');

              $this->data['continue'] = $this->url->link('common/home');

            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ı
Kıroğlumarketv
Osmanlı Torunu
******
Süper Moderator user avatar
Çevrimdışı

Mesajlar: 2,966
Konular: 475
Katılma Tarihi: Jan 2012
Rep Puanı: 93
Teşekkürler: 1108
965 Mesajına, 1981 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-06-2012 08:09 AM
tpl demişsin php olanını vermişsin yaptığınız birdeğişiklik varmı kategori dosyasında
Kıroğlumarket
Alıntı Yaparak Cevapla
Paylaş!
UnknownSouLv
Üye
***
Üye user avatar
Çevrimdışı

Mesajlar: 51
Konular: 18
Katılma Tarihi: Aug 2012
Rep Puanı: 0
Teşekkürler: 3
2 Mesajına, 2 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-06-2012 08:50 AM
pardon yok şefim o dosya ile hiç uğraşmadım

Kod:
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>

<div id="content"><?php echo $content_top; ?>

  <div class="breadcrumb">

    <?php foreach ($breadcrumbs as $breadcrumb) { ?>

    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>

    <?php } ?>

  </div>

  <h1><?php echo $heading_title; ?></h1>

  <?php if ($thumb || $description) { ?>

  <!--<div class="category-info">

    <?php if ($thumb) { ?>

    <div class="image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></div>

    <?php } ?>

    <?php if ($description) { ?>

    <?php echo $description; ?>

    <?php } ?>

  </div>-->

  <?php } ?>

<?php if ($categories) { ?>
  <div class="box">
    <div style="background:url(catalog/view/theme/egitim/image/top.png) no-repeat bottom  center; border:none;" class="box-heading"><?php echo $text_refine; ?></div>
    <div style="background:url(catalog/view/theme/egitim/image/top.png) no-repeat bottom  center;border:none;"class="box-content">
        <div class="box-product box-subcat">
            <?php foreach ($categories as $category) { ?>
            <div align="center"style="margin-left:10px;border:1px solid #ddd; border-radius:10px;width:155px;">
                <?php if ($category['thumb']) { ?>
                <div class="image"><a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a></div>
                <?php } ?>
                <div class="name subcatname"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></div>
            </div>
            <?php } ?>
        </div>
    </div>
  </div>
  <?php } ?>























        <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>

        <?php } else { ?>

        <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>

        <?php } ?>

        <?php } ?>

      </select>

    </div>

    <div class="sort"><b><?php echo $text_sort; ?></b>

      <select onchange="location = this.value;">

        <?php foreach ($sorts as $sorts) { ?>

        <?php if ($sorts['value'] == $sort . '-' . $order) { ?>

        <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>

        <?php } else { ?>

        <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>

        <?php } ?>

        <?php } ?>

      </select>

    </div>

  </div>

  <div class="product-compare"><a href="<?php echo $compare; ?>" id="compare_total"><?php echo $text_compare; ?></a></div>

  <div class="product-grid">

    <?php foreach ($products as $product) { ?>

    <div >

    

      <?php if ($product['thumb']) { ?>

      <div align="center" class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>

      <?php } ?>

      <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>

      <?php if ($product['price']) { ?>

      <div class="price">

        <?php if (!$product['special']) { ?>

        <?php echo $product['price']; ?>

        <?php } else { ?>

        <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>

        <?php } ?>

        <?php if ($product['tax']) { ?>

        <br />

        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>

        <?php } ?>

      </div>

      <?php } ?>

      <?php if ($product['rating']) { ?>

      <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>

      <?php } ?>

      <div align="center" class="cart"><a <a href="<?php echo $product['href']; ?>"  ><img src="catalog/view/theme/egitim/image/view.gif"></a>

        <a onclick="addToCart('<?php echo $product['product_id']; ?>');" ><img src="catalog/view/theme/egitim/image/addtocart.gif"></div>

      <div align="center"class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>

      <div align="center" class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>

    </div>

    <?php } ?>

  </div>

  <div class="pagination"><?php echo $pagination; ?></div>

  <?php } ?>

  <?php if (!$categories && !$products) { ?>

  <div class="content"><?php echo $text_empty; ?></div>

  <div class="buttons">

    <div class="right"><a href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>

  </div>

  <?php } ?>

  <?php echo $content_bottom; ?></div>



<?php echo $footer; ?>
Alıntı Yaparak Cevapla
Paylaş!
ITECHINNv
Sadece PHP
****
Üye user avatar
Çevrimdışı

Mesajlar: 557
Konular: 17
Katılma Tarihi: May 2012
Rep Puanı: 15
Teşekkürler: 275
187 Mesajına, 328 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-06-2012 09:27 AM
PHP Kod:
<?php echo $header?><?php echo $column_left?><?php echo $column_right?>

<div id="content"><?php echo $content_top?>

  <div class="breadcrumb">

    <?php foreach ($breadcrumbs as $breadcrumb) { ?>

    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>

    <?php ?>

  </div>

  <h1><?php echo $heading_title?></h1>

  <?php if ($thumb || $description) { ?>

  <!--<div class="category-info">

    <?php if ($thumb) { ?>

    <div class="image"><img src="<?php echo $thumb?>" alt="<?php echo $heading_title?>" /></div>

    <?php ?>

    <?php if ($description) { ?>

    <?php echo $description?>

    <?php ?>

  </div>-->

  <?php ?>

<?php if ($categories) { ?>
  <div class="box">
    <div style="background:url(catalog/view/theme/egitim/image/top.png) no-repeat bottom  center; border:none;" class="box-heading"><?php echo $text_refine?></div>
    <div style="background:url(catalog/view/theme/egitim/image/top.png) no-repeat bottom  center;border:none;"class="box-content">
        <div class="box-product box-subcat">
            <?php foreach ($categories as $category) { ?>
            <div align="center"style="margin-left:10px;border:1px solid #ddd; border-radius:10px;width:155px;">
                <?php if ($category['thumb']) { ?>
                <div class="image"><a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a></div>
                <?php ?>
                <div class="name subcatname"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></div>
            </div>
            <?php ?>
        </div>
    </div>
  </div>
  <?php ?>























        <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>


        <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>



      </select>

    </div>

    <div class="sort"><b><?php echo $text_sort?></b>

      <select onchange="location = this.value;">

        <?php foreach ($sorts as $sorts) { ?>

        <?php if ($sorts['value'] == $sort '-' $order) { ?>

        <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>

        <?php } else { ?>

        <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>

        <?php ?>

        <?php ?>

      </select>

    </div>

  </div>

  <div class="product-compare"><a href="<?php echo $compare?>" id="compare_total"><?php echo $text_compare?></a></div>

  <div class="product-grid">

    <?php foreach ($products as $product) { ?>

    <div > 

    

      <?php if ($product['thumb']) { ?>

      <div align="center" class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>

      <?php ?>

      <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>

      <?php if ($product['price']) { ?>

      <div class="price">

        <?php if (!$product['special']) { ?>

        <?php echo $product['price']; ?>

        <?php } else { ?>

        <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>

        <?php ?>

        <?php if ($product['tax']) { ?>

        <br />

        <span class="price-tax"><?php echo $text_tax?> <?php echo $product['tax']; ?></span>

        <?php ?>

      </div>

      <?php ?>

      <?php if ($product['rating']) { ?>

      <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>

      <?php ?>

      <div align="center" class="cart"><a <a href="<?php echo $product['href']; ?>"  ><img src="catalog/view/theme/egitim/image/view.gif"></a>

        <a onclick="addToCart('<?php echo $product['product_id']; ?>');" ><img src="catalog/view/theme/egitim/image/addtocart.gif"></div>

      <div align="center"class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist?></a></div>

      <div align="center" class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare?></a></div>

    </div>

    <?php ?>

  </div>

  <div class="pagination"><?php echo $pagination?></div>


  <?php if (!$categories && !$products) { ?>

  <div class="content"><?php echo $text_empty?></div>

  <div class="buttons">

    <div class="right"><a href="<?php echo $continue?>" class="button"><span><?php echo $button_continue?></span></a></div>

  </div>

  <?php ?>

  <?php echo $content_bottom?></div>



<?php echo $footer?>

Bu şekilde kodlarınızda bir hata bulunmamakta ancak sağlıklı çalıştığını test edemedim. kod hatası vermiyor sadece (Gereksiz } ve else satırlarını kaldırdım)
Alıntı Yaparak Cevapla
Paylaş!
UnknownSouLv
Üye
***
Üye user avatar
Çevrimdışı

Mesajlar: 51
Konular: 18
Katılma Tarihi: Aug 2012
Rep Puanı: 0
Teşekkürler: 3
2 Mesajına, 2 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-06-2012 09:43 AM
maalesef sorun hala devam etmekte
Alıntı Yaparak Cevapla
Paylaş!
GokhanKorkutv
Deli (:
***
V.İ.P Premium user avatar
Çevrimdışı

Mesajlar: 227
Konular: 9
Katılma Tarihi: Sep 2012
Rep Puanı: 6
Teşekkürler: 18
80 Mesajına, 179 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-06-2012 11:51 AM
Verdiğiniz tpl içinde 54 ile 76. satırlar arası boş.

Burada aşağıdakine benzer bir kod olması gerekli. Tema dosyanızın orjinalinden kontrol ederseniz düzeltebilirsiniz.. Geçici çözümü aşağıda verdim, ancak temanızla uyumsuz olabilir.

Kolay gelsin.

Bul:
PHP Kod:
<option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option> 

Üstüne Ekle:
PHP Kod:
<?php foreach ($limits as $limits) { ?>
        <?php if ($limits['value'] == $limit) { ?>
GokhanKorkut
www.gokhankorkut.com
because we share life..

Alıntı Yaparak Cevapla
Paylaş!
opencart temaları
UnknownSouLv
Üye
***
Üye user avatar
Çevrimdışı

Mesajlar: 51
Konular: 18
Katılma Tarihi: Aug 2012
Rep Puanı: 0
Teşekkürler: 3
2 Mesajına, 2 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-07-2012 02:54 AM
sorun hala devam ediyor anlamadığım nokta ben o klasöre gşrmedim bile nasıl oluyorda birşeyler siliniyor Confused çıldırmamak elde değil


arkadaş ben bu vq2-catalog_view_theme_egitim_template_product_category.tpl dosyasını siliyorum aynı hatayı veriyor bu ne analamdım ne dandik sistemmiş bu opencart hatayı verdimi düzelmiyor inat ediyor.

Arkadaşlar nedir bu durduk yere başladı allah aşkına bir akıl verin

Saygılarımla
Alıntı Yaparak Cevapla
Paylaş!
UnknownSouLv
Üye
***
Üye user avatar
Çevrimdışı

Mesajlar: 51
Konular: 18
Katılma Tarihi: Aug 2012
Rep Puanı: 0
Teşekkürler: 3
2 Mesajına, 2 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-07-2012 04:04 AM
Arkadaşlar sorun categori.tpl dosyasında default temadaki categori.tplyi kullanınca düzeldi ama sonunça tema bozuldu sorun nerede bakabilirseniz çok minnettar kalırım.

Saygılarımla


Kod:
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <?php if ($thumb || $description) { ?>
  <!--<div class="category-info">
    <?php if ($thumb) { ?>
    <div class="image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" /></div>
    <?php } ?>
    <?php if ($description) { ?>
    <?php echo $description; ?>
    <?php } ?>
  </div>-->
  <?php } ?>
<?php if ($categories) { ?>
  <div class="box">
    <div style="background:url(catalog/view/theme/egitim/image/top.png) no-repeat bottom  center; border:none;" class="box-heading"><?php echo $text_refine; ?></div>
    <div style="background:url(catalog/view/theme/egitim/image/top.png) no-repeat bottom  center;border:none;"class="box-content">
        <div class="box-product box-subcat">
            <?php foreach ($categories as $category) { ?>
            <div align="center"style="margin-left:10px;border:1px solid #ddd; border-radius:10px;width:155px;">
                <?php if ($category['thumb']) { ?>
                <div class="image"><a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a></div>
                <?php } ?>
                <div class="name subcatname"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></div>
            </div>
            <?php } ?>
        </div>
    </div>
  </div>
  <?php } ?>
  <?php if ($products) { ?>
  <div class="product-filter">
       <div class="limit"><b><?php echo $text_limit; ?></b>
      <select onchange="location = this.value;">
        <?php foreach ($limits as $limits) { ?>
        <?php if ($limits['value'] == $limit) { ?>
        <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
        <?php } else { ?>
        <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
    <div class="sort"><b><?php echo $text_sort; ?></b>
      <select onchange="location = this.value;">
        <?php foreach ($sorts as $sorts) { ?>
        <?php if ($sorts['value'] == $sort . '-' . $order) { ?>
        <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
        <?php } else { ?>
        <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
        <?php } ?>
        <?php } ?>
      </select>
    </div>
  </div>
  <div class="product-compare"><a href="<?php echo $compare; ?>" id="compare_total"><?php echo $text_compare; ?></a></div>
  <div class="product-grid">
    <?php foreach ($products as $product) { ?>
    <div >
    
      <?php if ($product['thumb']) { ?>
      <div align="center" class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
      <?php } ?>
      <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
      <?php if ($product['price']) { ?>
      <div class="price">
        <?php if (!$product['special']) { ?>
        <?php echo $product['price']; ?>
        <?php } else { ?>
        <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
        <?php } ?>
        <?php if ($product['tax']) { ?>
        <br />
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
        <?php } ?>
      </div>
      <?php } ?>
      <?php if ($product['rating']) { ?>
      <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
      <?php } ?>
      <div align="center" class="cart"><a <a href="<?php echo $product['href']; ?>"  ><img src="catalog/view/theme/egitim/image/view.gif"></a>
        <a onclick="addToCart('<?php echo $product['product_id']; ?>');" ><img src="catalog/view/theme/egitim/image/addtocart.gif"></div>
      <div align="center"class="wishlist"><a onclick="addToWishList('<?php echo $product['product_id']; ?>');"><?php echo $button_wishlist; ?></a></div>
      <div align="center" class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>
    </div>
    <?php } ?>
  </div>
  <div class="pagination"><?php echo $pagination; ?></div>
  <?php } ?>
  <?php if (!$categories && !$products) { ?>
  <div class="content"><?php echo $text_empty; ?></div>
  <div class="buttons">
    <div class="right"><a href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>
  </div>
  <?php } ?>
  <?php echo $content_bottom; ?></div>

<?php echo $footer; ?>
Alıntı Yaparak Cevapla
Paylaş!
GokhanKorkutv
Deli (:
***
V.İ.P Premium user avatar
Çevrimdışı

Mesajlar: 227
Konular: 9
Katılma Tarihi: Sep 2012
Rep Puanı: 6
Teşekkürler: 18
80 Mesajına, 179 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-07-2012 10:55 AM
Çözümü yukarı yazdım. Yada kendi temanızın dosyalarını tekrar bulup o dosyayı atın sunucunuza.
GokhanKorkut
www.gokhankorkut.com
because we share life..

Alıntı Yaparak Cevapla
Paylaş!
UnknownSouLv
Üye
***
Üye user avatar
Çevrimdışı

Mesajlar: 51
Konular: 18
Katılma Tarihi: Aug 2012
Rep Puanı: 0
Teşekkürler: 3
2 Mesajına, 2 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 09-10-2012 08:11 AM
(09-07-2012 10:55 AM)GokhanKorkut Yazılan:  Çözümü yukarı yazdım. Yada kendi temanızın dosyalarını tekrar bulup o dosyayı atın sunucunuza.

şefim bir önceki mesajımda categori.tpl dosyasını verdim zaten o dosyada kodlar tamam bahsettiğiniz kodlar mevcut
Alıntı Yaparak Cevapla
Paylaş!

« Önceki | Sonraki »
Cevapla  Gönder 

kategori hatası Konusunun Linki Direk Link
kategori hatası Konusunun HTML Kodu HTML Link
kategori hatası Konusu BBCode Linki BBCode Link
kategori hatası Konusunu Paylaş Sosyal Paylaş

Benzeyen Konular
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  Çoklu kategori ekleme sorunu yardım ? ahmetsomuncu 0 44 11-22-2016 10:49 AM
Son Mesaj: ahmetsomuncu
Exclamation [Modifikasyon] Yardım! Admin İzinleri Hatası uursezer 5 2,802 10-22-2016 11:32 PM
Son Mesaj: Sağlıklı Form
  1.5.6.4 Sistem>Mağazalar 403 Hatası DeathDance 0 97 10-04-2016 06:51 PM
Son Mesaj: DeathDance
  çoklu fiyat modulu hatası çözüm arıyorum **** yucell 1 447 08-18-2016 09:45 AM
Son Mesaj: isozi
  [Tema] Kategori bölümünde hata Macrobeatz33 0 177 07-12-2016 09:07 PM
Son Mesaj: Macrobeatz33
  Siparişler silinmiyor - API hatası osmannet 1 300 07-09-2016 11:21 AM
Son Mesaj: osdem66
  Alt Kategori Sorunu oender 0 178 06-27-2016 12:53 PM
Son Mesaj: oender
  Ftp hatası achiras 3 226 06-03-2016 10:38 AM
Son Mesaj: ajan1986
  auto search hatası furkanyvz 1 230 05-31-2016 03:57 PM
Son Mesaj: furkanyvz
  Warning: assert(): Assertion "eval(base64_decode Hatası unsound 2 175 05-19-2016 12:18 PM
Son Mesaj: Kıroğlumarket

kategori hatası indir, kategori hatası Videosu, kategori hatası online izle, kategori hatası Bedava indir, kategori hatası Yükle, kategori hatası Hakkında, kategori hatası nedir, kategori hatası Free indir, kategori hatası oyunu, kategori hatası download


Forum Atla: