Adding cursor filter

  • Posts: 149
  • Thank you received: 0
13 years 5 days ago #30415

Hello, trying to add cursor filter for Price but when i save i always get the error

Error: You have to define a maximim and a minimum value for your cursor.
Error Saving

Of course i have set values for maximum and minimum values but it seems it doesnt find them

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 5 days ago #30427

Hi,

Please change the line:
if(($formData!=0 && !empty($formData)) || empty($formData)){

to:
if(empty($formData) || empty($formData)){

in the file administrator/components/com_hikashop/classes/filter.php
That should fix the problem.

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

  • Posts: 149
  • Thank you received: 0
13 years 5 days ago #30443

thanks its fixed

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

  • Posts: 120
  • Thank you received: 1
12 years 3 months ago #61115

I have the same error.
If I follow your advice to change the above PHP file, will it be overwritten during future upgrades?
As far as I can see, this issue has not been fixed in the updates during nine months. Is it possible to fix it permanently?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 3 months ago #61155

That has already been included since then.
Just check the code and you will see that the modification is there.
If you have that error, it means that you didn't set a min or a max value for the filter.

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

  • Posts: 120
  • Thank you received: 1
12 years 3 months ago #61158

Hi Nicolas,

Indeed, the modification is there.
I have found what I was doing wrong.
HikaShop does not allow minimum price to be zero. It can be 0.01 and above. That was not really clear when I did it for the first time. B)

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 3 months ago #61233

Hi,

Ah yes, we'll change that.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum