Skip to main content

Using GET variables to filter products?

More
10 years 6 months ago #234964 by veeco
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8
-- PHP version -- : -
-- Browser(s) name and version -- : -
-- Error-message(debug-mod must be tuned on) -- : -

Hello

is it possible to make the hikashop filter triggered automatically if the page have certain
variables?

for example
imgur.com/EY96EEA

if people access that link, the hikashop will automatically run the filter

Thank You

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

More
10 years 6 months ago #234974 by Mohamed Thelji
Hello,

There is no option to do it, so the solution will probably be to directly edit the code of filters and use some JS code on your textfield, but some development skills will be required.

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

More
10 years 6 months ago #235179 by veeco
could you please tell me which file/php that handle the filter?

i'm planning to edit the PHP so it detects GET variable and add it if it's exists

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

More
10 years 6 months ago #235211 by nicolas
Hi,

Mohamed didn't know about it but it's possible with the Business edition. Just turn on the "redirect POST mode" setting of the HikaShop configuration and you'll get the filter variables in the URLs automatically.

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

More
10 years 5 months ago - 10 years 5 months ago #235303 by veeco
Hello

i just noticed that when i used the filter, it redirects to another localhost and gives error.

When i submit the filter, it goes to http://localhosthttp//localhost/{project name}
Any idea how to fix it? i cant try the "redirect POST mode" because of this error

Thank You

edit : also
imgur.com/s8ySMPR

The filter should only applied to the page's product list, not to the modules too, how prevent it?

edit 2 :
how to display "No product found / No results found" if user search and it return no result
Last edit: 10 years 5 months ago by veeco.

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

More
10 years 5 months ago - 10 years 5 months ago #235318 by nicolas
Hi,

1. It looks like a problem with the URL used missing the : after the htttp
Make sure that the "live_site" URL of your Joomla configuration.php contains the correct URL.
Otherwise, update your HikaShop and try the different values of the option "Server current URL mode" of the HikaShop configuration.

2. Edit your module via the Joomla modules manager and make sure that the option "Synchronize" is turned off.

3. Here is a thread about that:
www.hikashop.com/forum/filters-search/87...ifferent-search.html
Last edit: 10 years 5 months ago by nicolas.
The following user(s) said Thank You: veeco

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

More
10 years 5 months ago - 10 years 5 months ago #235417 by veeco

nicolas wrote: Hi,
2. Edit your module via the Joomla modules manager and make sure that the option "Synchronize" is turned off.


Hello

i've checked and all the modules have "synchronize" set to off but it still filtered

is it because the position of the module? because i edited the product listing to add a module position so i can insert the module inside the product listing

Thank You

edit : it is the reason, i moved the module and it works fine
Last edit: 10 years 5 months ago by veeco.

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

Time to create page: 0.229 seconds
Powered by Kunena Forum