[Skip to main content](#vessel-content)

#   Is it possible to show or hide products based on site's language?

##

- **[HALVAM](/forum/user/44334-halvam "View HALVAM's Profile")**
- [![HALVAM's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/44334-halvam "View HALVAM's Profile") Topic Author
- [ Offline](/forum/user/44334-halvam)

Less More

- Posts: 15
- Thank you received: 0
-
-

7 years 8 months ago [\#304436](#304436) by [HALVAM](/forum/user/44334-halvam "View HALVAM's Profile")  *[Is it possible to show or hide products based on site's language?](/forum/10-translation/897043-is-it-possible-to-show-or-hide-products-based-on-sites-language#304436 "-- Joomla version -- : 3.9.3  Greetings, I'm currently testing a module called Universal AJAX Live Search so my users can find information from multiple components like articles, products, videos, etc.  The site is multilingual and has enabled all of Joomla's language settings, but the products are classified on parent categories based on the site language, so there are two versions of the same product, one for spanish and one for english.  The module itself works fine, it returns only the articles or menu pages related to the lenguage you are currently using but it doesn't do the same with Hikashop, the module displays both versions of the same product at the same time.  So, is it possible to hide the product based on the site's language? Like some setting similar to the language field that appears in articles or modules. Can it be done with some PHP?")* was created by *[HALVAM](/forum/user/44334-halvam "View HALVAM's Profile")*

-- Joomla version -- : 3.9.3

Greetings, I'm currently testing a module called Universal AJAX Live Search so my users can find information from multiple components like articles, products, videos, etc.

The site is multilingual and has enabled all of Joomla's language settings, but the products are classified on parent categories based on the site language, so there are two versions of the same product, one for spanish and one for english.

The module itself works fine, it returns only the articles or menu pages related to the lenguage you are currently using but it doesn't do the same with Hikashop, the module displays both versions of the same product at the same time.

So, is it possible to hide the product based on the site's language? Like some setting similar to the language field that appears in articles or modules. Can it be done with some PHP?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5NzA0My1pcy1pdC1wb3NzaWJsZS10by1zaG93LW9yLWhpZGUtcHJvZHVjdHMtYmFzZWQtb24tc2l0ZXMtbGFuZ3VhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

7 years 8 months ago [\#304442](#304442) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is it possible to show or hide products based on site's language?](/forum/10-translation/897043-is-it-possible-to-show-or-hide-products-based-on-sites-language#304442 "-- Joomla version -- : 3.9.3  Greetings, I'm currently testing a module called Universal AJAX Live Search so my users can find information from multiple components like articles, products, videos, etc.  The site is multilingual and has enabled all of Joomla's language settings, but the products are classified on parent categories based on the site language, so there are two versions of the same product, one for spanish and one for english.  The module itself works fine, it returns only the articles or menu pages related to the lenguage you are currently using but it doesn't do the same with Hikashop, the module displays both versions of the same product at the same time.  So, is it possible to hide the product based on the site's language? Like some setting similar to the language field that appears in articles or modules. Can it be done with some PHP?")*

Hi,

There is no option for that.
If you know PHP yes. You would have to create a custom field of the table "product" to select/store the language of the products.
Then, you could make a copy of the hikashop_products search plugin and add a condition to the MySQL to only select the products of the current language.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5NzA0My1pcy1pdC1wb3NzaWJsZS10by1zaG93LW9yLWhpZGUtcHJvZHVjdHMtYmFzZWQtb24tc2l0ZXMtbGFuZ3VhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
