VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Grisu74 on October 28, 2012, 00:04:30 AM

Title: problem-digit price
Post by: Grisu74 on October 28, 2012, 00:04:30 AM
Hello I have a problem, I do not know if it relates to size or Custom Virtuemart, however I can not accept the digit with decimal type 0.0042 as you can see in the picture, can you help me to solve?



[attachment cleanup by admin]
Title: Re: problem-digit price
Post by: bytelord on October 28, 2012, 01:02:08 AM
Hello,

This is happen because of price rounding, please go to backend Configuration -> Prices and for the prices you wish change the rounding digits, e.g. 4.

Regards
Title: Re: problem-digit price
Post by: Grisu74 on October 28, 2012, 13:36:35 PM
done, but I have not solved, decimals extension Custom size is not displayed, it displays only two decimal places and I need 4, as in the picture I showed you
Title: Re: problem-digit price
Post by: Grisu74 on October 28, 2012, 23:49:43 PM
Analyzing with firebug, I pointed to a piece of code that interesting to me, could you help me on what to add to display the decimal? thanks

[attachment cleanup by admin]
Title: Re: problem-digit price
Post by: bytelord on October 29, 2012, 14:12:08 PM
Hello,

Is working for me. VM version 2.0.12f and template with no overrides. Take a look at the attached images.

Because you are using custom fields you have also edit the currency and increase the decimals there also.

Regards

[attachment cleanup by admin]
Title: Re: problem-digit price
Post by: Grisu74 on October 29, 2012, 22:43:12 PM
Your last image(price_round4) in what is referred, plugin or something?
Title: Re: problem-digit price
Post by: bytelord on October 29, 2012, 23:07:10 PM
Hello,

referred to virtuemart currencies, so go to Configuration -> Currencies, find your currency and edit it ... so there is the option decimals, change to 4 or any other you need!

Regards
Title: Re: problem-digit price
Post by: Grisu74 on October 30, 2012, 03:28:31 AM
I've been a big help, you are great ....... I solved thanks to your last advice ............ thank you, thank you, thank you.   ;D ;D ;D ;) ;)