-
AuthorPosts
-
smousionis Friend
smousionis
- Join date:
- June 2012
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
July 19, 2012 at 7:45 am #179238Hello. I have one MAJOR problems. If is not solved i will not be payed from my client. So if you can please help me.
I created two extra field, one for price (€) and one for area (sq. m.). The prices are:
50.000
75.000
100.000
150.000
200.000
250.000
300.000
350.000
400.000
500.000
750.000
1.000.000The areas are:
50
60
70
85
100
120
150
200
250
300
400
500
1.000Both of them are used as ranged values. When i try to do a search with price “750.000-1.000.000” and area “500-1.000”, they give me back all the results. It is like it is working as “ΑΝΥ”. And if i try a search with price “750.000-1.000.000” and area for example “300-400”, the price “750.000-1.000.000” works like “ANY” and give me back results with area “300-400” and any price. The same situation with area “500-1.000”. It works like “ANY” and gives me wrong results. You can try a search (my site is greekhorizon.gr and you can see the problem for yourselfs), for example you set the price field as “750.000-1.000.000”, the area field as “500-1.000” and the type as “Maisonette”. Leave the textbox for the Location empty. Then i get the results and it gives me back all the “Maisonettes” for all location, although it should give me ” Maisonettes” only with prices between “750.000-1.000.000” and areas “500-1.000” for all Locations. Maybe a problem because i create ranged values with fullstop (1.000 and not 1000 for area and 1.000.000 and not 1000000 for price)? I changed:
$objects[] = JHTML::_(‘select.option’, $options[$n – 1] . ‘-999999’, ‘> ‘ . $options[$n – 1]);
to
$objects[] = JHTML::_(‘select.option’, $options[$n – 1] . ‘-10.000.000’, ‘> ‘ . $options[$n – 1]);Because i want to have prices more than 1.000.000 €.
Maybe this be a problem?I don’t know what to do and the results don’t work properly. I attached the file “/plugins/search/jak2_filter/jak2_filter.php” to see if i changed anything to file and is not working properly. Please help. My client is unhappy.
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
July 21, 2012 at 9:28 am #461713Hi smousionis,
1. When you change
[PHP]
JAK2_FILTER_ANY=”Any”
to
JAK2_FILTER_ANY=”Other”
[/PHP]in file “language/en-GB/en-GB.mod_jak2_filter.ini”, it’s only apply for modules. If you wan’t change for file : “/plugins/search/jak2_filter/jak2_filter.php” please change it in file “administrator/language/en-GB/en-GB.plg_search_jak2_filter.ini”
2. Because, in modules, extrafields “Price” and “Area” you config range as :
[PHP]
50.000
75.000
100.000
[/PHP]
and[PHP]1.000[/PHP]
and extrafields “Price” and “Area” of items k2, you using “100.000”. When comparable conditions it missing. Please change “.” (dot) to “,” (comma).
Thanks.
smousionis Friendsmousionis
- Join date:
- June 2012
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
July 23, 2012 at 8:00 am #461860If i change my prices:
from 50.000 to 50000 (without dot)
from 100.000 to 100000
from 1.000.000 to 1000000 (and so on for other prices)and my areas:
from 1.000 to 1000
Can this be done? Not using dot or comma. Just numbers. Will my problem disappear?
And then i have to change the file “/plugins/search/jak2_filter/jak2_filter.php”:
$objects[] = JHTML::_(‘select.option’, $options[$n – 1] . ‘-999999’, ‘> ‘ . $options[$n – 1]);
to
$objects[] = JHTML::_(‘select.option’, $options[$n – 1] . ‘-9999999’, ‘> ‘ . $options[$n – 1]);Because i want to have prices more than 1000000 €. Will it work correctly? Any more changes?
July 26, 2012 at 1:48 pm #462307Hi
I have the same issue. Can anyone help? Actually the price field is always working as ANY instead of the range selection.MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
July 27, 2012 at 3:02 am #462354Hi smousionis and kukaraditya,
When i test in your site (of smousionis), first i change:
[PHP]from 50.000 to 50000 (without dot)
from 100.000 to 100000
from 1.000.000 to 1000000 (and so on for other prices)[/PHP]And k2 item, extrafield value, change
[PHP]100.000[/PHP]
To [PHP]100000[/PHP], search result is correct.
1 user says Thank You to MoonSailor for this useful post
smousionis Friendsmousionis
- Join date:
- June 2012
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 1 times in 1 posts
July 27, 2012 at 11:07 am #462417Thank you very much!
1 user says Thank You to smousionis for this useful post
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by smousionis 12 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum