still not supported utf-8 from search
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
If I try to search for some product in search module (for example try to copy there "жевате" and click first result on the www.vkusprirody.ru )
I have URL that is not like full URL of this product
For the mentioned above "жевате" the right full url is www.vkusprirody.ru/90-zhevatelnaya-smola.../category_pathway-43
But search module (and I think - search plugin of the hikashop) give me this url www.vkusprirody.ru/90-/category_pathway-2
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
- Posts: 7
- Thank you received: 0
I can search in Chinese , May be its the joomla system search limit.
Refering the UTF-8 Chinese solution
Finding the /administrator/components/com_search/helpers/search.php
about line 69
if ( $searchword && JString::strlen( $searchword )
)change it into
if ( $searchword && JString::strlen( $searchword ) <2 )
And you also may change your language file
/language/xxx/xxx.com_search.ini
about line 21
SEARCH_MESSAGE=
FYI
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
search working ok.
But when the product found the result URL is wrong
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
- Posts: 7
- Thank you received: 0
/administrator/index.php?option=com_hikashop&ctrl=config
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
Hikashop definitely have a bug. The same behavior was in the breadcrumb module in version 1.5.4 and was fixed in 1.5.5
so I think that this bu need to be fixed too
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
Please change the line:
$rows[$k]->href = hikashop_completeLink('product&task=show&name='.strtolower(preg_replace('#[^a-z0-9_-]#i','',$row->title)).'&cid='.$row->id.$Itemid.$parent);
to:
$app=& JFactory::getApplication();
if(method_exists($app,'stringURLSafe')){
$alias = $app->stringURLSafe(strip_tags($row->title));
}else{
$alias = JFilterOutput::stringURLSafe(strip_tags($row->title));
}
$rows[$k]->href = hikashop_completeLink('product&task=show&name='.$alias.'&cid='.$row->id.$Itemid.$parent);
in the file plugins/search/hikashop_product.php and try again.
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
URL is correct now but the breadcrumbs module is show that this product located in the root directory but this product is located in the subdirectory
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
I got this URL from search:
www.vkusprirody.ru/90-zhevatelnaya-smola...q/category_pathway-2
but the correct URL must be:
www.vkusprirody.ru/90-zhevatelnaya-smola.../category_pathway-43
the suffix is /category_pathway-2
but need to be /category_pathway-43
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
But looking at the code, it should work properly with the Business edition as the categories of the products are loaded. Are you using the Business edition ? If not, that would explain why it's not correct. The plugin would have to be chnaged a bit to allow it to work like that for the other versions. Otherwise, then there must be something else but I don't see it.
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
Of cause both URL's are valid but it's more clearly for customers if those URL be the same.
Is upgrade to Business edition will solve the problem?
And so I need to understand why this issue has appear?
And do you plan to public this fix for breadcrumbs in future versions?
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
That's because in the Business edition, there is a left join on the product_category table to check on the access levels of categories so that you don't display products for categories which have a restricted access for the current user group.
And the code later on which calculate the category_pathway bases itself on that data, which is not present on other versions of HikaShop.
Please install that search plugin. I changed the code so that this left join is done even when there is no need to check for access levels so that it also bases the category_pathway calculations on the categories data.
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
I have checked the file by FTP on server to sure that it was your new php file. It was ok.
I have cleared cache twice on site.
and switched it off
but nothing has changed...
the URL still the same www.vkusprirody.ru/90-zhevatelnaya-smola...q/category_pathway-2
so you can see that trailing suffix category_pathway-2 don't change
please help to solve the problem.
If you need I can give you access to site by PM
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
Could you try with that one ?
If that still doesn't work as you want, please provide a FTP access and we'll look at that directly on your website.
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
I have PM you FTP access to the site and if you need the administartor login - the pass will be same.
for the test you can type (or copy) this world in the search module "жевате"
right URL must be www.vkusprirody.ru/90-zhevatelnaya-smola.../category_pathway-43
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
I had a look at it and changed the code so that it works as it should.
Please Log in or Create an account to join the conversation.
- progreccor
-
Topic Author
- Offline
- SEO, webdesign
Could I know what you have changed so I plan to upgrade to Business and use this shop in other projects?
Я не явлюсь официальной службой поддержки!
Я здесь добровольно!
Хочешь получить купон на скидку Hikashop? Спроси меня как!
Please Log in or Create an account to join the conversation.
We updated that on our end too so you won't have to modify anything if you install a new package from our website.
Please Log in or Create an account to join the conversation.