OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Price on Request on function isValidPrice (0 viewing) 
RealEstateManager component support
Go to bottom Favoured: 0
TOPIC: Price on Request on function isValidPrice
#28670
giacanto (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Price on Request on function isValidPrice 3 Years, 3 Months ago Karma: 0  
Hi,
im using realestatemanager Pro
is it possible validate "Price on Request" on field the price?
I tried to make some adjustments in the file administrator / components / com_realestatemanager / realestatemanager.html.php
regarding the following string

isValidPrice function (str) {
                 myregexp = new RegExp ('^ [0-9A-Za-z] * . {0.1} [0-9] * $ ";
                 mymatch = myregexp.exec (str);
                 if (str == ""
                     return true;
                 if (str == "0.00"
                     echo "price on request";
                 if (mymatch! = null)
                     return true;
                 return false;
             }
 
but I did not succeed.
waiting for a kind reply,
Yours sincerely,
Antonino
 
Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Price on Request on function isValidPrice
giacanto 2017/03/19 18:11
    thread link
thread linkthread link Re:Price on Request on function isValidPrice
RomanD 2017/03/20 08:54
Go to top
What are you looking for?
Anti-spam question: How many head has a typical person?