Im using an ajax (live-search) by vqmod.
I have enabled my SEO and product links works well. But when i click on a product via the search function its taking me to the old link which is:
index.php?route=product/product/&product_id=123
My current SEO links looks like this
shop/Datorkomponenter/Chassi/Aerocool-DS-Cube-Devil-Red
I’ve searched in the .XML file for the Vqmod and I found this code and maybe its connecting to the old link.
select: function(event, ui) {
if(ui.item.value){
location = 'index.php?route=product/product/&product_id='+ui.item.value;
}else{
$('.button-search').trigger('click');
}
return false;
}
Is there anyway to change it or modify it? Maybe redirect from .htaccess?
2
Answers
You can check with following .htaccess code.
Create you own htaccess file on root folder and put above code on that. It will work.
I have checked it in open-cart version 2.0.2.0 +
The possible ways to handle this would be (in order of decreasing desirableness):
In all those scenarios you’ll want to use the core Opencart
url
class like this: