Advertisement:

Author Topic: How i can increase the maximum length of price  (Read 1435 times)

Amin

  • Newbie
  • *
  • Posts: 3
How i can increase the maximum length of price
« on: July 20, 2013, 10:13:54 am »
by hi
how i can increase the maximum length of price in realstate plugin
i can increase it in localhost but it don't work on our real site
what should i do?
i'm in pressure please answer me in immediate
thanks

Quentin Harouff

  • Newbie
  • *
  • Posts: 25
  • Website designer and entrepenuer
Re: How i can increase the maximum length of price
« Reply #1 on: July 21, 2013, 11:51:58 pm »

Amin

  • Newbie
  • *
  • Posts: 3
Re: How i can increase the maximum length of price
« Reply #2 on: July 22, 2013, 08:54:07 am »
by hi
thanks for your help but my problem is in the adding options not in search
i can't add price with 10 digit numbers
what i should do?
i'm really in trouble


mahesh

  • Full Member
  • ***
  • Posts: 116
Re: How i can increase the maximum length of price
« Reply #4 on: March 05, 2014, 09:07:31 am »
Hi Amin,

edit oc-includes/osclass/itemActions.php

find the following line probably in  line no 132 , 340
Code: [Select]
((!osc_validate_max(number_format($aItem['price'],0,'',''), 15)) ? _m("Price too long.") . PHP_EOL : '' ) .
change the number 15 to higher you need  in two places(line 132 , 340) one is in add() ,another in edit() functions

Hope this is helpful