S
S
sportik1742021-07-20 18:45:42
opencart
sportik174, 2021-07-20 18:45:42

How do I remove the search parameter from a product link on a search results page?

Hello!
The search parameter appears in product links on the search results page
60f6ef6be6530487418704.png

How can I remove this parameter? To keep it from appearing on the search results page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
opencartbot, 2021-07-20
@opencartbot

In the file catalog/controller/product/search.php
find the line:

'href'        => $this->url->link('product/product', 'product_id=' . $result['product_id'] . $url)

and remove it there . $urlat the very end, this is how it should turn out:
'href'        => $this->url->link('product/product', 'product_id=' . $result['product_id'])

Don't forget to update your mod cache after these edits.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question