+ Reply to Thread
Page 4 of 4 FirstFirst ... 234
Results 31 to 35 of 35

Thread: Number separator when typing?

  1. #31
    Quote Originally Posted by Wei Hong View Post
    Hi Viktor,

    Is there anyway if we could make the method that you taught us earlier to work in 4.6.1?
    Your method is here:
    http://forum.flynax.com/showthread.p...ll=1#post18941

    I think it is the best one so far because it works on all number fields.
    Hi Viktor,

    If possible, could you please look at the method that you taught us in 4.6 and make it work in 4.6.1? We would deeply appreciate it. I have briefly summarized and linked back to your method before in the quote above.

    Thank you so much

  2. #32
    Hello Wei Hong,

    Did you try to implement this instruction in your 4.6.1?
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #33
    Quote Originally Posted by Viktor View Post
    Hello Wei Hong,

    Did you try to implement this instruction in your 4.6.1?
    Yes Viktor,

    I did it in 4.6 and it worked perfectly. In 4.6.1, I repeat it


    First of all I did this again
    Try to do it yourself.
    Open file: ftp://templates>>your_template>>js>>lib.js

    at line ~116
    find code: var media_query = 'desktop';

    above add new code: https://raw.githubusercontent.com/cu....number.min.js (copy all code from this url and past to lib.js)
    Then in the following step:
    Then find code:
    Code:

    $('.numeric').numeric();

    and replace to:
    Code:

    $('.numeric').numeric().number(true);

    save and check again.
    I could not find
    $('.numeric').numeric();
    But I found
    $('.numeric').numeric({
    decimal: rlConfig['price_separator']
    });
    I think in 4.6.1 they changed to this. So I replace all above with
    $('.numeric').numeric().number(true);
    And the separator shows OK on all number field in listing adding page, search page, etc. But the problem is in search box Price "from" and "to" it does not work properly. I have 3 listings with price as follow:
    Listing 1: $1,000
    Listing 2: $2,000
    Listing 3: $3,000
    If I put $2,000 in the box "from" of listing field price in search box. It shows all 3 listings. I think it takes the number 2,000 as 0, so it show all listings because it think I want to find price starting from $0, not $2,000. Before in 4.6 after your method, input 2,000 and it only show listing 2: $2,000 and listing 3: $3,000.

    So I remove the code and everything back that doesn't have separator, I input 2000 in listing field price. It now shows correctly only 2 listings start from price $2000.

    I think I must change something with this code, but I don't know how
    $('.numeric').numeric({
    decimal: rlConfig['price_separator']
    });

  4. #34
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,160
    Hello,

    I suggest that you create a ticket to look into search problem

  5. #35
    Quote Originally Posted by Rudi View Post
    Hello,

    I suggest that you create a ticket to look into search problem
    Thank you I submit a ticket regarding this problem

+ Reply to Thread