- Posts: 175
- Thank you received: 0
Using GET variables to filter products?
10 years 6 months ago #234964
by veeco
Using GET variables to filter products? was created 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
-- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
10 years 6 months ago #234974
by Mohamed Thelji
Replied by Mohamed Thelji on topic Using GET variables to filter products?
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.
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.
10 years 6 months ago #235179
by veeco
Replied by veeco on topic Using GET variables to filter products?
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
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.
10 years 6 months ago #235211
by nicolas
Replied by nicolas on topic Using GET variables to filter products?
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.
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.
10 years 5 months ago - 10 years 5 months ago #235303
by veeco
Replied by veeco on topic Using GET variables to filter products?
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
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.
10 years 5 months ago - 10 years 5 months ago #235318
by nicolas
Replied by nicolas on topic Using GET variables to filter products?
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
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.
10 years 5 months ago - 10 years 5 months ago #235417
by veeco
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
Replied by veeco on topic Using GET variables to filter products?
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