sort price filter
14 years 9 months ago #33393
by webarts
sort price filter was created by webarts
Hello ,
we are using the hikashop module filter and we have the following problem .
we want to use the filter to sort the products of every specific category but it seems that we can use the filter only to sort all the products.
for example if i try to sort the products of a specific category
server.webartscy.com/~wallpapers/index.p...g&Itemid=192&lang=en
when i use the filter all my products are being displayed.
how it works and why i have to put a redirection category listing menu item on the configuration ? we just want to sort the products of a category.
i search the documentation but i didn't find anything.
thank you in advance
we are using the hikashop module filter and we have the following problem .
we want to use the filter to sort the products of every specific category but it seems that we can use the filter only to sort all the products.
for example if i try to sort the products of a specific category
server.webartscy.com/~wallpapers/index.p...g&Itemid=192&lang=en
when i use the filter all my products are being displayed.
how it works and why i have to put a redirection category listing menu item on the configuration ? we just want to sort the products of a category.
i search the documentation but i didn't find anything.
thank you in advance
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33479
by nicolas
Replied by nicolas on topic Re: sort price filter
Hi,
Could you please update to the latest version of HikaShop after doing a backup ? We changed some of the code of the filtering module so that it stays on the same page when it's already on a product listing.
So that should solve the problem which happens because the filtering system redirects to the menu set in the module even though it is not necessary.
Could you please update to the latest version of HikaShop after doing a backup ? We changed some of the code of the filtering module so that it stays on the same page when it's already on a product listing.
So that should solve the problem which happens because the filtering system redirects to the menu set in the module even though it is not necessary.
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33695
by webarts
Replied by webarts on topic Re: sort price filter
Hi Nicolas,
i update to the latest version of Hikashop but it doesnt solve the problem
i update to the latest version of Hikashop but it doesnt solve the problem
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33718
by nicolas
Replied by nicolas on topic Re: sort price filter
Hi,
Could you try to edit the file "filter" of the view "product" via the menu display->Views and change the line:
if(!empty($this->params) && $this->params->get('module') == 'mod_hikashop_filter' && empty($this->currentId)){
to:
if(!empty($this->params) && $this->params->get('module') == 'mod_hikashop_filter' && empty($this->currentId) && (!JRequest::getVar('option','')=='com_hikashop')|| !in_array(JRequest::getVar('ctrl','product'),array('product','category')||JRequest::getVar('task','listing')!='listing')){
Could you try to edit the file "filter" of the view "product" via the menu display->Views and change the line:
if(!empty($this->params) && $this->params->get('module') == 'mod_hikashop_filter' && empty($this->currentId)){
to:
if(!empty($this->params) && $this->params->get('module') == 'mod_hikashop_filter' && empty($this->currentId) && (!JRequest::getVar('option','')=='com_hikashop')|| !in_array(JRequest::getVar('ctrl','product'),array('product','category')||JRequest::getVar('task','listing')!='listing')){
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33727
by webarts
Replied by webarts on topic Re: sort price filter
MERRY CHRISTMAS 
the problem is that always there is a redirection to a category listing how we can avoid that?
you mean the line
if(!empty($this->params) && $this->params->get('module') == 'mod_hikashop_filter' && empty($cid)){
i get the warning below
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/wallpapers/domains/theworldofwallpaper.com/public_html/templates/gk_finance_business/html/com_hikashop/product/filter.php on line 22
the problem is that always there is a redirection to a category listing how we can avoid that?
you mean the line
if(!empty($this->params) && $this->params->get('module') == 'mod_hikashop_filter' && empty($cid)){
i get the warning below
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/wallpapers/domains/theworldofwallpaper.com/public_html/templates/gk_finance_business/html/com_hikashop/product/filter.php on line 22
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33729
by nicolas
Replied by nicolas on topic Re: sort price filter
Ah sorry, I made a mistake in the parenthesis. It should be:
if(!empty($this->params) && $this->params->get('module') == 'mod_hikashop_filter' && empty($this->currentId) && (!JRequest::getVar('option','')=='com_hikashop'|| !in_array(JRequest::getVar('ctrl','product'),array('product','category')) ||JRequest::getVar('task','listing')!='listing')){
if(!empty($this->params) && $this->params->get('module') == 'mod_hikashop_filter' && empty($this->currentId) && (!JRequest::getVar('option','')=='com_hikashop'|| !in_array(JRequest::getVar('ctrl','product'),array('product','category')) ||JRequest::getVar('task','listing')!='listing')){
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33736
by webarts
Replied by webarts on topic Re: sort price filter
Perfect its working now.
i supposed that you will include it at the next update
thank you very much
i supposed that you will include it at the next update
thank you very much
Please Log in or Create an account to join the conversation.
14 years 9 months ago #33738
by nicolas
Replied by nicolas on topic Re: sort price filter
Yes.
Please Log in or Create an account to join the conversation.
Time to create page: 0.178 seconds