*

Dartimes Tv

  • **
  • 6 posts
Help me I ran this website where prices are not in USD but in Tanzanian shillings, so I need many zeros in a price tag with thousand separators. when I try to add the price doesn't change and zeros are removed is there any way I can fix this problem

Marked as best answer by frosticek on December 26, 2022, 09:39:24 AM
*

arsalan

  • *
  • 3 posts
Re: i can't add more than 6 zeros to the price tag with thousands separator
« Reply #1 on: December 26, 2022, 04:54:41 AM »
osclass price : How to fixed osclass price support million

    go cpanel>> file manager>> public_html>> oc-includes>> osclass>> ItemActions.php


editing “15” with “55”

in this  ItemActions.php have 2 must to editing

line 150 change + line 703 change

 $flash_error .= ((!osc_validate_max(number_format((float)$aItem[ 'price' ], 0, '', ''), 15)) ? _m('Price too long.') . PHP_EOL : '');
 $flash_error .= ((!osc_validate_max(number_format($aItem[ 'price' ], 0, '', ''), 15)) ? _m('Price too long.') . PHP_EOL : '');

Change to :

$flash_error .= ((!osc_validate_max(number_format((float)$aItem[ 'price' ], 0, '', ''), 55)) ? _m('Price too long.') . PHP_EOL : '');
$flash_error .= ((!osc_validate_max(number_format($aItem[ 'price' ], 0, '', ''), 55)) ? _m('Price too long.') . PHP_EOL : '');


« Last Edit: December 26, 2022, 05:05:32 AM by arsalan »

*

MB Themes

Re: i can't add more than 6 zeros to the price tag with thousands separator
« Reply #2 on: December 26, 2022, 09:39:49 AM »
Do you need price longer than 15 digits?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots