still not supported utf-8 from search

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #32997

I have found a bug. It is like the bug before in breadcrumbs module.
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
12 years 11 months ago #33001

I using UTF-8 Traditional Chinese language.
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 )<3 )

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.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33002

the problem is not searching.
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
12 years 11 months ago #33003

I suggest you turn off the SEF and try it again.

/administrator/index.php?option=com_hikashop&ctrl=config

Please Log in or Create an account to join the conversation.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33004

unfortunately SEF is extremely need for SEO. If I turn it off I don't need this site.

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? Спроси меня как!
Last edit: 12 years 11 months ago by progreccor.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33010

Indeed, that is not handled by the search plugin.

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.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33016

it is working partially.
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.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33017

it is because of suffix of URL
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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33021

Mmm. Both URLs are valid because you could display all the products directly on the menu and have that URL. So it's not easy to know which one should be used.

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.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33023

I am using Essential edition.
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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33051

I can't say for sure, but I think that it should.
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.

File Attachment:

File Name: hikashop_p...1217.zip
File Size:4 KB

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33071

I have installed this plugin. It was installed successfully.
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? Спроси меня как!
Last edit: 12 years 11 months ago by progreccor.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33081

It's not a problem, it's just the way it's done.
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.

File Attachment:

File Name: hikashop_p...1218.zip
File Size:4 KB

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33094

sorry but the result is the same.
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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33123

Thanks, we'll look at that tomorrow as it's getting late.

Please Log in or Create an account to join the conversation.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33183

Do you have any news about this?


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33211

Hi,

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.

  • Posts: 2293
  • Thank you received: 315
12 years 11 months ago #33240

Great! It is working!

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33281

We changed some code in the file plugins/search/hikashop_products.php
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.

Time to create page: 0.098 seconds
Powered by Kunena Forum