Merhaba Arkadaşlar,

Özel framework'ler ile hazırlanmış Opencart altyapılı bir site var.

Sitemap'i oluşturan dosyada da şöyle bir yapı mevcut.

    protected function getCategories($parent_id, $current_path = '') {
        $output = '';

        $results = $this->model_catalog_category->getCategories($parent_id);

        foreach ($results as $result) {
            if (!$current_path) {
                $new_path = $result['category_id'];
            } else {
                $new_path = $current_path . '_' . $result['category_id'];
            }

            $output .= '<url>';
            $output .= '<loc>' . $this->url->link('product/category', 'path=' . $new_path) . '</loc>';
            $output .= '<changefreq>weekly</changefreq>';
            $output .= '<priority>0.7</priority>';
            $output .= '</url>';

            $products = $this->model_catalog_product->getProducts(array('filter_category_id' => $result['category_id']));

            

            $output .= $this->getCategories($result['category_id'], $new_path);
        }

        return $output;
    }
Bu yapı sitemap'te linki şu şekilde oluşturuyor;

<url>
<loc>https://www.sitename.com/fiyat/audi-fiyat</loc>
<changefreq>weekly</changefreq>
<priority>0.7</priority>

</url>
Fakat ben linklerin sitemap'e bu şekilde değilde, https://www.sitename.com/audi-fiyat bu şekilde gelmesini istiyorum.

Yukarıdaki yapıda nasıl bir değişiklik yapmam gerekiyor?