Post by allgoo » Wed Jan 04, 2017 7:14 pm

Hello ,

I use 2 languages : Arabic and English in my site , when am using the site in arabic and i search for using english letters it doesn't work ( no search results ) , and vice-versa , is there a way around this ?

thanks

Outstanding Сasual Dating


New member

Posts

Joined
Sat Nov 07, 2015 12:49 am
Location - GB

Post by knowband.plugins » Thu Jan 05, 2017 4:23 pm

It can be done by modifying following two files.

/catalog/model/catalog/product.php
/catalog/model/catalog/category.php

Both of these files contain code to search for given string. Code search given string only in the customer language. If you want to allow customers to search in all languages, you need to remove language conditions from search queries in these 2 files.

If you need technical assistance for this change, you can contact us to get it done for a small fee.

Regards,
Knowband Team

Opencart Plugins: Knowband Store
Email: support@knowband.com


User avatar
Active Member

Posts

Joined
Thu Aug 04, 2016 2:56 pm

Post by allgoo » Fri Jan 06, 2017 1:02 am

knowband.plugins wrote:It can be done by modifying following two files.

/catalog/model/catalog/product.php
/catalog/model/catalog/category.php

Both of these files contain code to search for given string. Code search given string only in the customer language. If you want to allow customers to search in all languages, you need to remove language conditions from search queries in these 2 files.

If you need technical assistance for this change, you can contact us to get it done for a small fee.

thank you for your help , i would appreciate it if you just mention the code needed so me and anyone else can benefit this later ,, Sharing is Caring bro :)

Outstanding Сasual Dating


New member

Posts

Joined
Sat Nov 07, 2015 12:49 am
Location - GB

Post by IP_CAM » Fri Jan 06, 2017 1:58 am

sharing is Caring bro
correct, but what do you plan to share back ? After all, OC is not built to share things, but to create Money, for everyone involved. :D
Ernie
Last edited by IP_CAM on Sun Jan 08, 2017 11:17 am, edited 1 time in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by allgoo » Fri Jan 06, 2017 2:45 am

IP_CAM wrote:
sharing is Caring bro
correct, but what so you plan to share back ?
Totally Agree with the money part :D ,

for me unfortunately am not programmer and i cant code , so at the moment i can't share much , maybe soon i will learn and start making a difference ;)

Outstanding Сasual Dating


New member

Posts

Joined
Sat Nov 07, 2015 12:49 am
Location - GB

Post by IP_CAM » Fri Jan 06, 2017 11:49 am

One reason, I am here too, I guess, would I be a 'real' Coder, I would not need to waste
my time, downloading the entire OC-World, just to be able to have a matching code,
somewhere, in case I'm gonna need it some day :laugh: So, probably because of the bad
feeling, doing such weird hings, I try to give back a little, once in a while... :D
Good Luck!
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by OSWorX » Sat Jan 07, 2017 5:58 pm

To keep it simple and short (have not the time like some others here ..).
What you have to do is to remove several instances of

Code: Select all

$this->config->get('config_language_id')
inside those 2 files knowband.plugins mentioned.
Simply open those files, and search for it.
In the model/catalog/product.php for example inside these functions:

Code: Select all

getTotalProducts
and

Code: Select all

getProducts
For example inside the function getProducts it would be

Code: Select all

AND ps.customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "'
If you need more help, you can contact me.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by IP_CAM » Sun Jan 08, 2017 7:56 am

Just found one, possibly working:
[Free] Ajax live search free, OC v. 2.0 - 2.3.0.2:
Supports OpenCart Version 2.X
Support for OpenCart's native filter system
Multi language support.
https://www.opencart.com/index.php?rout ... n_id=26240
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by gangerlino » Mon Feb 04, 2019 12:24 pm

This solution worked for me (opencart 2.3.0.2):
viewtopic.php?t=158260

Newbie

Posts

Joined
Thu Jan 24, 2019 11:09 am
Who is online

Users browsing this forum: No registered users and 66 guests