Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • smousionis Friend
    #179238

    Hello. 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.000

    The areas are:

    50
    60
    70
    85
    100
    120
    150
    200
    250
    300
    400
    500
    1.000

    Both 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.


    1. jak2_filter-2.rar
    MoonSailor Friend
    #461713

    Hi 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 Friend
    #461860

    If 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?

    kukaraditya Friend
    #462307

    Hi
    I have the same issue. Can anyone help? Actually the price field is always working as ANY instead of the range selection.

    MoonSailor Friend
    #462354

    Hi 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.

    smousionis Friend
    #462417

    Thank you very much!

Viewing 6 posts - 1 through 6 (of 6 total)

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