Arnaud Lier Posted January 19, 2020 Share Posted January 19, 2020 Hello, if I put 5.5€ for example as a price for a product it shows 5€ in the client area is that a known problem? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 19, 2020 Share Posted January 19, 2020 (edited) Hi, Setup > Payments > Currencies. Edit your currency and focus on Format dropdown. Make sure the last item (1,234 - no decimals) is not selected. Edited January 19, 2020 by Kian 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 19, 2020 Author Share Posted January 19, 2020 It's 1.234,56. 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 19, 2020 Author Share Posted January 19, 2020 @Kian When you select the product in the client area it's the correct price but when you go on the product configuration page it's show as "0,0€" for "0,5€" in reality and even in the invoices it's "0,0€" you don't have to pay anything and that's a big problem. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 20, 2020 Share Posted January 20, 2020 19 hours ago, ZeProf2Coding said: @Kian When you select the product in the client area it's the correct price but when you go on the product configuration page it's show as "0,0€" for "0,5€" in reality and even in the invoices it's "0,0€" you don't have to pay anything and that's a big problem. are there possibly any hooks/addons that might be causing this ? I looked at your site using both your custom orderform & six/SC templates, and the same thing occurs in both - it's rounding down the pricing... though I don't know if you've modified the templates to do this yourself, or something else is occurring in the background. 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 20, 2020 Author Share Posted January 20, 2020 @brian! I didn't edited the templates they are the default ones 😉 and I don't think there is any hooks doing this. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 20, 2020 Share Posted January 20, 2020 then try going to the currency page that Kiam mentions, change the format to another value, save it, change it back to the one in the screenshot, save it again and see if that makes any difference. 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 20, 2020 Author Share Posted January 20, 2020 @brian! Still not working 😞 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 20, 2020 Share Posted January 20, 2020 which WHMCS version is it? 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 20, 2020 Author Share Posted January 20, 2020 @brian! The latest (7.9.1) 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 20, 2020 Share Posted January 20, 2020 1 minute ago, ZeProf2Coding said: @brian! The latest (7.9.1) and it was working fine before the update ? have you updated the Six/SC templates to the ones shipped with v7.9.1 - and have you updated your custom template for it ?? 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 20, 2020 Author Share Posted January 20, 2020 @brian! Yes, I'm keeping updated my custom template and yes the six templates are the shipped one with v7.9.1. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 20, 2020 Share Posted January 20, 2020 with this being v7.9.1, it might be worth opening a ticket with Support... if you get your license directly from WHMCS - https://www.whmcs.com/support/ if you get your license from a reseller / host - https://www.whmcs.com/reseller-support/ you can tell them the issue seems to apply to Six & SC too, so it doesn't look to be an issue with just your custom template. if it were me, i'd be adding debug to the template to try to see what is being done to the arrays (and when), but if you're not familiar with doing that, it might be best to see if support have any ideas. 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 21, 2020 Author Share Posted January 21, 2020 @brian! I'll wait here since I'm not the owner of the account of the WHMCS License 😉 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 22, 2020 Share Posted January 22, 2020 it's even affecting Modern, so if the currency settings aren't causing this, there is likely a hook/addon doing so. what hooks are in the /includes/hooks folder?? you could ignore navbar/sidebar hooks as they shouldn't be the cause. 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 22, 2020 Author Share Posted January 22, 2020 The example one : <?php /** * Example Hook Function * * Please refer to the documentation @ https://docs.whmcs.com/Hooks for more information * The code in this hook is commented out by default. Uncomment to use. * * @package WHMCS * @author WHMCS Limited <development@whmcs.com> * @copyright Copyright (c) WHMCS Limited 2005-2018 * @license https://www.whmcs.com/license/ WHMCS Eula * @version $Id$ * @link https://www.whmcs.com/ */ /* if (!defined("WHMCS")) die("This file cannot be accessed directly"); function create_forum_account($vars) { $firstname = $vars['firstname']; $lastname = $vars['lastname']; $email = $vars['email']; // Run code to create remote community account here... } add_hook("ClientAdd",1,"create_forum_account"); */ And a WHMCS to Discord notifications hooks : https://github.com/metallicgloss/WHMCS-Discord-Notifications/blob/master/includes/hooks/WHMCS-Discord-Notifications.php 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 22, 2020 Share Posted January 22, 2020 it won't be either of them - what about addons ? 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 22, 2020 Author Share Posted January 22, 2020 Only have the Pterodactyl Module addon (https://github.com/pterodactyl/whmcs) and the official PaySafeCard mobule. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 22, 2020 Share Posted January 22, 2020 I doubt it's either of them - and is there an official WHMCS PaySafeCard module? I thought they were all third-party written ? have you tried adding a second currency, e.g USD, and then adding a USD price to one of the products (and make it a non-rounded price, 1.23) and see how the cart handles it? 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 22, 2020 Author Share Posted January 22, 2020 @brian! Not working 😞 And yeah that is the official paysafecard WHMCS module : https://marketplace.whmcs.com/product/962 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 22, 2020 Share Posted January 22, 2020 2 minutes ago, ZeProf2Coding said: And yeah that is the official paysafecard WHMCS module : https://marketplace.whmcs.com/product/962 I don't think it's official in the sense that it's not written by WHMCS themselves or PSC - but let's not quibble about that as I don't think it's the cause if your issue. 🙂 when you upgraded to v7.9.1, which version did you upgrade from and how ? auto updater?? downloaded zip ??? 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 22, 2020 Author Share Posted January 22, 2020 Auto-Updater and updated from v7.9.0 🙂 I do the updates everytime 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 22, 2020 Share Posted January 22, 2020 Just now, ZeProf2Coding said: I do the updates everytime Braveheart 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 22, 2020 Share Posted January 22, 2020 2 minutes ago, ZeProf2Coding said: Auto-Updater and updated from v7.9.0 🙂 and this issue didn't exist when you upgraded to v7.9.0 ? if it's not a hook/addon causing this, and you say the templates haven't been changed, then i'm wondering if it's an incomplete upgrade - probably not from v7.9.0 to v7.9.1, but from your previous version before v7.9 to v7.9.0. i'd be tempted to get hold of the v7.9.1 full zip and upload it (apart from install) and see if that makes any difference. 2 minutes ago, Kian said: Braveheart lol - I thought a similar thing. 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted January 22, 2020 Author Share Posted January 22, 2020 @brian! already tried haha 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.