Jump to content

Подскажите как мне убрать пролистывание на <!-- Соседние товары /-->

Recommended Posts

-- Характеристики товара (The End)-->


        <!-- Соседние товары /-->

    <div id="back_forward">

        {if $prev_product}

            ← <a class="prev_page_link" href="products/{$prev_product->url}">{$prev_product->name|escape}</a>


        {if $next_product}

            <a class="next_page_link" href="products/{$next_product->url}">{$next_product->name|escape}</a> →



Link to post
Share on other sites

Удаляете вот эту часть кода:

<!-- Соседние товары /--><div id="back_forward">{if $prev_product}← <a class="prev_page_link" href="products/{$prev_product->url}">{$prev_product->name|escape}</a>{/if}{if $next_product}<a class="next_page_link" href="products/{$next_product->url}">{$next_product->name|escape}</a> →{/if}</div>

Также если хотите убрать лишние запросы к базе, то удалите следующий код из файла view/ProductView.php

// Соседние товары$this->design->assign('next_product', $this->products->get_next_product($product->id));$this->design->assign('prev_product', $this->products->get_prev_product($product->id));

P.S. Кривой редактор форума!! Поехал текст, но думаю разберетесь.

Edited by Noxter
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...