Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Setting Decimals Depends To Usergroup Rate Topic   - - - - -

 

Posted 25 June 2015 - 04:13 PM #1

Hello,

i need to have different decimals for each user group,
for example i set in the admin to have 4 decimals and i replace this line

$value = fn_format_rate_value($price, $number_type, $currency['decimals_separator'], $currency['thousands_separator'], $currency['coefficient']);

with this

$value = fn_format_rate_value($price, $number_type, 2, $currency['decimals_separator'], $currency['thousands_separator'], $currency['coefficient']);

in the file app / functions / smarty_plugins / modifier.format_price.php

now i don't know how to figure this file so if a customer is set to default usergroup to see 2 decimal and if a customer is set to wholesale usergroup to see 4 decimals

Any help?

Thanks in advance

 

Posted 25 June 2015 - 05:19 PM #2

hi,

this feature can't be done easily so we are at your service.

best regards,
WSA team

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19797 posts

Posted 26 June 2015 - 08:53 AM #3

Our team can also develop this feature for you. Feel free to contact us

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • sendrrmy
  • Member
  • Trial users
  • Join Date: 24-Feb 15
  • 16 posts

Posted 10 July 2015 - 08:32 AM #4

Hi,

How can I remove decimal visibility throughout? Like MRP : $1000.00 to MRP : $1000?

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19797 posts

Posted 10 July 2015 - 01:44 PM #5

Try to set the Decimals currency setting to 0

http://demo.cs-cart....rrencies.manage

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • sendrrmy
  • Member
  • Trial users
  • Join Date: 24-Feb 15
  • 16 posts

Posted 12 July 2015 - 09:17 AM #6

Thanks for response.

This is already set to 0, but our theme is custmoized and not finding out where we are missing so that chanegs here are not taking place.

Thank you.

 
  • istanbul
  • Junior Member
  • Members
  • Join Date: 23-Jan 10
  • 95 posts

Posted 12 July 2015 - 10:52 AM #7

Posted Image

 
  • sendrrmy
  • Member
  • Trial users
  • Join Date: 24-Feb 15
  • 16 posts

Posted 15 July 2015 - 08:32 AM #8

On Edit Currency Decimals already set to 0. But seems need to change it in price_database table. Can anyone assist on this?

Thank you,