跳至内容

欢迎!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

此问题已终结
作为版主,您可以批准或拒绝该答案。
接受 拒绝



if point 2.04 = 2 point

if point 2.05 = 2.1 point

形象
丢弃
编写者 最佳答案

1. Go to /domains/onebakery.demo.satumalaysiahosting.com/public_html/language/en-GB/en-GB.com_hikashop.ini, find USERPOINTS_HAVE_X_POINTS and change $d to %.1f.

Result: 


2. Go to /domains/onebakery.demo.satumalaysiahosting.com/public_html/plugins/hikashoppayment/userpoints/userpoints.php, find a function call 'getCartUsedPoints' and add round() function in the code below.

3. Then, go to administrator-->Hikashop-->Configuration-->Languages, find USERPOINTS_USER_FOR_DISCOUNT and change %s to %.1f (the second %s no need to change)

Result:

4. Go to /domains/onebakery.demo.satumalaysiahosting.com/public_html/components/com_altauserpoints/helpers/helpers.php, find a function call 'getFormattedPoints' and add round at the return position. 

Result:


形象
丢弃

您的回复

请大家尽量给个实质性的回答。如果您想回答这个问题或发表评论,只需 使用评论工具。请记住,您可以随时修改您的答案。 - 不用重复回答同样的问题。另外,请不要忘记投票 - 它确实有助于选择最好的问题和答案!

相关帖文 回复 查看 活动
1
11月 23
111
1
11月 24
84
0
9月 24
65
0
8月 24
107
0
6月 24
73