Jump to content

Cannot put decimal prices


Recommended Posts

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.

Link to comment
Share on other sites

with this being v7.9.1, it might be worth opening a ticket with 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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 ???

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated