*

obstak

  • *
  • 4 posts
Items not showing in home ajax search Multi language - See PIC!!
« on: November 03, 2017, 04:13:39 AM »
Hello i've added this line of code to functions.php from thread https://forums.osclass.org/3-5-x/search-problem-oc-3-5-3/msg113778/#msg113778
to make item results appear in multi language no matter the language but.

My problem: In veronika theme Items do not appear in front ajax search drop-down on homepage, how can i fix this?

See pic to see what i mean





Marked as best answer by obstak on November 03, 2017, 11:37:20 AM
*

MB Themes

Re: Items not showing in home ajax search Multi language - See PIC!!
« Reply #1 on: November 03, 2017, 09:43:01 AM »
@obstak
Go to file:
/oc-content/themes/veronika/contact.php

Find line:
Code: [Select]
        WHERE d.fk_c_locale_code = '" . osc_current_user_locale() . "' AND (s_title LIKE '%" . $pattern . "%' OR s_description LIKE '%" . $pattern . "%') AND b_active = 1 AND b_enabled = 1 AND b_spam = 0

Replace it with:
Code: [Select]
        WHERE  (s_title LIKE '%" . $pattern . "%' OR s_description LIKE '%" . $pattern . "%') AND b_active = 1 AND b_enabled = 1 AND b_spam = 0
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

obstak

  • *
  • 4 posts
Re: Items not showing in home ajax search Multi language - See PIC!!
« Reply #2 on: November 03, 2017, 11:37:44 AM »
Thank you !! Works !