Hi,
I think it's a bug for v1.491.
Afer searching a product (say, No. #84)from the Search, you can find 3 products but can't click any of them
in the result page -as it saying 'Product not found!'
http://www.smartebuy.com.au/index.php?r ... uct_id=654
However, if you browsing the category and find out the product 'C5017A #84', you can surely click its details
in that page
http://www.smartebuy.com.au/index.php?r ... uct_id=654
The problem is not for all products but for those share the part of common keywords.
Previously I thought it was caused by SEO. but after I turn off SEO, the problem is still there.
Can anyone help me out? Thanks,
I think it's a bug for v1.491.
Afer searching a product (say, No. #84)from the Search, you can find 3 products but can't click any of them
in the result page -as it saying 'Product not found!'
http://www.smartebuy.com.au/index.php?r ... uct_id=654
However, if you browsing the category and find out the product 'C5017A #84', you can surely click its details
in that page
http://www.smartebuy.com.au/index.php?r ... uct_id=654
The problem is not for all products but for those share the part of common keywords.
Previously I thought it was caused by SEO. but after I turn off SEO, the problem is still there.
Can anyone help me out? Thanks,
http://www.smartebuy.com.au/ http://www.myleathers.com.au/ http://www.cctv4oz.com.au/ http://www.origreen.com.au/
The problem is the #
When a # is in a URL, a browser classes anything after it as an anchor link. The # needs to be URL encoded to prevent this
OPEN
FIND:
CHANGE TO:
That will clear up the issue for when someone selects the products. You will also need to make changes to the pagination, breadcrumbs and sort order links.
To do that, find ALL instances of
and change them to
You can do this with a simple search and replace
When a # is in a URL, a browser classes anything after it as an anchor link. The # needs to be URL encoded to prevent this
OPEN
Code: Select all
/catalog/controller/product/search.php
Code: Select all
'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&keyword=' . $this->request->get['keyword'] . $url . '&product_id=' . $result['product_id']),
Code: Select all
'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&keyword=' . urlencode($this->request->get['keyword']) . $url . '&product_id=' . $result['product_id']),
To do that, find ALL instances of
Code: Select all
$url .= '&keyword=' . $this->request->get['keyword'];
Code: Select all
$url .= '&keyword=' . urlencode($this->request->get['keyword']);
Hi JAY6390,
You're right. By using your method, I've solved the trouble.
But after I turn on SEO, the similar problem happened as follows,
Search with '#85',
http://www.smartebuy.com.au/index.php?r ... cription=1
While clicking any listed products, 'The page you requested cannot be found.'
http://www.smartebuy.com.au/HP_ink_#85_ ... cription=1
I think there is another file to be changed. But where is it? Thanks again.
You're right. By using your method, I've solved the trouble.
But after I turn on SEO, the similar problem happened as follows,
Search with '#85',
http://www.smartebuy.com.au/index.php?r ... cription=1
While clicking any listed products, 'The page you requested cannot be found.'
http://www.smartebuy.com.au/HP_ink_#85_ ... cription=1
I think there is another file to be changed. But where is it? Thanks again.
http://www.smartebuy.com.au/ http://www.myleathers.com.au/ http://www.cctv4oz.com.au/ http://www.origreen.com.au/
Hi Daniel
Unfortunately this is just because you cannot have a # in your product names, it's not possible to do this no matter what since as I previously mentioned the # has a special function. You will need to remove the # from product titles, and replace them with either nothing or another character
Unfortunately this is just because you cannot have a # in your product names, it's not possible to do this no matter what since as I previously mentioned the # has a special function. You will need to remove the # from product titles, and replace them with either nothing or another character
Hi JAY6390,
Is there other method than removing '#' away to get SEO work?
I just need your confirmation for it.
As search with # is a way customers may use (or their habit), it'll
be better to keep such the search. But if there is no solution, I'll
surely replace #. Thanks,
Is there other method than removing '#' away to get SEO work?
I just need your confirmation for it.
As search with # is a way customers may use (or their habit), it'll
be better to keep such the search. But if there is no solution, I'll
surely replace #. Thanks,
http://www.smartebuy.com.au/ http://www.myleathers.com.au/ http://www.cctv4oz.com.au/ http://www.origreen.com.au/
Hi JAY6390,
I'll get # replace then. Without #, shall I have to change the file
/catalog/controller/product/search.php?
Thanks,
I'll get # replace then. Without #, shall I have to change the file
/catalog/controller/product/search.php?
Thanks,
http://www.smartebuy.com.au/ http://www.myleathers.com.au/ http://www.cctv4oz.com.au/ http://www.origreen.com.au/
Who is online
Users browsing this forum: Semrush [Bot] and 76 guests