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
/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
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

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.sharing is Caring bro

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.
Totally Agree with the money partIP_CAM wrote:correct, but what so you plan to share back ?sharing is Caring bro

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

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

feeling, doing such weird hings, I try to give back a little, once in a while...

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.
What you have to do is to remove several instances of
Code: Select all
$this->config->get('config_language_id')
Simply open those files, and search for it.
In the model/catalog/product.php for example inside these functions:
Code: Select all
getTotalProducts
Code: Select all
getProducts
Code: Select all
AND ps.customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "'
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
[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.
Users browsing this forum: No registered users and 44 guests