seoseo
tr-opencart

     
avatar Şuanki Zaman: 12-03-2016, 04:43 PMHoşgeldin Misafir !
  Şifremi Hatırlat   kayıt ol
opencart temaları

üst menü seo link

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  eno-7 - Görüntüleme - Okunma  732 - Yorum  0

eno-7v
Çırak
****
Üye user avatar
Çevrimdışı

Mesajlar: 292
Konular: 148
Katılma Tarihi: Nov 2012
Rep Puanı: 0
Teşekkürler: 14
10 Mesajına, 14 Teşekkür edildi.



Kişisel Bilgileri: v
Konu Tarihi: 07-17-2014 01:05 PM
üst menüde seo linklere gitmiyor sistem yan kategoriler modülünde gidiyor ama üst menüden id ye göre gidiyor vqmod eklentisi ile kullandığım kod aşağıdaki gibi
Kod:
<modification>
    <id>3 Level Menu</id>
    <version>1.0.0</version>
    <vqmver>2.1.5</vqmver>
    <author>NetGate.cz</author>

    <file name="catalog/controller/common/header.php">
        <operation>
            <search position="before"><![CDATA[
                $this->data['categories'] = array();
            ]]></search>
            <add><![CDATA[
                    if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/stylesheet/3levelMenu.css')) {
                        $this->data['styles'][] = array(
                            'rel'   => 'stylesheet',
                            'href'  => 'catalog/view/theme/' . $this->config->get('config_template') . '/stylesheet/3levelMenu.css',
                            'media' => 'all'
                        );
                    } else {
                        $this->data['styles'][] = array(
                            'rel'   => 'stylesheet',
                            'href'  => 'catalog/view/theme/default/stylesheet/3levelMenu.css',
                            'media' => 'all'
                        );
                    }

                    $this->data['categories'] = $this->cache->get('category.menu.' . $this->config->get('config_store_id') . '.' . $this->config->get('config_language_id'));

                    if (!$this->data['categories']) {
            ]]></add>
        </operation>
        <operation error="skip">
            <search position="before"><![CDATA[
                $product_total = $this->model_catalog_product->getTotalProducts($data);
            ]]></search>
            <add><![CDATA[
                    if ($this->config->get('config_product_count'))
            ]]></add>
        </operation>
        <operation>
            <search position="after"><![CDATA[
                foreach ($children as $child) {
            ]]></search>
            <add><![CDATA[
                    $children2_data = array();

                    $children2 = $this->model_catalog_category->getCategories($child['category_id']);

                    foreach ($children2 as $child2) {
                        $data = array(
                            'filter_category_id'  => $child2['category_id'],
                            'filter_sub_category' => true
                        );

                        if ($this->config->get('config_product_count')) {
                            $product_total = $this->model_catalog_product->getTotalProducts($data);
                        }

                        $children2_data[] = array(
                            'name'   => $child2['name'] . ($this->config->get('config_product_count') ? ' (' . $product_total . ')' : ''),
                            'href'   => $this->url->link('product/category', 'path=' . $category['category_id'] . '_' . $child['category_id'] . '_' . $child2['category_id'])
                        );
                    }
            ]]></add>
        </operation>
        <operation>
            <search position="after"><![CDATA[
                $children_data[] = array(
            ]]></search>
            <add><![CDATA[
                        'children' => $children2_data,
                        'column'   => max(1, $child['column']),
            ]]></add>
        </operation>
        <operation>
            <search position="before"><![CDATA[
                $this->children = array(
            ]]></search>
            <add><![CDATA[
                        $this->cache->set('category.menu.' . $this->config->get('config_store_id') . '.' . $this->config->get('config_language_id'), $this->data['categories']);
                    }
            ]]></add>
        </operation>
    </file>

    <file name="catalog/view/theme/*/template/common/header.tpl">
        <operation>
            <search position="replace"><![CDATA[
                <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
            ]]></search>
            <add><![CDATA[
          <li><a href="<?php echo $category['children'][$i]['href']; ?>" class="<?php if ($category['children'][$i]['children']) echo 'has-children'; ?>"><?php echo $category['children'][$i]['name']; ?></a>
            <?php if ($category['children'][$i]['children']) { ?>
            <div>
              <?php $per_col = ceil(count($category['children'][$i]['children']) / $category['children'][$i]['column']); ?>
              <?php for ($m = 0, $index = 0; $m < $category['children'][$i]['column']; $m++) { ?>
              <ul>
                <?php for ($k = 0; $k < $per_col && isset($category['children'][$i]['children'][$index]); $k++, $index++) { ?>
                <li><a href="<?php echo $category['children'][$i]['children'][$index]['href']; ?>">&rsaquo; <?php echo $category['children'][$i]['children'][$index]['name']; ?></a></li>
                <?php } ?>
              </ul>
              <?php } ?>
            </div>
            <?php } ?>
          </li>
            ]]></add>
        </operation>
    </file>
</modification>
Alıntı Yaparak Cevapla
Paylaş!
opencart temaları

« Önceki | Sonraki »
Cevapla  Gönder 

üst menü seo link Konusunun Linki Direk Link
üst menü seo link Konusunun HTML Kodu HTML Link
üst menü seo link Konusu BBCode Linki BBCode Link
üst menü seo link Konusunu Paylaş Sosyal Paylaş

üst menü seo link indir, üst menü seo link Videosu, üst menü seo link online izle, üst menü seo link Bedava indir, üst menü seo link Yükle, üst menü seo link Hakkında, üst menü seo link nedir, üst menü seo link Free indir, üst menü seo link oyunu, üst menü seo link download


Forum Atla: